[03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:27]accept exits with 9 [03:14:27]New connection [03:14:27]New thread 3066957156 created [03:14:27]Thread 3066813796 joined [03:14:27]Waiting for new connection... [03:14:27] Sock 9.Parse request [03:14:27]Sock 9.Check first char [03:14:27]Sock 9.First char is OK [03:14:27]request: POST /json_proto HTTP/1.0 [03:14:27]Method: POST [03:14:27]URL: /json_proto [03:14:27]Method is POST - this is cgi request [03:14:27]url: /json_proto [03:14:27]query_string will be loaded in cgi processing [03:14:27]execute_cgi json_proto POST (null) [03:14:27]execute_cgi path=json_proto method=POST [03:14:27]POST find Content-Length [03:14:27]Host: 172.17.62.67:8080 [03:14:27]Content-Length: 678 [03:14:27]Content-Type: application/json [03:14:27] [03:14:27]POST finish read [03:14:27]Found Content-Length = 678 [03:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "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" ] } } [03:14:27]execute_script... [03:14:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "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" ] } } [03:14:27]POST & json_proto [03:14:27]process_json_proto [03:14:27]json parsed OK: [03:14:27]protocol is kg_v1.0 [03:14:27]action value=close_receipt [03:14:27]process_action close_receipt [03:14:27]cmd_close_receipt [03:14:27]MH_GetDate [03:14:27]Write to MH i2c: F0 00 00 B1 5D FD [03:14:27]Write i2c OK [03:14:27]MH_I2C_Read... [03:14:27]Read from MH i2c: F0 [03:14:27]MH_I2C_Read... [03:14:27]Read from MH i2c: F0 05 00 [03:14:27]MH_I2C_Read... [03:14:27]Read from MH i2c: F0 05 00 B1 5D 00 1B 1A F1 65 8D [03:14:27]GetLastDocTimeStamp 1710293413 [03:14:27]current date 1710299675 [03:14:27]FM_GetShiftState [03:14:27]SAM_PROTO_GetShiftState [03:14:27]wFMCommunicate request_size=4 [03:14:27]MH_SAM_APDU [03:14:27]CAPDU: 80 13 01 00 [03:14:27]Write to MH i2c: E2 08 00 B2 5D 80 13 01 00 00 00 00 00 8C [03:14:27]Write i2c OK [03:14:27]MH_I2C_Read... [03:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:27]Read from MH i2c: E2 [03:14:27]MH_I2C_Read... [03:14:27]Read from MH i2c: E2 0E 00 [03:14:27]MH_I2C_Read... [03:14:27]Read from MH i2c: E2 0E 00 B2 5D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 71 [03:14:27]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [03:14:27]wFMCommunicate OK [03:14:27]SAM_PROTO_GetShiftState done [03:14:27]FM_GetShiftState done [03:14:27]opened in 1710288279 [03:14:27]opened+sec_in_day 1710374679 [03:14:27]quantity*price = 70056 [03:14:27]sum+1 = 70057 [03:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 6 13.03.2024 03:14 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95311 ФПД: 31449310795300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T031435&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95311&fm=31449310795300&tin=02508201610067®Number=0000000000090555&sum=70000 [03:14:28]StoreToDocumentArchive [03:14:28]shift 328 fd 95311 [03:14:28]save to /storage/0328/doc_00095311 [03:14:28]save last doc name /storage/0328/doc_00095311 to /storage/kkm_last_doc_name [03:14:28]save OK [03:14:28]Clear old archive folders... [03:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:14:28]tlvbuf is 01AD1C90 [03:14:28]SAM_PROTO_ClearQueue [03:14:28]wFMCommunicate request_size=4 [03:14:28]MH_SAM_APDU [03:14:28]CAPDU: 80 09 00 00 [03:14:28]Write to MH i2c: E2 08 00 BF 5D 80 09 00 00 00 00 00 00 8E [03:14:28]Write i2c OK [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 [03:14:28]MH_I2C_Read... [03:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:14:28]Read from MH i2c: E2 03 00 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 03 00 BF 5D 00 90 00 90 [03:14:28]RAPDU: 90 00 [03:14:28]wFMCommunicate OK [03:14:28]SAM_PROTO_ClearQueue done [03:14:28]KKMCreateOFDPacket [03:14:28]OFDProtocolAddRootSTLVToBuf [03:14:28]FM_MakeSignedData [03:14:28]FM_MakeSignedData [03:14:28]SAM_PROTO_SignData [03:14:28]wFMCommunicate request_size=4 [03:14:28]MH_SAM_APDU [03:14:28]CAPDU: 80 0D 01 02 [03:14:28]Write to MH i2c: E2 08 00 C0 5D 80 0D 01 02 00 00 00 00 96 [03:14:28]Write i2c OK [03:14:28]MH_I2C_Read... [03:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:14:28]Read from MH i2c: E2 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 03 00 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 03 00 C0 5D 00 90 00 91 [03:14:28]RAPDU: 90 00 [03:14:28]wFMCommunicate OK [03:14:28]wFMCommunicate request_size=255 [03:14:28]MH_SAM_APDU [03:14: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 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 06 00 00 00 F4 03 04 00 1B 1A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 74 01 00 35 04 06 00 1C [03:14:28]Write to MH i2c: E2 02 01 C1 5D 80 0D 02 02 FA 00 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 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 06 00 00 00 F4 03 04 00 1B 1A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 74 01 00 35 04 06 00 1C 00 00 7B [03:14:28]Write i2c OK [03:14:28]MH_I2C_Read... [03:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:28]Read from MH i2c: E2 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 03 00 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 03 00 C1 5D 00 90 00 92 [03:14:28]RAPDU: 90 00 [03:14:28]wFMCommunicate OK [03:14:28]wFMCommunicate request_size=10 [03:14:28]MH_SAM_APDU [03:14:28]CAPDU: 80 0D 02 02 05 9A 5C FF 96 24 [03:14:28]Write to MH i2c: E2 0D 00 C2 5D 80 0D 02 02 05 00 9A 5C FF 96 24 00 00 52 [03:14:28]Write i2c OK [03:14:28]MH_I2C_Read... [03:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:28]Read from MH i2c: E2 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 03 00 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 03 00 C2 5D 00 90 00 93 [03:14:28]RAPDU: 90 00 [03:14:28]wFMCommunicate OK [03:14:28]wFMCommunicate request_size=4 [03:14:28]MH_SAM_APDU [03:14:28]CAPDU: 80 0D 03 02 [03:14:28]Write to MH i2c: E2 08 00 C3 5D 80 0D 03 02 00 00 00 00 9B [03:14:28]Write i2c OK [03:14:28]MH_I2C_Read... [03:14:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:14:28]Read from MH i2c: E2 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 0B 00 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 0B 00 C3 5D 00 14 ED 64 2D 1B 52 97 26 90 00 58 [03:14:28]RAPDU: 14 ED 64 2D 1B 52 97 26 90 00 [03:14:28]wFMCommunicate OK [03:14:28]SAM_PROTO_SignData done [03:14:28]FM_MakeSignedData done [03:14:28]CreateOFDProtocolMessage [03:14:28]wFMCommunicate request_size=4 [03:14:28]MH_SAM_APDU [03:14:28]CAPDU: 80 11 00 00 [03:14:28]Write to MH i2c: E2 08 00 C4 5D 80 11 00 00 00 00 00 00 9B [03:14:28]Write i2c OK [03:14:28]MH_I2C_Read... [03:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:28]Read from MH i2c: E2 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 17 00 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: E2 17 00 C4 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EB [03:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [03:14:28]wFMCommunicate OK [03:14:28]CreateOFDProtocolMessage done [03:14:28]OFDSenderStorePacket 95311 [03:14:28]StoreOFDPacket docnum=95311 [03:14:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A5 DE 07 01 11 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 06 00 00 00 F4 03 04 00 1B 1A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 74 01 00 35 04 06 00 1C 9A 5C FF 96 24 14 ED 64 2D 1B 52 97 26 [03:14:28]CheckFolder [03:14:28]dirname=/storage/ofd_packets [03:14:28]CheckFolder done [03:14:28]ProducePacketName [03:14:28]name=ofd_packets/00095311 [03:14:28]NVStorageSaveData ofd_packets/00095311 [03:14:28]File name is /storage/ofd_packets/00095311 [03:14:28]Write 301 bytes [03:14:28]NVStorageSaveData done [03:14:28]OFDSenderStorePacket done [03:14:28]KKMCreateOFDPacket done [03:14:28]NVStorageSaveData kkm_last_timestamp [03:14:28]File name is /storage/kkm_last_timestamp [03:14:28]Write 4 bytes [03:14:28]NVStorageSaveData done [03:14:28]ExternCall_PrintAddStr [03:14:28]wPrintStart [03:14:28]Write to MH i2c: 01 00 00 C5 5D 22 [03:14:28]Write i2c OK [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: 01 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: 01 07 00 [03:14:28]MH_I2C_Read... [03:14:28]Read from MH i2c: 01 07 00 C5 5D 00 80 00 00 00 FF 0F B7 [03:14:28]RasterBufferAndPrint [03:14:28]line Счет N : (1)196285 [03:14:28]line ИНН: 02508201610067 [03:14:28]line Контрольно-Кассовый Чек [03:14:28]line ПРОДАЖА [03:14:28]line ТРК (МРК, ГНК) : 21 [03:14:28]line Товар: 2710124500 [03:14:28]line Аи-95-К-5 [03:14:28]line 10.080 * 69.50 [03:14:28]line = 700.56 [03:14:28]line НДС 12% НСП 1% [03:14:28]line > о реализуемом товаре [03:14:28]line ОКРУГЛЕНИЕ: -0.56 [03:14:28]line ИТОГО: 700.00 [03:14:28]line Внесено: 700.00 [03:14:28]line СДАЧА: 0.00 [03:14:28]line НСП 1% : 6.20 [03:14:28]line НДС 12% : 74.40 [03:14:28]line Наличными: 700.00 [03:14:28]line Безнал.: 0.00 [03:14:28]line Место: АЗС № 6 "Партнер Нефть" [03:14:28]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [03:14:28]line СНО: Общий режим [03:14:28]line Чек 6 13.03.2024 03:14 [03:14:28]line Смена: 328 ФФД: 1.0 [03:14:28]line ЗНМ: 0300000009 [03:14:28]line РНМ: 0000000000090555 [03:14:28]line Версия ККМ: 001 [03:14:28]line ФМ: 0000000000874811 [03:14:28]line ФД: 95311 [03:14:28]line ФПД: 31449310795300 [03:14:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T031435&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95311&fm=31449310795300&tin=02508201610067®Number=0000000000090555&sum=70000 [03:14:29]OFD Sender: Processing packet 95311 [packets to send 30, broken 29] [03:14:29]ProducePacketName [03:14:29]name=ofd_packets/00095311 [03:14:29]OFD Sender: To server: pG, [03:14:29]CommunicateWithHost lk.salyk.kg:30040 [03:14:29]ConnectInit lk.salyk.kg [03:14:29]written 0, free lines is 4095 [03:14:29]Connected sock=10 [03:14:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A5 DE 07 01 11 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 06 00 00 00 F4 03 04 00 1B 1A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 74 01 00 35 04 06 00 1C 9A 5C FF 96 24 14 ED 64 2D 1B 52 97 26 [03:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 69 C9 47 00 62 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 4F 74 01 00 F4 03 04 00 6F C5 F0 65 B6 04 01 00 00 F5 78 1C 7D E1 00 17 49 [03:14:29]CommunicateWithHost err = 0 [03:14:29]CheckOFDResponse [03:14:29]1017 (14) - 77093643461234 [03:14:29]1041 (16) - 0000000000874811 [03:14:29]1040 (4) - 95311 [03:14:29]1012 (4) - 12.03.2024 21:13 [03:14:29]1206 (1) - 0 [03:14:29]OFD Sender: Remove packet 95311 [03:14:29]ProducePacketName [03:14:29]name=ofd_packets/00095311 [03:14:29]NVStorageDeleteData [03:14:29]Write to MH i2c: 01 00 00 F0 5D 4D [03:14:29]Write i2c OK [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: 01 [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: 01 07 00 [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: 01 07 00 F0 5D 00 80 00 00 00 50 0D 31 [03:14:29]RasterBufferAndPrint [03:14:29]line [03:14:29]line [03:14:29]line [03:14:29]line [03:14:29]line [03:14:29]written 0, free lines is 3416 [03:14:29]process_action close_receipt done [03:14:29]requested_data is exist [03:14:29]produce_requested_data [03:14:29]requested_item fm.sn is exist - process it [03:14:29]wFMCommunicate request_size=4 [03:14:29]MH_SAM_APDU [03:14:29]CAPDU: 80 11 00 00 [03:14:29]Write to MH i2c: E2 08 00 F7 5D 80 11 00 00 00 00 00 00 CE [03:14:29]Write i2c OK [03:14:29]MH_I2C_Read... [03:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:29]Read from MH i2c: E2 [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: E2 17 00 [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: E2 17 00 F7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1E [03:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [03:14:29]wFMCommunicate OK [03:14:29]requested_item fd.num is exist - process it [03:14:29]SAM_PROTO_GetFieldsCounters [03:14:29]wFMCommunicate request_size=4 [03:14:29]MH_SAM_APDU [03:14:29]CAPDU: 80 13 00 00 [03:14:29]Write to MH i2c: E2 08 00 F8 5D 80 13 00 00 00 00 00 00 D1 [03:14:29]Write i2c OK [03:14:29]MH_I2C_Read... [03:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:14:29]Read from MH i2c: E2 [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: E2 62 00 [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: E2 62 00 F8 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4F 74 01 00 0E 04 04 00 48 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 0D [03: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 4F 74 01 00 0E 04 04 00 48 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 [03:14:29]wFMCommunicate OK [03:14:29]SAM_PROTO_GetFieldsCounters done [03:14:29]requested_item shift.num is exist - process it [03:14:29]requested_item shift.opened is exist - process it [03:14:29]req_shift_opened [03:14:29]FM_GetShiftState [03:14:29]SAM_PROTO_GetShiftState [03:14:29]wFMCommunicate request_size=4 [03:14:29]MH_SAM_APDU [03:14:29]CAPDU: 80 13 01 00 [03:14:29]Write to MH i2c: E2 08 00 F9 5D 80 13 01 00 00 00 00 00 D3 [03:14:29]Write i2c OK [03:14:29]MH_I2C_Read... [03:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:29]Read from MH i2c: E2 [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: E2 0E 00 [03:14:29]MH_I2C_Read... [03:14:29]Read from MH i2c: E2 0E 00 F9 5D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B8 [03:14:29]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [03:14:29]wFMCommunicate OK [03:14:29]SAM_PROTO_GetShiftState done [03:14:29]FM_GetShiftState done [03:14:29]req_shift_opened done [03:14:29]requested_item shift.open_date is exist - process it [03:14:29]req_shift_open_date [03:14:29]req_shift_open_date done [03:14:29]produce_requested_data done [03:14:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95311,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [03:14:29]process_action_free close_receipt [03:14:29]json_value_free [03:14:29]json_value_free done [03:14:29]process_json_proto returns [03:14:29]Send response to host [03:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95311,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [03:14:29]free response buf [03:14:29]execute_script done [03:14:29]execute_script returns [03:14:29]free content buf [03:14:29]Sock 9.Close socket [03:14:29]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:34]recv_with_timeout no data received [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]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:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:17]recv_with_timeout no data received [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:51:59]recv_with_timeout no data received [03:52:01]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:54]recv_with_timeout no data received [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:14]recv_with_timeout no data received [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:53:57]recv_with_timeout no data received [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:22]ConnectInit Can't connect to host [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:37]recv_with_timeout no data received [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:24]recv_with_timeout no data received [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:50]recv_with_timeout no data received [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:00]recv_with_timeout no data received [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:15]recv_with_timeout no data received [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:00:58]recv_with_timeout no data received [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:11]accept exits with 8 [05:54:11]New connection [05:54:11]New thread 3066813796 created [05:54:11]Thread 3066957156 joined [05:54:11]Waiting for new connection... [05:54:11] Sock 8.Parse request [05:54:11]Sock 8.Check first char [05:54:11]Sock 8.First char is OK [05:54:11]request: POST /json_proto HTTP/1.0 [05:54:11]Method: POST [05:54:11]URL: /json_proto [05:54:11]Method is POST - this is cgi request [05:54:11]url: /json_proto [05:54:11]query_string will be loaded in cgi processing [05:54:11]execute_cgi json_proto POST (null) [05:54:11]execute_cgi path=json_proto method=POST [05:54:11]POST find Content-Length [05:54:11]Host: 172.17.62.67:8080 [05:54:11]Content-Length: 816 [05:54:11]Content-Type: application/json [05:54:11] [05:54:11]POST finish read [05:54:11]Found Content-Length = 816 [05:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196286", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:54:11]execute_script... [05:54:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196286", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:54:11]POST & json_proto [05:54:11]process_json_proto [05:54:11]json parsed OK: [05:54:11]protocol is kg_v1.0 [05:54:11]action value=close_receipt [05:54:11]process_action close_receipt [05:54:11]cmd_close_receipt [05:54:11]MH_GetDate [05:54:11]Write to MH i2c: F0 00 00 FA 5D 46 [05:54:11]Write i2c OK [05:54:11]MH_I2C_Read... [05:54:11]Read from MH i2c: F0 [05:54:11]MH_I2C_Read... [05:54:11]Read from MH i2c: F0 05 00 [05:54:11]MH_I2C_Read... [05:54:11]Read from MH i2c: F0 05 00 FA 5D 00 8C 3F F1 65 6C [05:54:11]GetLastDocTimeStamp 1710299675 [05:54:11]current date 1710309260 [05:54:11]FM_GetShiftState [05:54:11]SAM_PROTO_GetShiftState [05:54:11]wFMCommunicate request_size=4 [05:54:11]MH_SAM_APDU [05:54:11]CAPDU: 80 13 01 00 [05:54:11]Write to MH i2c: E2 08 00 FB 5D 80 13 01 00 00 00 00 00 D5 [05:54:11]Write i2c OK [05:54:11]MH_I2C_Read... [05:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:54:11]Read from MH i2c: E2 [05:54:11]MH_I2C_Read... [05:54:11]Read from MH i2c: E2 0E 00 [05:54:11]MH_I2C_Read... [05:54:11]Read from MH i2c: E2 0E 00 FB 5D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BA [05:54:11]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [05:54:11]wFMCommunicate OK [05:54:11]SAM_PROTO_GetShiftState done [05:54:11]FM_GetShiftState done [05:54:11]opened in 1710288279 [05:54:11]opened+sec_in_day 1710374679 [05:54:11]quantity*price = 40004 [05:54:11]sum+1 = 40005 [05:54:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.04 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 7 13.03.2024 05:54 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95312 ФПД: 277642381216308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T055420&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95312&fm=277642381216308&tin=02508201610067®Number=0000000000090555&sum=40004 [05:54:12]StoreToDocumentArchive [05:54:12]shift 328 fd 95312 [05:54:12]save to /storage/0328/doc_00095312 [05:54:12]save last doc name /storage/0328/doc_00095312 to /storage/kkm_last_doc_name [05:54:12]save OK [05:54:12]Clear old archive folders... [05:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:54:12]tlvbuf is 01AF2E70 [05:54:12]SAM_PROTO_ClearQueue [05:54:12]wFMCommunicate request_size=4 [05:54:12]MH_SAM_APDU [05:54:12]CAPDU: 80 09 00 00 [05:54:12]Write to MH i2c: E2 08 00 08 5E 80 09 00 00 00 00 00 00 D8 [05:54:12]Write i2c OK [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 [05:54:12]MH_I2C_Read... [05:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:54:12]Read from MH i2c: E2 03 00 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 03 00 08 5E 00 90 00 DA [05:54:12]RAPDU: 90 00 [05:54:12]wFMCommunicate OK [05:54:12]SAM_PROTO_ClearQueue done [05:54:12]KKMCreateOFDPacket [05:54:12]OFDProtocolAddRootSTLVToBuf [05:54:12]FM_MakeSignedData [05:54:12]FM_MakeSignedData [05:54:12]SAM_PROTO_SignData [05:54:12]wFMCommunicate request_size=4 [05:54:12]MH_SAM_APDU [05:54:12]CAPDU: 80 0D 01 02 [05:54:12]Write to MH i2c: E2 08 00 09 5E 80 0D 01 02 00 00 00 00 E0 [05:54:12]Write i2c OK [05:54:12]MH_I2C_Read... [05:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:54:12]Read from MH i2c: E2 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 03 00 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 03 00 09 5E 00 90 00 DB [05:54:12]RAPDU: 90 00 [05:54:12]wFMCommunicate OK [05:54:12]wFMCommunicate request_size=255 [05:54:12]MH_SAM_APDU [05:54:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 8C 3F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 74 01 00 35 04 06 00 FC [05:54:12]Write to MH i2c: E2 02 01 0A 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 8C 3F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 74 01 00 35 04 06 00 FC 00 00 5D [05:54:12]Write i2c OK [05:54:12]MH_I2C_Read... [05:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:12]Read from MH i2c: E2 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 03 00 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 03 00 0A 5E 00 90 00 DC [05:54:12]RAPDU: 90 00 [05:54:12]wFMCommunicate OK [05:54:12]wFMCommunicate request_size=10 [05:54:12]MH_SAM_APDU [05:54:12]CAPDU: 80 0D 02 02 05 83 A7 81 CA 34 [05:54:12]Write to MH i2c: E2 0D 00 0B 5E 80 0D 02 02 05 00 83 A7 81 CA 34 00 00 96 [05:54:12]Write i2c OK [05:54:12]MH_I2C_Read... [05:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:54:12]Read from MH i2c: E2 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 03 00 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 03 00 0B 5E 00 90 00 DD [05:54:12]RAPDU: 90 00 [05:54:12]wFMCommunicate OK [05:54:12]wFMCommunicate request_size=4 [05:54:12]MH_SAM_APDU [05:54:12]CAPDU: 80 0D 03 02 [05:54:12]Write to MH i2c: E2 08 00 0C 5E 80 0D 03 02 00 00 00 00 E5 [05:54:12]Write i2c OK [05:54:12]MH_I2C_Read... [05:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:54:12]Read from MH i2c: E2 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 0B 00 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 0B 00 0C 5E 00 DE 4B D2 81 2D B3 6E F8 90 00 A8 [05:54:12]RAPDU: DE 4B D2 81 2D B3 6E F8 90 00 [05:54:12]wFMCommunicate OK [05:54:12]SAM_PROTO_SignData done [05:54:12]FM_MakeSignedData done [05:54:12]CreateOFDProtocolMessage [05:54:12]wFMCommunicate request_size=4 [05:54:12]MH_SAM_APDU [05:54:12]CAPDU: 80 11 00 00 [05:54:12]Write to MH i2c: E2 08 00 0D 5E 80 11 00 00 00 00 00 00 E5 [05:54:12]Write i2c OK [05:54:12]MH_I2C_Read... [05:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:54:12]Read from MH i2c: E2 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 17 00 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: E2 17 00 0D 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 35 [05:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [05:54:12]wFMCommunicate OK [05:54:12]CreateOFDProtocolMessage done [05:54:12]OFDSenderStorePacket 95312 [05:54:12]StoreOFDPacket docnum=95312 [05:54:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AE 6B 07 01 2C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 8C 3F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 74 01 00 35 04 06 00 FC 83 A7 81 CA 34 DE 4B D2 81 2D B3 6E F8 [05:54:12]CheckFolder [05:54:12]dirname=/storage/ofd_packets [05:54:12]CheckFolder done [05:54:12]ProducePacketName [05:54:12]name=ofd_packets/00095312 [05:54:12]NVStorageSaveData ofd_packets/00095312 [05:54:12]File name is /storage/ofd_packets/00095312 [05:54:12]Write 301 bytes [05:54:12]NVStorageSaveData done [05:54:12]OFDSenderStorePacket done [05:54:12]KKMCreateOFDPacket done [05:54:12]NVStorageSaveData kkm_last_timestamp [05:54:12]File name is /storage/kkm_last_timestamp [05:54:12]Write 4 bytes [05:54:12]NVStorageSaveData done [05:54:12]ExternCall_PrintAddStr [05:54:12]wPrintStart [05:54:12]Write to MH i2c: 01 00 00 0E 5E 6C [05:54:12]Write i2c OK [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: 01 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: 01 07 00 [05:54:12]MH_I2C_Read... [05:54:12]Read from MH i2c: 01 07 00 0E 5E 00 80 00 00 00 FF 0F 01 [05:54:12]RasterBufferAndPrint [05:54:12]line Счет N : (1)196286 [05:54:12]line ИНН: 02508201610067 [05:54:12]line Контрольно-Кассовый Чек [05:54:12]line ПРОДАЖА [05:54:12]line ТРК (МРК, ГНК) : 12 [05:54:12]line Товар: 2710124130 [05:54:12]line Аи-92-К-5 [05:54:12]line 6.360 * 62.90 [05:54:12]line = 400.04 [05:54:12]line НДС 12% НСП 1% [05:54:12]line > о реализуемом товаре [05:54:12]line ИТОГО: 400.04 [05:54:12]line НСП 1% : 3.54 [05:54:12]line НДС 12% : 42.48 [05:54:12]line Наличными: 0.00 [05:54:12]line Безнал.: 400.04 [05:54:12]line Место: АЗС № 6 "Партнер Нефть" [05:54:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [05:54:12]line СНО: Общий режим [05:54:12]line Чек 7 13.03.2024 05:54 [05:54:12]line Смена: 328 ФФД: 1.0 [05:54:12]line ЗНМ: 0300000009 [05:54:12]line РНМ: 0000000000090555 [05:54:12]line Версия ККМ: 001 [05:54:12]line Платежная система: Бакай Банк [05:54:12]line ФМ: 0000000000874811 [05:54:12]line ФД: 95312 [05:54:12]line ФПД: 277642381216308 [05:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T055420&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95312&fm=277642381216308&tin=02508201610067®Number=0000000000090555&sum=40004 [05:54:13]OFD Sender: Processing packet 95312 [packets to send 30, broken 29] [05:54:13]ProducePacketName [05:54:13]name=ofd_packets/00095312 [05:54:13]OFD Sender: To server: pG, [05:54:13]CommunicateWithHost lk.salyk.kg:30040 [05:54:13]ConnectInit lk.salyk.kg [05:54:13]written 0, free lines is 4095 [05:54:13]Connected sock=10 [05:54:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AE 6B 07 01 2C A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 44 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 8C 3F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 74 01 00 35 04 06 00 FC 83 A7 81 CA 34 DE 4B D2 81 2D B3 6E F8 [05:54:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6E 1F 47 00 16 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 50 74 01 00 F4 03 04 00 E0 EA F0 65 B6 04 01 00 00 E4 1B 79 83 2C 56 0F 26 [05:54:13]CommunicateWithHost err = 0 [05:54:13]CheckOFDResponse [05:54:13]1017 (14) - 77093643461234 [05:54:13]1041 (16) - 0000000000874811 [05:54:13]1040 (4) - 95312 [05:54:13]1012 (4) - 12.03.2024 23:53 [05:54:13]1206 (1) - 0 [05:54:13]OFD Sender: Remove packet 95312 [05:54:13]ProducePacketName [05:54:13]name=ofd_packets/00095312 [05:54:13]NVStorageDeleteData [05:54:13]Write to MH i2c: 01 00 00 38 5E 96 [05:54:13]Write i2c OK [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: 01 [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: 01 07 00 [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: 01 07 00 38 5E 00 80 00 00 00 70 0D 9A [05:54:13]RasterBufferAndPrint [05:54:13]line [05:54:13]line [05:54:13]line [05:54:13]line [05:54:13]line [05:54:13]written 0, free lines is 3446 [05:54:13]process_action close_receipt done [05:54:13]requested_data is exist [05:54:13]produce_requested_data [05:54:13]requested_item fm.sn is exist - process it [05:54:13]wFMCommunicate request_size=4 [05:54:13]MH_SAM_APDU [05:54:13]CAPDU: 80 11 00 00 [05:54:13]Write to MH i2c: E2 08 00 3F 5E 80 11 00 00 00 00 00 00 17 [05:54:13]Write i2c OK [05:54:13]MH_I2C_Read... [05:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:54:13]Read from MH i2c: E2 [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: E2 17 00 [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: E2 17 00 3F 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 67 [05:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [05:54:13]wFMCommunicate OK [05:54:13]requested_item fd.num is exist - process it [05:54:13]SAM_PROTO_GetFieldsCounters [05:54:13]wFMCommunicate request_size=4 [05:54:13]MH_SAM_APDU [05:54:13]CAPDU: 80 13 00 00 [05:54:13]Write to MH i2c: E2 08 00 40 5E 80 13 00 00 00 00 00 00 1A [05:54:13]Write i2c OK [05:54:13]MH_I2C_Read... [05:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:54:13]Read from MH i2c: E2 [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: E2 62 00 [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: E2 62 00 40 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 50 74 01 00 0E 04 04 00 48 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 5A [05:54:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 50 74 01 00 0E 04 04 00 48 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 [05:54:13]wFMCommunicate OK [05:54:13]SAM_PROTO_GetFieldsCounters done [05:54:13]requested_item shift.num is exist - process it [05:54:13]requested_item shift.opened is exist - process it [05:54:13]req_shift_opened [05:54:13]FM_GetShiftState [05:54:13]SAM_PROTO_GetShiftState [05:54:13]wFMCommunicate request_size=4 [05:54:13]MH_SAM_APDU [05:54:13]CAPDU: 80 13 01 00 [05:54:13]Write to MH i2c: E2 08 00 41 5E 80 13 01 00 00 00 00 00 1C [05:54:13]Write i2c OK [05:54:13]MH_I2C_Read... [05:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:54:13]Read from MH i2c: E2 [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: E2 0E 00 [05:54:13]MH_I2C_Read... [05:54:13]Read from MH i2c: E2 0E 00 41 5E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 01 [05:54:13]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [05:54:13]wFMCommunicate OK [05:54:13]SAM_PROTO_GetShiftState done [05:54:13]FM_GetShiftState done [05:54:13]req_shift_opened done [05:54:13]requested_item shift.open_date is exist - process it [05:54:13]req_shift_open_date [05:54:13]req_shift_open_date done [05:54:13]produce_requested_data done [05:54:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95312,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [05:54:13]process_action_free close_receipt [05:54:13]json_value_free [05:54:13]json_value_free done [05:54:13]process_json_proto returns [05:54:13]Send response to host [05:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95312,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [05:54:13]free response buf [05:54:13]execute_script done [05:54:13]execute_script returns [05:54:13]free content buf [05:54:13]Sock 8.Close socket [05:54:13]Sock 8.Thread stoped [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:08]accept exits with 9 [05:58:08]New connection [05:58:08]New thread 3066957156 created [05:58:08]Thread 3066813796 joined [05:58:08]Waiting for new connection... [05:58:08] Sock 9.Parse request [05:58:08]Sock 9.Check first char [05:58:08]Sock 9.First char is OK [05:58:08]request: POST /json_proto HTTP/1.0 [05:58:08]Method: POST [05:58:08]URL: /json_proto [05:58:08]Method is POST - this is cgi request [05:58:08]url: /json_proto [05:58:08]query_string will be loaded in cgi processing [05:58:08]execute_cgi json_proto POST (null) [05:58:08]execute_cgi path=json_proto method=POST [05:58:08]POST find Content-Length [05:58:08]Host: 172.17.62.67:8080 [05:58:08]Content-Length: 670 [05:58:08]Content-Type: application/json [05:58:08] [05:58:08]POST finish read [05:58:08]Found Content-Length = 670 [05:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 4.700, "sum" : 300.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:08]execute_script... [05:58:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 4.700, "sum" : 300.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:58:08]POST & json_proto [05:58:08]process_json_proto [05:58:08]json parsed OK: [05:58:08]protocol is kg_v1.0 [05:58:08]action value=close_receipt [05:58:08]process_action close_receipt [05:58:08]cmd_close_receipt [05:58:08]MH_GetDate [05:58:08]Write to MH i2c: F0 00 00 42 5E 8F [05:58:08]Write i2c OK [05:58:08]MH_I2C_Read... [05:58:08]Read from MH i2c: F0 [05:58:08]MH_I2C_Read... [05:58:08]Read from MH i2c: F0 05 00 [05:58:08]MH_I2C_Read... [05:58:08]Read from MH i2c: F0 05 00 42 5E 00 7A 40 F1 65 A4 [05:58:08]GetLastDocTimeStamp 1710309260 [05:58:08]current date 1710309498 [05:58:08]FM_GetShiftState [05:58:08]SAM_PROTO_GetShiftState [05:58:08]wFMCommunicate request_size=4 [05:58:08]MH_SAM_APDU [05:58:08]CAPDU: 80 13 01 00 [05:58:08]Write to MH i2c: E2 08 00 43 5E 80 13 01 00 00 00 00 00 1E [05:58:08]Write i2c OK [05:58:08]MH_I2C_Read... [05:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:08]Read from MH i2c: E2 [05:58:08]MH_I2C_Read... [05:58:08]Read from MH i2c: E2 0E 00 [05:58:08]MH_I2C_Read... [05:58:08]Read from MH i2c: E2 0E 00 43 5E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 03 [05:58:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [05:58:08]wFMCommunicate OK [05:58:08]SAM_PROTO_GetShiftState done [05:58:08]FM_GetShiftState done [05:58:08]opened in 1710288279 [05:58:08]opened+sec_in_day 1710374679 [05:58:08]quantity*price = 30033 [05:58:08]sum+1 = 30034 [05:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 8 13.03.2024 05:58 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95313 ФПД: 221353128472430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T055818&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95313&fm=221353128472430&tin=02508201610067®Number=0000000000090555&sum=30000 [05:58:10]StoreToDocumentArchive [05:58:10]shift 328 fd 95313 [05:58:10]save to /storage/0328/doc_00095313 [05:58:10]save last doc name /storage/0328/doc_00095313 to /storage/kkm_last_doc_name [05:58:10]save OK [05:58:10]Clear old archive folders... [05:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:58:10]tlvbuf is 01A8D7E0 [05:58:10]SAM_PROTO_ClearQueue [05:58:10]wFMCommunicate request_size=4 [05:58:10]MH_SAM_APDU [05:58:10]CAPDU: 80 09 00 00 [05:58:10]Write to MH i2c: E2 08 00 50 5E 80 09 00 00 00 00 00 00 20 [05:58:10]Write i2c OK [05:58:10]MH_I2C_Read... [05:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:10]Read from MH i2c: E2 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 03 00 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 03 00 50 5E 00 90 00 22 [05:58:10]RAPDU: 90 00 [05:58:10]wFMCommunicate OK [05:58:10]SAM_PROTO_ClearQueue done [05:58:10]KKMCreateOFDPacket [05:58:10]OFDProtocolAddRootSTLVToBuf [05:58:10]FM_MakeSignedData [05:58:10]FM_MakeSignedData [05:58:10]SAM_PROTO_SignData [05:58:10]wFMCommunicate request_size=4 [05:58:10]MH_SAM_APDU [05:58:10]CAPDU: 80 0D 01 02 [05:58:10]Write to MH i2c: E2 08 00 51 5E 80 0D 01 02 00 00 00 00 28 [05:58:10]Write i2c OK [05:58:10]MH_I2C_Read... [05:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:10]Read from MH i2c: E2 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 03 00 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 03 00 51 5E 00 90 00 23 [05:58:10]RAPDU: 90 00 [05:58:10]wFMCommunicate OK [05:58:10]wFMCommunicate request_size=255 [05:58:10]MH_SAM_APDU [05:58:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 5C 12 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 51 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7A 40 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 74 01 00 35 04 06 00 [05:58:10]Write to MH i2c: E2 02 01 52 5E 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 5C 12 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 51 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7A 40 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 74 01 00 35 04 06 00 00 00 0A [05:58:10]Write i2c OK [05:58:10]MH_I2C_Read... [05:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:10]Read from MH i2c: E2 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 03 00 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 03 00 52 5E 00 90 00 24 [05:58:10]RAPDU: 90 00 [05:58:10]wFMCommunicate OK [05:58:10]wFMCommunicate request_size=11 [05:58:10]MH_SAM_APDU [05:58:10]CAPDU: 80 0D 02 02 06 C9 51 CA 97 AF 6E [05:58:10]Write to MH i2c: E2 0E 00 53 5E 80 0D 02 02 06 00 C9 51 CA 97 AF 6E 00 00 CF [05:58:10]Write i2c OK [05:58:10]MH_I2C_Read... [05:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:10]Read from MH i2c: E2 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 03 00 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 03 00 53 5E 00 90 00 25 [05:58:10]RAPDU: 90 00 [05:58:10]wFMCommunicate OK [05:58:10]wFMCommunicate request_size=4 [05:58:10]MH_SAM_APDU [05:58:10]CAPDU: 80 0D 03 02 [05:58:10]Write to MH i2c: E2 08 00 54 5E 80 0D 03 02 00 00 00 00 2D [05:58:10]Write i2c OK [05:58:10]MH_I2C_Read... [05:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:10]Read from MH i2c: E2 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 0B 00 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 0B 00 54 5E 00 3C C4 65 47 1E 62 62 94 90 00 50 [05:58:10]RAPDU: 3C C4 65 47 1E 62 62 94 90 00 [05:58:10]wFMCommunicate OK [05:58:10]SAM_PROTO_SignData done [05:58:10]FM_MakeSignedData done [05:58:10]CreateOFDProtocolMessage [05:58:10]wFMCommunicate request_size=4 [05:58:10]MH_SAM_APDU [05:58:10]CAPDU: 80 11 00 00 [05:58:10]Write to MH i2c: E2 08 00 55 5E 80 11 00 00 00 00 00 00 2D [05:58:10]Write i2c OK [05:58:10]MH_I2C_Read... [05:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:10]Read from MH i2c: E2 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 17 00 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: E2 17 00 55 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7D [05:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [05:58:10]wFMCommunicate OK [05:58:10]CreateOFDProtocolMessage done [05:58:10]OFDSenderStorePacket 95313 [05:58:10]StoreOFDPacket docnum=95313 [05:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 A6 A8 08 01 75 00 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 5C 12 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 51 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7A 40 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 74 01 00 35 04 06 00 C9 51 CA 97 AF 6E 3C C4 65 47 1E 62 62 94 [05:58:10]CheckFolder [05:58:10]dirname=/storage/ofd_packets [05:58:10]CheckFolder done [05:58:10]ProducePacketName [05:58:10]name=ofd_packets/00095313 [05:58:10]NVStorageSaveData ofd_packets/00095313 [05:58:10]File name is /storage/ofd_packets/00095313 [05:58:10]Write 302 bytes [05:58:10]NVStorageSaveData done [05:58:10]OFDSenderStorePacket done [05:58:10]KKMCreateOFDPacket done [05:58:10]NVStorageSaveData kkm_last_timestamp [05:58:10]File name is /storage/kkm_last_timestamp [05:58:10]Write 4 bytes [05:58:10]NVStorageSaveData done [05:58:10]ExternCall_PrintAddStr [05:58:10]wPrintStart [05:58:10]Write to MH i2c: 01 00 00 56 5E B4 [05:58:10]Write i2c OK [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: 01 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: 01 07 00 [05:58:10]MH_I2C_Read... [05:58:10]Read from MH i2c: 01 07 00 56 5E 00 80 00 00 00 FF 0F 49 [05:58:10]RasterBufferAndPrint [05:58:10]line Счет N : (1)196287 [05:58:10]line ИНН: 02508201610067 [05:58:10]line Контрольно-Кассовый Чек [05:58:10]line ПРОДАЖА [05:58:10]line ТРК (МРК, ГНК) : 13 [05:58:10]line Товар: 2710124130 [05:58:10]line SUPER 92-К-5 [05:58:10]line 4.700 * 63.90 [05:58:10]line = 300.33 [05:58:10]line НДС 12% НСП 1% [05:58:10]line > о реализуемом товаре [05:58:10]line ОКРУГЛЕНИЕ: -0.33 [05:58:10]line ИТОГО: 300.00 [05:58:10]line Внесено: 300.00 [05:58:10]line СДАЧА: 0.00 [05:58:10]line НСП 1% : 2.66 [05:58:10]line НДС 12% : 31.89 [05:58:10]line Наличными: 300.00 [05:58:10]line Безнал.: 0.00 [05:58:10]line Место: АЗС № 6 "Партнер Нефть" [05:58:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [05:58:10]line СНО: Общий режим [05:58:10]line Чек 8 13.03.2024 05:58 [05:58:10]line Смена: 328 ФФД: 1.0 [05:58:10]line ЗНМ: 0300000009 [05:58:10]line РНМ: 0000000000090555 [05:58:10]line Версия ККМ: 001 [05:58:10]line ФМ: 0000000000874811 [05:58:10]line ФД: 95313 [05:58:10]line ФПД: 221353128472430 [05:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T055818&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95313&fm=221353128472430&tin=02508201610067®Number=0000000000090555&sum=30000 [05:58:10]OFD Sender: Processing packet 95313 [packets to send 30, broken 29] [05:58:10]ProducePacketName [05:58:10]name=ofd_packets/00095313 [05:58:10]OFD Sender: To server: pG, [05:58:10]CommunicateWithHost lk.salyk.kg:30040 [05:58:10]ConnectInit lk.salyk.kg [05:58:10]written 0, free lines is 4095 [05:58:10]Connected sock=8 [05:58:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 A6 A8 08 01 75 00 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 5C 12 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 51 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 7A 40 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 51 74 01 00 35 04 06 00 C9 51 CA 97 AF 6E 3C C4 65 47 1E 62 62 94 [05:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 67 0B 47 00 46 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 34 38 31 31 10 04 04 00 51 74 01 00 F4 03 04 00 CD EB F0 65 B6 04 01 00 00 FA 7C 23 EB CF 11 0F E5 [05:58:11]CommunicateWithHost err = 0 [05:58:11]CheckOFDResponse [05:58:11]1017 (14) - 77093643461234 [05:58:11]1041 (16) - 0000000000874811 [05:58:11]1040 (4) - 95313 [05:58:11]1012 (4) - 12.03.2024 23:57 [05:58:11]1206 (1) - 0 [05:58:11]OFD Sender: Remove packet 95313 [05:58:11]ProducePacketName [05:58:11]name=ofd_packets/00095313 [05:58:11]NVStorageDeleteData [05:58:11]Write to MH i2c: 01 00 00 81 5E DF [05:58:11]Write i2c OK [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: 01 [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: 01 07 00 [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: 01 07 00 81 5E 00 80 00 00 00 52 0D C5 [05:58:11]RasterBufferAndPrint [05:58:11]line [05:58:11]line [05:58:11]line [05:58:11]line [05:58:11]line [05:58:11]written 0, free lines is 3416 [05:58:11]process_action close_receipt done [05:58:11]requested_data is exist [05:58:11]produce_requested_data [05:58:11]requested_item fm.sn is exist - process it [05:58:11]wFMCommunicate request_size=4 [05:58:11]MH_SAM_APDU [05:58:11]CAPDU: 80 11 00 00 [05:58:11]Write to MH i2c: E2 08 00 88 5E 80 11 00 00 00 00 00 00 60 [05:58:11]Write i2c OK [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: E2 [05:58:11]MH_I2C_Read... [05:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:11]Read from MH i2c: E2 17 00 [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: E2 17 00 88 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B0 [05:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [05:58:11]wFMCommunicate OK [05:58:11]requested_item fd.num is exist - process it [05:58:11]SAM_PROTO_GetFieldsCounters [05:58:11]wFMCommunicate request_size=4 [05:58:11]MH_SAM_APDU [05:58:11]CAPDU: 80 13 00 00 [05:58:11]Write to MH i2c: E2 08 00 89 5E 80 13 00 00 00 00 00 00 63 [05:58:11]Write i2c OK [05:58:11]MH_I2C_Read... [05:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:11]Read from MH i2c: E2 [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: E2 62 00 [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: E2 62 00 89 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 51 74 01 00 0E 04 04 00 48 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 A7 [05:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 51 74 01 00 0E 04 04 00 48 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:58:11]wFMCommunicate OK [05:58:11]SAM_PROTO_GetFieldsCounters done [05:58:11]requested_item shift.num is exist - process it [05:58:11]requested_item shift.opened is exist - process it [05:58:11]req_shift_opened [05:58:11]FM_GetShiftState [05:58:11]SAM_PROTO_GetShiftState [05:58:11]wFMCommunicate request_size=4 [05:58:11]MH_SAM_APDU [05:58:11]CAPDU: 80 13 01 00 [05:58:11]Write to MH i2c: E2 08 00 8A 5E 80 13 01 00 00 00 00 00 65 [05:58:11]Write i2c OK [05:58:11]MH_I2C_Read... [05:58:11]OFD Sender: No OFD packet to send [05:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:11]Read from MH i2c: E2 [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: E2 0E 00 [05:58:11]MH_I2C_Read... [05:58:11]Read from MH i2c: E2 0E 00 8A 5E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4A [05:58:11]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [05:58:11]wFMCommunicate OK [05:58:11]SAM_PROTO_GetShiftState done [05:58:11]FM_GetShiftState done [05:58:11]req_shift_opened done [05:58:11]requested_item shift.open_date is exist - process it [05:58:11]req_shift_open_date [05:58:11]req_shift_open_date done [05:58:11]produce_requested_data done [05:58:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95313,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [05:58:11]process_action_free close_receipt [05:58:11]json_value_free [05:58:11]json_value_free done [05:58:11]process_json_proto returns [05:58:11]Send response to host [05:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95313,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [05:58:11]free response buf [05:58:11]execute_script done [05:58:11]execute_script returns [05:58:11]free content buf [05:58:11]Sock 9.Close socket [05:58:11]Sock 9.Thread stoped [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:45]recv_with_timeout no data received [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:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]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:16]recv_with_timeout no data received [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:30]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]recv_with_timeout no data received [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]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:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]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:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:28]Read from MH i2c: E2 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: E2 17 00 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: E2 17 00 9E 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [06:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [06:52:28]wFMCommunicate OK [06:52:28]CreateOFDProtocolMessage done [06:52:28]OFDSenderStorePacket 95314 [06:52:28]StoreOFDPacket docnum=95314 [06:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 40 BC 07 01 E2 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 33 4D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 74 01 00 35 04 06 00 EE 3F AB 96 14 60 0F 3E 5B 10 0F B8 A8 9F [06:52:28]CheckFolder [06:52:28]dirname=/storage/ofd_packets [06:52:28]CheckFolder done [06:52:28]ProducePacketName [06:52:28]name=ofd_packets/00095314 [06:52:28]NVStorageSaveData ofd_packets/00095314 [06:52:28]File name is /storage/ofd_packets/00095314 [06:52:28]Write 301 bytes [06:52:28]NVStorageSaveData done [06:52:28]OFDSenderStorePacket done [06:52:28]KKMCreateOFDPacket done [06:52:28]NVStorageSaveData kkm_last_timestamp [06:52:28]File name is /storage/kkm_last_timestamp [06:52:28]Write 4 bytes [06:52:28]NVStorageSaveData done [06:52:28]ExternCall_PrintAddStr [06:52:28]wPrintStart [06:52:28]Write to MH i2c: 01 00 00 9F 5E FD [06:52:28]Write i2c OK [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: 01 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: 01 07 00 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: 01 07 00 9F 5E 00 80 00 00 00 FF 0F 92 [06:52:28]RasterBufferAndPrint [06:52:28]line Счет N : (1)196288 [06:52:28]line ИНН: 02508201610067 [06:52:28]line Контрольно-Кассовый Чек [06:52:28]line ПРОДАЖА [06:52:28]line ТРК (МРК, ГНК) : 12 [06:52:28]line Товар: 2710124130 [06:52:28]line Аи-92-К-5 [06:52:28]line 5.570 * 62.90 [06:52:28]line = 350.35 [06:52:28]line НДС 12% НСП 1% [06:52:28]line > о реализуемом товаре [06:52:28]line ИТОГО: 350.35 [06:52:28]line НСП 1% : 3.10 [06:52:28]line НДС 12% : 37.20 [06:52:28]line Наличными: 0.00 [06:52:28]line Безнал.: 350.35 [06:52:28]line Место: АЗС № 6 "Партнер Нефть" [06:52:28]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [06:52:28]line СНО: Общий режим [06:52:28]line Чек 9 13.03.2024 06:52 [06:52:28]line Смена: 328 ФФД: 1.0 [06:52:28]line ЗНМ: 0300000009 [06:52:28]line РНМ: 0000000000090555 [06:52:28]line Версия ККМ: 001 [06:52:28]line Платежная система: О! деньги [06:52:28]line ФМ: 0000000000874811 [06:52:28]line ФД: 95314 [06:52:28]line ФПД: 261957229089888 [06:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T065235&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95314&fm=261957229089888&tin=02508201610067®Number=0000000000090555&sum=35035 [06:52:28]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:52:28]ProducePacketName [06:52:28]name=ofd_packets/00095314 [06:52:28]OFD Sender: To server: pG, [06:52:28]CommunicateWithHost lk.salyk.kg:30040 [06:52:28]ConnectInit lk.salyk.kg [06:52:28]written 0, free lines is 4095 [06:52:28]Write to MH i2c: 01 00 00 C9 5E 27 [06:52:28]Write i2c OK [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: 01 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: 01 07 00 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: 01 07 00 C9 5E 00 80 00 00 00 57 0D 12 [06:52:28]RasterBufferAndPrint [06:52:28]line [06:52:28]line [06:52:28]line [06:52:28]line [06:52:28]line [06:52:28]written 0, free lines is 3421 [06:52:28]process_action close_receipt done [06:52:28]requested_data is exist [06:52:28]produce_requested_data [06:52:28]requested_item fm.sn is exist - process it [06:52:28]wFMCommunicate request_size=4 [06:52:28]MH_SAM_APDU [06:52:28]CAPDU: 80 11 00 00 [06:52:28]Write to MH i2c: E2 08 00 D0 5E 80 11 00 00 00 00 00 00 A8 [06:52:28]Write i2c OK [06:52:28]MH_I2C_Read... [06:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:28]Read from MH i2c: E2 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: E2 17 00 [06:52:28]MH_I2C_Read... [06:52:28]Read from MH i2c: E2 17 00 D0 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [06:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [06:52:28]wFMCommunicate OK [06:52:28]requested_item fd.num is exist - process it [06:52:28]SAM_PROTO_GetFieldsCounters [06:52:28]wFMCommunicate request_size=4 [06:52:28]MH_SAM_APDU [06:52:28]CAPDU: 80 13 00 00 [06:52:28]Write to MH i2c: E2 08 00 D1 5E 80 13 00 00 00 00 00 00 AB [06:52:28]Write i2c OK [06:52:28]MH_I2C_Read... [06:52:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:29]Read from MH i2c: E2 [06:52:29]MH_I2C_Read... [06:52:29]Read from MH i2c: E2 62 00 [06:52:29]MH_I2C_Read... [06:52:29]Read from MH i2c: E2 62 00 D1 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 52 74 01 00 0E 04 04 00 48 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 F3 [06:52:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 52 74 01 00 0E 04 04 00 48 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:52:29]wFMCommunicate OK [06:52:29]SAM_PROTO_GetFieldsCounters done [06:52:29]requested_item shift.num is exist - process it [06:52:29]requested_item shift.opened is exist - process it [06:52:29]req_shift_opened [06:52:29]FM_GetShiftState [06:52:29]SAM_PROTO_GetShiftState [06:52:29]wFMCommunicate request_size=4 [06:52:29]MH_SAM_APDU [06:52:29]CAPDU: 80 13 01 00 [06:52:29]Write to MH i2c: E2 08 00 D2 5E 80 13 01 00 00 00 00 00 AD [06:52:29]Write i2c OK [06:52:29]MH_I2C_Read... [06:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:29]Read from MH i2c: E2 [06:52:29]MH_I2C_Read... [06:52:29]Read from MH i2c: E2 0E 00 [06:52:29]MH_I2C_Read... [06:52:29]Read from MH i2c: E2 0E 00 D2 5E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 92 [06:52:29]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [06:52:29]wFMCommunicate OK [06:52:29]SAM_PROTO_GetShiftState done [06:52:29]FM_GetShiftState done [06:52:29]req_shift_opened done [06:52:29]requested_item shift.open_date is exist - process it [06:52:29]req_shift_open_date [06:52:29]req_shift_open_date done [06:52:29]produce_requested_data done [06:52:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95314,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [06:52:29]process_action_free close_receipt [06:52:29]json_value_free [06:52:29]json_value_free done [06:52:29]process_json_proto returns [06:52:29]Send response to host [06:52:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95314,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [06:52:29]free response buf [06:52:29]execute_script done [06:52:29]execute_script returns [06:52:29]free content buf [06:52:29]Sock 10.Close socket [06:52:29]Sock 10.Thread stoped [06:52:31]recv_with_timeout no data received [06:52:33]ConnectInit Can't take IP for lk.salyk.kg [06:52:33]CommunicateWithHost connect error [06:52:33]CommunicateWithHost err = -1 [06:52:33]OFD Sender: Server communicate error [06:52:38]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:52:38]ProducePacketName [06:52:38]name=ofd_packets/00095314 [06:52:38]OFD Sender: To server: pG, [06:52:38]CommunicateWithHost lk.salyk.kg:30040 [06:52:38]ConnectInit lk.salyk.kg [06:52:43]ConnectInit Can't take IP for lk.salyk.kg [06:52:43]CommunicateWithHost connect error [06:52:43]CommunicateWithHost err = -1 [06:52:43]OFD Sender: Server communicate error [06:52:48]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:52:48]ProducePacketName [06:52:48]name=ofd_packets/00095314 [06:52:48]OFD Sender: To server: pG, [06:52:48]CommunicateWithHost lk.salyk.kg:30040 [06:52:48]ConnectInit lk.salyk.kg [06:52:53]ConnectInit Can't take IP for lk.salyk.kg [06:52:53]CommunicateWithHost connect error [06:52:53]CommunicateWithHost err = -1 [06:52:53]OFD Sender: Server communicate error [06:52:57]recv_with_timeout no data received [06:52:58]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:52:58]ProducePacketName [06:52:58]name=ofd_packets/00095314 [06:52:58]OFD Sender: To server: pG, [06:52:58]CommunicateWithHost lk.salyk.kg:30040 [06:52:58]ConnectInit lk.salyk.kg [06:53:03]ConnectInit Can't take IP for lk.salyk.kg [06:53:03]CommunicateWithHost connect error [06:53:03]CommunicateWithHost err = -1 [06:53:03]OFD Sender: Server communicate error [06:53:08]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:53:08]ProducePacketName [06:53:08]name=ofd_packets/00095314 [06:53:08]OFD Sender: To server: pG, [06:53:08]CommunicateWithHost lk.salyk.kg:30040 [06:53:08]ConnectInit lk.salyk.kg [06:53:13]ConnectInit Can't take IP for lk.salyk.kg [06:53:13]CommunicateWithHost connect error [06:53:13]CommunicateWithHost err = -1 [06:53:13]OFD Sender: Server communicate error [06:53:18]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:53:18]ProducePacketName [06:53:18]name=ofd_packets/00095314 [06:53:18]OFD Sender: To server: pG, [06:53:18]CommunicateWithHost lk.salyk.kg:30040 [06:53:18]ConnectInit lk.salyk.kg [06:53:23]ConnectInit Can't take IP for lk.salyk.kg [06:53:23]CommunicateWithHost connect error [06:53:23]CommunicateWithHost err = -1 [06:53:23]OFD Sender: Server communicate error [06:53:28]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:53:28]ProducePacketName [06:53:28]name=ofd_packets/00095314 [06:53:28]OFD Sender: To server: pG, [06:53:28]CommunicateWithHost lk.salyk.kg:30040 [06:53:28]ConnectInit lk.salyk.kg [06:53:33]ConnectInit Can't take IP for lk.salyk.kg [06:53:33]CommunicateWithHost connect error [06:53:33]CommunicateWithHost err = -1 [06:53:33]OFD Sender: Server communicate error [06:53:38]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:53:38]ProducePacketName [06:53:38]name=ofd_packets/00095314 [06:53:38]OFD Sender: To server: pG, [06:53:38]CommunicateWithHost lk.salyk.kg:30040 [06:53:38]ConnectInit lk.salyk.kg [06:53:43]ConnectInit Can't take IP for lk.salyk.kg [06:53:43]CommunicateWithHost connect error [06:53:43]CommunicateWithHost err = -1 [06:53:43]OFD Sender: Server communicate error [06:53:48]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:53:48]ProducePacketName [06:53:48]name=ofd_packets/00095314 [06:53:48]OFD Sender: To server: pG, [06:53:48]CommunicateWithHost lk.salyk.kg:30040 [06:53:48]ConnectInit lk.salyk.kg [06:53:53]ConnectInit Can't take IP for lk.salyk.kg [06:53:53]CommunicateWithHost connect error [06:53:53]CommunicateWithHost err = -1 [06:53:53]OFD Sender: Server communicate error [06:53:58]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:53:58]ProducePacketName [06:53:58]name=ofd_packets/00095314 [06:53:58]OFD Sender: To server: pG, [06:53:58]CommunicateWithHost lk.salyk.kg:30040 [06:53:58]ConnectInit lk.salyk.kg [06:54:03]ConnectInit Can't take IP for lk.salyk.kg [06:54:03]CommunicateWithHost connect error [06:54:03]CommunicateWithHost err = -1 [06:54:03]OFD Sender: Server communicate error [06:54:08]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:54:08]ProducePacketName [06:54:08]name=ofd_packets/00095314 [06:54:08]OFD Sender: To server: pG, [06:54:08]CommunicateWithHost lk.salyk.kg:30040 [06:54:08]ConnectInit lk.salyk.kg [06:54:14]recv_with_timeout no data received [06:54:17]Connected sock=8 [06:54:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 40 BC 07 01 E2 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 33 4D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 74 01 00 35 04 06 00 EE 3F AB 96 14 60 0F 3E 5B 10 0F B8 A8 9F [06:54:22]recv_with_timeout no data received [06:54:22]CommunicateWithHost answer receiving error [06:54:22]CommunicateWithHost err = -3 [06:54:22]OFD Sender: Server communicate error [06:54:27]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:54:27]ProducePacketName [06:54:27]name=ofd_packets/00095314 [06:54:27]OFD Sender: To server: pG, [06:54:27]CommunicateWithHost lk.salyk.kg:30040 [06:54:27]ConnectInit lk.salyk.kg [06:54:32]ConnectInit Can't take IP for lk.salyk.kg [06:54:32]CommunicateWithHost connect error [06:54:32]CommunicateWithHost err = -1 [06:54:32]OFD Sender: Server communicate error [06:54:37]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:54:37]ProducePacketName [06:54:37]name=ofd_packets/00095314 [06:54:37]OFD Sender: To server: pG, [06:54:37]CommunicateWithHost lk.salyk.kg:30040 [06:54:37]ConnectInit lk.salyk.kg [06:54:42]ConnectInit Can't take IP for lk.salyk.kg [06:54:42]CommunicateWithHost connect error [06:54:42]CommunicateWithHost err = -1 [06:54:42]OFD Sender: Server communicate error [06:54:47]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:54:47]ProducePacketName [06:54:47]name=ofd_packets/00095314 [06:54:47]OFD Sender: To server: pG, [06:54:47]CommunicateWithHost lk.salyk.kg:30040 [06:54:47]ConnectInit lk.salyk.kg [06:54:52]ConnectInit Can't take IP for lk.salyk.kg [06:54:52]CommunicateWithHost connect error [06:54:52]CommunicateWithHost err = -1 [06:54:52]OFD Sender: Server communicate error [06:54:57]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:54:57]ProducePacketName [06:54:57]name=ofd_packets/00095314 [06:54:57]OFD Sender: To server: pG, [06:54:57]CommunicateWithHost lk.salyk.kg:30040 [06:54:57]ConnectInit lk.salyk.kg [06:55:01]recv_with_timeout no data received [06:55:02]ConnectInit Can't take IP for lk.salyk.kg [06:55:02]CommunicateWithHost connect error [06:55:02]CommunicateWithHost err = -1 [06:55:02]OFD Sender: Server communicate error [06:55:07]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:55:07]ProducePacketName [06:55:07]name=ofd_packets/00095314 [06:55:07]OFD Sender: To server: pG, [06:55:07]CommunicateWithHost lk.salyk.kg:30040 [06:55:07]ConnectInit lk.salyk.kg [06:55:12]ConnectInit Can't take IP for lk.salyk.kg [06:55:12]CommunicateWithHost connect error [06:55:12]CommunicateWithHost err = -1 [06:55:12]OFD Sender: Server communicate error [06:55:17]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:55:17]ProducePacketName [06:55:17]name=ofd_packets/00095314 [06:55:17]OFD Sender: To server: pG, [06:55:17]CommunicateWithHost lk.salyk.kg:30040 [06:55:17]ConnectInit lk.salyk.kg [06:55:22]ConnectInit Can't take IP for lk.salyk.kg [06:55:22]CommunicateWithHost connect error [06:55:22]CommunicateWithHost err = -1 [06:55:22]OFD Sender: Server communicate error [06:55:27]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:55:27]ProducePacketName [06:55:27]name=ofd_packets/00095314 [06:55:27]OFD Sender: To server: pG, [06:55:27]CommunicateWithHost lk.salyk.kg:30040 [06:55:27]ConnectInit lk.salyk.kg [06:55:32]ConnectInit Can't take IP for lk.salyk.kg [06:55:32]CommunicateWithHost connect error [06:55:32]CommunicateWithHost err = -1 [06:55:32]OFD Sender: Server communicate error [06:55:37]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:55:37]ProducePacketName [06:55:37]name=ofd_packets/00095314 [06:55:37]OFD Sender: To server: pG, [06:55:37]CommunicateWithHost lk.salyk.kg:30040 [06:55:37]ConnectInit lk.salyk.kg [06:55:42]ConnectInit Can't take IP for lk.salyk.kg [06:55:42]CommunicateWithHost connect error [06:55:42]CommunicateWithHost err = -1 [06:55:42]OFD Sender: Server communicate error [06:55:47]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:55:47]ProducePacketName [06:55:47]name=ofd_packets/00095314 [06:55:47]OFD Sender: To server: pG, [06:55:47]CommunicateWithHost lk.salyk.kg:30040 [06:55:47]ConnectInit lk.salyk.kg [06:55:52]ConnectInit Can't take IP for lk.salyk.kg [06:55:52]CommunicateWithHost connect error [06:55:52]CommunicateWithHost err = -1 [06:55:52]OFD Sender: Server communicate error [06:55:57]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:55:57]ProducePacketName [06:55:57]name=ofd_packets/00095314 [06:55:57]OFD Sender: To server: pG, [06:55:57]CommunicateWithHost lk.salyk.kg:30040 [06:55:57]ConnectInit lk.salyk.kg [06:56:14]Connected sock=10 [06:56:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 40 BC 07 01 E2 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 33 4D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 74 01 00 35 04 06 00 EE 3F AB 96 14 60 0F 3E 5B 10 0F B8 A8 9F [06:56:19]recv_with_timeout no data received [06:56:19]CommunicateWithHost answer receiving error [06:56:19]CommunicateWithHost err = -3 [06:56:19]OFD Sender: Server communicate error [06:56:24]OFD Sender: Processing packet 95314 [packets to send 30, broken 29] [06:56:24]ProducePacketName [06:56:24]name=ofd_packets/00095314 [06:56:24]OFD Sender: To server: pG, [06:56:24]CommunicateWithHost lk.salyk.kg:30040 [06:56:24]ConnectInit lk.salyk.kg [06:56:27]Connected sock=10 [06:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 40 BC 07 01 E2 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 33 4D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 74 01 00 35 04 06 00 EE 3F AB 96 14 60 0F 3E 5B 10 0F B8 A8 9F [06:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A1 E3 47 00 BC 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 52 74 01 00 F4 03 04 00 76 F9 F0 65 B6 04 01 00 00 82 B9 DF A0 AD EC 27 81 [06:56:27]CommunicateWithHost err = 0 [06:56:27]CheckOFDResponse [06:56:27]1017 (14) - 77093643461234 [06:56:27]1041 (16) - 0000000000874811 [06:56:27]1040 (4) - 95314 [06:56:27]1012 (4) - 13.03.2024 00:55 [06:56:27]1206 (1) - 0 [06:56:27]OFD Sender: Remove packet 95314 [06:56:27]ProducePacketName [06:56:27]name=ofd_packets/00095314 [06:56:27]NVStorageDeleteData [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:50]recv_with_timeout no data received [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:57]accept exits with 9 [06:57:57]New connection [06:57:57]New thread 3066957156 created [06:57:57]Thread 3066813796 joined [06:57:57]Waiting for new connection... [06:57:57] Sock 9.Parse request [06:57:57]Sock 9.Check first char [06:57:57]Sock 9.First char is OK [06:57:57]request: POST /json_proto HTTP/1.0 [06:57:57]Method: POST [06:57:57]URL: /json_proto [06:57:57]Method is POST - this is cgi request [06:57:57]url: /json_proto [06:57:57]query_string will be loaded in cgi processing [06:57:57]execute_cgi json_proto POST (null) [06:57:57]execute_cgi path=json_proto method=POST [06:57:57]POST find Content-Length [06:57:57]Host: 172.17.62.67:8080 [06:57:57]Content-Length: 1190 [06:57:57]Content-Type: application/json [06:57:57] [06:57:57]POST finish read [06:57:57]Found Content-Length = 1190 [06:57:57]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196289\u000A13.03.2024 06:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3821853\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:57]execute_script... [06:57:57]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196289\u000A13.03.2024 06:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3821853\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:57]POST & json_proto [06:57:57]process_json_proto [06:57:57]json parsed OK: [06:57:57]protocol is kg_v1.0 [06:57:57]action value=print_text [06:57:57]process_action print_text [06:57:57]cmd_print_text [06:57:57]ExternCall_PrintAddStr [06:57:57]wPrintStart [06:57:57]Write to MH i2c: 01 00 00 D3 5E 31 [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: 01 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: 01 07 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: 01 07 00 D3 5E 00 80 00 00 00 FF 0F C6 [06:57:57]RasterBufferAndPrint [06:57:57]line *****ТОВАРНЫЙ ЧЕК***** [06:57:57]line АЗС 6 [06:57:57]line Партнер нефть [06:57:57]line 02508201610067 [06:57:57]line Кассир : Сабырбек у. М. [06:57:57]line Счет N : (1)196289 [06:57:57]line 13.03.2024 06:52 [06:57:57]line ПРОДАЖА [06:57:57]line ТРК (МРК, ГНК): 12 [06:57:57]line Вид ГСМ : 2710124130 [06:57:57]line Аи-92-К-5 [06:57:57]line 10.000 x 62.90 [06:57:57]line ИТОГ: 629.00 [06:57:57]line Тип оплаты: Талоны: Партнер нефть [06:57:57]line 3821853 [06:57:57]line ______________________ [06:57:57]line (подпись) [06:57:57]written 0, free lines is 4095 [06:57:57]Write to MH i2c: 01 00 00 E7 5E 45 [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: 01 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: 01 07 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: 01 07 00 E7 5E 00 80 00 00 00 69 0E 43 [06:57:57]RasterBufferAndPrint [06:57:57]line [06:57:57]line [06:57:57]line [06:57:57]line [06:57:57]line [06:57:57]written 0, free lines is 3693 [06:57:57]process_action print_text done [06:57:57]requested_data is exist [06:57:57]produce_requested_data [06:57:57]requested_item fm.sn is exist - process it [06:57:57]wFMCommunicate request_size=4 [06:57:57]MH_SAM_APDU [06:57:57]CAPDU: 80 11 00 00 [06:57:57]Write to MH i2c: E2 08 00 EE 5E 80 11 00 00 00 00 00 00 C6 [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:57]Read from MH i2c: E2 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 17 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 17 00 EE 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 16 [06:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [06:57:57]wFMCommunicate OK [06:57:57]requested_item fd.num is exist - process it [06:57:57]SAM_PROTO_GetFieldsCounters [06:57:57]wFMCommunicate request_size=4 [06:57:57]MH_SAM_APDU [06:57:57]CAPDU: 80 13 00 00 [06:57:57]Write to MH i2c: E2 08 00 EF 5E 80 13 00 00 00 00 00 00 C9 [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:57]Read from MH i2c: E2 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 62 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 62 00 EF 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 52 74 01 00 0E 04 04 00 48 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 11 [06:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 52 74 01 00 0E 04 04 00 48 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:57:57]wFMCommunicate OK [06:57:57]SAM_PROTO_GetFieldsCounters done [06:57:57]requested_item shift.num is exist - process it [06:57:57]requested_item shift.opened is exist - process it [06:57:57]req_shift_opened [06:57:57]FM_GetShiftState [06:57:57]SAM_PROTO_GetShiftState [06:57:57]wFMCommunicate request_size=4 [06:57:57]MH_SAM_APDU [06:57:57]CAPDU: 80 13 01 00 [06:57:57]Write to MH i2c: E2 08 00 F0 5E 80 13 01 00 00 00 00 00 CB [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:57]Read from MH i2c: E2 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 0E 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 0E 00 F0 5E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B0 [06:57:57]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [06:57:57]wFMCommunicate OK [06:57:57]SAM_PROTO_GetShiftState done [06:57:57]FM_GetShiftState done [06:57:57]req_shift_opened done [06:57:57]requested_item shift.open_date is exist - process it [06:57:57]req_shift_open_date [06:57:57]req_shift_open_date done [06:57:57]produce_requested_data done [06:57:57]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95314,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [06:57:57]process_action_free print_text [06:57:57]json_value_free [06:57:57]json_value_free done [06:57:57]process_json_proto returns [06:57:57]Send response to host [06:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95314,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [06:57:57]free response buf [06:57:57]execute_script done [06:57:57]execute_script returns [06:57:57]free content buf [06:57:57]Sock 9.Close socket [06:57:57]Sock 9.Thread stoped [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]recv_with_timeout no data received [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:17]accept exits with 8 [07:01:17]New connection [07:01:17]New thread 3066813796 created [07:01:17]Thread 3066957156 joined [07:01:17]Waiting for new connection... [07:01:17] Sock 8.Parse request [07:01:17]Sock 8.Check first char [07:01:17]Sock 8.First char is OK [07:01:17]request: POST /json_proto HTTP/1.0 [07:01:17]Method: POST [07:01:17]URL: /json_proto [07:01:17]Method is POST - this is cgi request [07:01:17]url: /json_proto [07:01:17]query_string will be loaded in cgi processing [07:01:17]execute_cgi json_proto POST (null) [07:01:17]execute_cgi path=json_proto method=POST [07:01:17]POST find Content-Length [07:01:17]Host: 172.17.62.67:8080 [07:01:17]Content-Length: 1194 [07:01:17]Content-Type: application/json [07:01:17] [07:01:17]POST finish read [07:01:17]Found Content-Length = 1194 [07:01:17]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196290\u000A13.03.2024 06:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 2127.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\u000A3689257.56.55\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:17]execute_script... [07:01:17]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196290\u000A13.03.2024 06:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 2127.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\u000A3689257.56.55\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:17]POST & json_proto [07:01:17]process_json_proto [07:01:17]json parsed OK: [07:01:17]protocol is kg_v1.0 [07:01:17]action value=print_text [07:01:17]process_action print_text [07:01:17]cmd_print_text [07:01:17]ExternCall_PrintAddStr [07:01:17]wPrintStart [07:01:17]Write to MH i2c: 01 00 00 F1 5E 4F [07:01:17]Write i2c OK [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: 01 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: 01 07 00 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: 01 07 00 F1 5E 00 80 00 00 00 FF 0F E4 [07:01:17]RasterBufferAndPrint [07:01:17]line *****ТОВАРНЫЙ ЧЕК***** [07:01:17]line АЗС 6 [07:01:17]line Партнер нефть [07:01:17]line 02508201610067 [07:01:17]line Кассир : Сабырбек у. М. [07:01:17]line Счет N : (1)196290 [07:01:17]line 13.03.2024 06:55 [07:01:17]line ПРОДАЖА [07:01:17]line ТРК (МРК, ГНК): 61 [07:01:17]line Вид ГСМ : 2710194210 [07:01:17]line ДТ-К-5 [07:01:17]line 30.000 x 70.90 [07:01:17]line ИТОГ: 2127.00 [07:01:17]line Тип оплаты: Талоны: Партнер нефть [07:01:17]line 3689257.56.55 [07:01:17]line ______________________ [07:01:17]line (подпись) [07:01:17]written 0, free lines is 4095 [07:01:17]Write to MH i2c: 01 00 00 05 5F 64 [07:01:17]Write i2c OK [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: 01 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: 01 07 00 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: 01 07 00 05 5F 00 80 00 00 00 6D 0E 66 [07:01:17]RasterBufferAndPrint [07:01:17]line [07:01:17]line [07:01:17]line [07:01:17]line [07:01:17]line [07:01:17]written 0, free lines is 3695 [07:01:17]process_action print_text done [07:01:17]requested_data is exist [07:01:17]produce_requested_data [07:01:17]requested_item fm.sn is exist - process it [07:01:17]wFMCommunicate request_size=4 [07:01:17]MH_SAM_APDU [07:01:17]CAPDU: 80 11 00 00 [07:01:17]Write to MH i2c: E2 08 00 0C 5F 80 11 00 00 00 00 00 00 E5 [07:01:17]Write i2c OK [07:01:17]MH_I2C_Read... [07:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:17]Read from MH i2c: E2 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: E2 17 00 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: E2 17 00 0C 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 35 [07:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:01:17]wFMCommunicate OK [07:01:17]requested_item fd.num is exist - process it [07:01:17]SAM_PROTO_GetFieldsCounters [07:01:17]wFMCommunicate request_size=4 [07:01:17]MH_SAM_APDU [07:01:17]CAPDU: 80 13 00 00 [07:01:17]Write to MH i2c: E2 08 00 0D 5F 80 13 00 00 00 00 00 00 E8 [07:01:17]Write i2c OK [07:01:17]MH_I2C_Read... [07:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:17]Read from MH i2c: E2 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: E2 62 00 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: E2 62 00 0D 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 52 74 01 00 0E 04 04 00 48 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 30 [07: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 52 74 01 00 0E 04 04 00 48 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 [07:01:17]wFMCommunicate OK [07:01:17]SAM_PROTO_GetFieldsCounters done [07:01:17]requested_item shift.num is exist - process it [07:01:17]requested_item shift.opened is exist - process it [07:01:17]req_shift_opened [07:01:17]FM_GetShiftState [07:01:17]SAM_PROTO_GetShiftState [07:01:17]wFMCommunicate request_size=4 [07:01:17]MH_SAM_APDU [07:01:17]CAPDU: 80 13 01 00 [07:01:17]Write to MH i2c: E2 08 00 0E 5F 80 13 01 00 00 00 00 00 EA [07:01:17]Write i2c OK [07:01:17]MH_I2C_Read... [07:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:17]Read from MH i2c: E2 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: E2 0E 00 [07:01:17]MH_I2C_Read... [07:01:17]Read from MH i2c: E2 0E 00 0E 5F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CF [07:01:17]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:01:17]wFMCommunicate OK [07:01:17]SAM_PROTO_GetShiftState done [07:01:17]FM_GetShiftState done [07:01:17]req_shift_opened done [07:01:17]requested_item shift.open_date is exist - process it [07:01:17]req_shift_open_date [07:01:17]req_shift_open_date done [07:01:17]produce_requested_data done [07:01:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95314,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:01:17]process_action_free print_text [07:01:17]json_value_free [07:01:17]json_value_free done [07:01:17]process_json_proto returns [07:01:17]Send response to host [07:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95314,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:01:17]free response buf [07:01:17]execute_script done [07:01:17]execute_script returns [07:01:17]free content buf [07:01:17]Sock 8.Close socket [07:01:17]Sock 8.Thread stoped [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:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:22]recv_with_timeout no data received [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:35]recv_with_timeout no data received [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:00]recv_with_timeout no data received [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]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:03]accept exits with 9 [07:09:03]New connection [07:09:03]New thread 3066957156 created [07:09:03]Thread 3066813796 joined [07:09:03]Waiting for new connection... [07:09:03] Sock 9.Parse request [07:09:03]Sock 9.Check first char [07:09:03]Sock 9.First char is OK [07:09:03]request: POST /json_proto HTTP/1.0 [07:09:03]Method: POST [07:09:03]URL: /json_proto [07:09:03]Method is POST - this is cgi request [07:09:03]url: /json_proto [07:09:03]query_string will be loaded in cgi processing [07:09:03]execute_cgi json_proto POST (null) [07:09:03]execute_cgi path=json_proto method=POST [07:09:03]POST find Content-Length [07:09:03]Host: 172.17.62.67:8080 [07:09:03]Content-Length: 816 [07:09:03]Content-Type: application/json [07:09:03] [07:09:03]POST finish read [07:09:03]Found Content-Length = 816 [07:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196291", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:03]execute_script... [07:09: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)196291", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:03]POST & json_proto [07:09:03]process_json_proto [07:09:03]json parsed OK: [07:09:03]protocol is kg_v1.0 [07:09:03]action value=close_receipt [07:09:03]process_action close_receipt [07:09:03]cmd_close_receipt [07:09:03]MH_GetDate [07:09:03]Write to MH i2c: F0 00 00 0F 5F 5D [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: F0 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: F0 05 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: F0 05 00 0F 5F 00 19 51 F1 65 22 [07:09:03]GetLastDocTimeStamp 1710312755 [07:09:03]current date 1710313753 [07:09:03]FM_GetShiftState [07:09:03]SAM_PROTO_GetShiftState [07:09:03]wFMCommunicate request_size=4 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 13 01 00 [07:09:03]Write to MH i2c: E2 08 00 10 5F 80 13 01 00 00 00 00 00 EC [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 0E 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 0E 00 10 5F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 D1 [07:09:03]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:09:03]wFMCommunicate OK [07:09:03]SAM_PROTO_GetShiftState done [07:09:03]FM_GetShiftState done [07:09:03]opened in 1710288279 [07:09:03]opened+sec_in_day 1710374679 [07:09:03]quantity*price = 50005 [07:09:03]sum+1 = 50007 [07:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 10 13.03.2024 07:09 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95315 ФПД: 73880961416068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T070913&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95315&fm=73880961416068&tin=02508201610067®Number=0000000000090555&sum=50006 [07:09:04]StoreToDocumentArchive [07:09:04]shift 328 fd 95315 [07:09:04]save to /storage/0328/doc_00095315 [07:09:04]save last doc name /storage/0328/doc_00095315 to /storage/kkm_last_doc_name [07:09:04]save OK [07:09:04]Clear old archive folders... [07:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:09:04]tlvbuf is B6F56560 [07:09:04]SAM_PROTO_ClearQueue [07:09:04]wFMCommunicate request_size=4 [07:09:04]MH_SAM_APDU [07:09:04]CAPDU: 80 09 00 00 [07:09:04]Write to MH i2c: E2 08 00 1D 5F 80 09 00 00 00 00 00 00 EE [07:09:04]Write i2c OK [07:09:04]MH_I2C_Read... [07:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:04]Read from MH i2c: E2 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: E2 03 00 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: E2 03 00 1D 5F 00 90 00 F0 [07:09:04]RAPDU: 90 00 [07:09:04]wFMCommunicate OK [07:09:04]SAM_PROTO_ClearQueue done [07:09:04]KKMCreateOFDPacket [07:09:04]OFDProtocolAddRootSTLVToBuf [07:09:04]FM_MakeSignedData [07:09:04]FM_MakeSignedData [07:09:04]SAM_PROTO_SignData [07:09:04]wFMCommunicate request_size=4 [07:09:04]MH_SAM_APDU [07:09:04]CAPDU: 80 0D 01 02 [07:09:04]Write to MH i2c: E2 08 00 1E 5F 80 0D 01 02 00 00 00 00 F6 [07:09:04]Write i2c OK [07:09:04]MH_I2C_Read... [07:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:05]Read from MH i2c: E2 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 03 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 03 00 1E 5F 00 90 00 F1 [07:09:05]RAPDU: 90 00 [07:09:05]wFMCommunicate OK [07:09:05]wFMCommunicate request_size=255 [07:09:05]MH_SAM_APDU [07:09:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 19 51 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 74 01 00 35 04 06 00 43 [07:09:05]Write to MH i2c: E2 02 01 1F 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 19 51 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 74 01 00 35 04 06 00 43 00 00 C9 [07:09:05]Write i2c OK [07:09:05]MH_I2C_Read... [07:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:05]Read from MH i2c: E2 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 03 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 03 00 1F 5F 00 90 00 F2 [07:09:05]RAPDU: 90 00 [07:09:05]wFMCommunicate OK [07:09:05]wFMCommunicate request_size=10 [07:09:05]MH_SAM_APDU [07:09:05]CAPDU: 80 0D 02 02 05 31 C0 75 FB 84 [07:09:05]Write to MH i2c: E2 0D 00 20 5F 80 0D 02 02 05 00 31 C0 75 FB 84 00 00 E8 [07:09:05]Write i2c OK [07:09:05]MH_I2C_Read... [07:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:05]Read from MH i2c: E2 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 03 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 03 00 20 5F 00 90 00 F3 [07:09:05]RAPDU: 90 00 [07:09:05]wFMCommunicate OK [07:09:05]wFMCommunicate request_size=4 [07:09:05]MH_SAM_APDU [07:09:05]CAPDU: 80 0D 03 02 [07:09:05]Write to MH i2c: E2 08 00 21 5F 80 0D 03 02 00 00 00 00 FB [07:09:05]Write i2c OK [07:09:05]MH_I2C_Read... [07:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:05]Read from MH i2c: E2 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 0B 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 0B 00 21 5F 00 13 98 72 5D CC FA 03 40 90 00 7F [07:09:05]RAPDU: 13 98 72 5D CC FA 03 40 90 00 [07:09:05]wFMCommunicate OK [07:09:05]SAM_PROTO_SignData done [07:09:05]FM_MakeSignedData done [07:09:05]CreateOFDProtocolMessage [07:09:05]wFMCommunicate request_size=4 [07:09:05]MH_SAM_APDU [07:09:05]CAPDU: 80 11 00 00 [07:09:05]Write to MH i2c: E2 08 00 22 5F 80 11 00 00 00 00 00 00 FB [07:09:05]Write i2c OK [07:09:05]MH_I2C_Read... [07:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:05]Read from MH i2c: E2 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 17 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 17 00 22 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4B [07:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:09:05]wFMCommunicate OK [07:09:05]CreateOFDProtocolMessage done [07:09:05]OFDSenderStorePacket 95315 [07:09:05]StoreOFDPacket docnum=95315 [07:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 33 9C 07 01 A9 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 19 51 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 74 01 00 35 04 06 00 43 31 C0 75 FB 84 13 98 72 5D CC FA 03 40 [07:09:05]CheckFolder [07:09:05]dirname=/storage/ofd_packets [07:09:05]CheckFolder done [07:09:05]ProducePacketName [07:09:05]name=ofd_packets/00095315 [07:09:05]NVStorageSaveData ofd_packets/00095315 [07:09:05]File name is /storage/ofd_packets/00095315 [07:09:05]Write 301 bytes [07:09:05]NVStorageSaveData done [07:09:05]OFDSenderStorePacket done [07:09:05]KKMCreateOFDPacket done [07:09:05]NVStorageSaveData kkm_last_timestamp [07:09:05]File name is /storage/kkm_last_timestamp [07:09:05]Write 4 bytes [07:09:05]NVStorageSaveData done [07:09:05]ExternCall_PrintAddStr [07:09:05]wPrintStart [07:09:05]Write to MH i2c: 01 00 00 23 5F 82 [07:09:05]Write i2c OK [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: 01 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: 01 07 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: 01 07 00 23 5F 00 80 00 00 00 FF 0F 17 [07:09:05]RasterBufferAndPrint [07:09:05]line Счет N : (1)196291 [07:09:05]line ИНН: 02508201610067 [07:09:05]line Контрольно-Кассовый Чек [07:09:05]line ПРОДАЖА [07:09:05]line ТРК (МРК, ГНК) : 32 [07:09:05]line Товар: 2710124130 [07:09:05]line Аи-92-К-5 [07:09:05]line 7.950 * 62.90 [07:09:05]line = 500.06 [07:09:05]line НДС 12% НСП 1% [07:09:05]line > о реализуемом товаре [07:09:05]line ИТОГО: 500.06 [07:09:05]line НСП 1% : 4.42 [07:09:05]line НДС 12% : 53.10 [07:09:05]line Наличными: 0.00 [07:09:05]line Безнал.: 500.06 [07:09:05]line Место: АЗС № 6 "Партнер Нефть" [07:09:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:09:05]line СНО: Общий режим [07:09:05]line Чек 10 13.03.2024 07:09 [07:09:05]line Смена: 328 ФФД: 1.0 [07:09:05]line ЗНМ: 0300000009 [07:09:05]line РНМ: 0000000000090555 [07:09:05]line Версия ККМ: 001 [07:09:05]line Платежная система: Бакай Банк [07:09:05]line ФМ: 0000000000874811 [07:09:05]line ФД: 95315 [07:09:05]line ФПД: 73880961416068 [07:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T070913&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95315&fm=73880961416068&tin=02508201610067®Number=0000000000090555&sum=50006 [07:09:05]OFD Sender: Processing packet 95315 [packets to send 30, broken 29] [07:09:05]ProducePacketName [07:09:05]name=ofd_packets/00095315 [07:09:05]OFD Sender: To server: pG, [07:09:05]CommunicateWithHost lk.salyk.kg:30040 [07:09:05]ConnectInit lk.salyk.kg [07:09:05]written 0, free lines is 4095 [07:09:05]ConnectInit Can't connect to host [07:09:05]Connected sock=11 [07:09:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 33 9C 07 01 A9 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 19 51 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 74 01 00 35 04 06 00 43 31 C0 75 FB 84 13 98 72 5D CC FA 03 40 [07:09:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BD FF 47 00 E5 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 53 74 01 00 F4 03 04 00 6C FC F0 65 B6 04 01 00 00 72 40 5B 56 F5 C8 FD 3D [07:09:06]CommunicateWithHost err = 0 [07:09:06]CheckOFDResponse [07:09:06]1017 (14) - 77093643461234 [07:09:06]1041 (16) - 0000000000874811 [07:09:06]1040 (4) - 95315 [07:09:06]1012 (4) - 13.03.2024 01:07 [07:09:06]1206 (1) - 0 [07:09:06]OFD Sender: Remove packet 95315 [07:09:06]ProducePacketName [07:09:06]name=ofd_packets/00095315 [07:09:06]NVStorageDeleteData [07:09:06]Write to MH i2c: 01 00 00 4D 5F AC [07:09:06]Write i2c OK [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: 01 [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: 01 07 00 [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: 01 07 00 4D 5F 00 80 00 00 00 59 0D 99 [07:09:06]RasterBufferAndPrint [07:09:06]line [07:09:06]line [07:09:06]line [07:09:06]line [07:09:06]line [07:09:06]written 0, free lines is 3423 [07:09:06]process_action close_receipt done [07:09:06]requested_data is exist [07:09:06]produce_requested_data [07:09:06]requested_item fm.sn is exist - process it [07:09:06]wFMCommunicate request_size=4 [07:09:06]MH_SAM_APDU [07:09:06]CAPDU: 80 11 00 00 [07:09:06]Write to MH i2c: E2 08 00 54 5F 80 11 00 00 00 00 00 00 2D [07:09:06]Write i2c OK [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: E2 [07:09:06]MH_I2C_Read... [07:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:06]Read from MH i2c: E2 17 00 [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: E2 17 00 54 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7D [07:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:09:06]wFMCommunicate OK [07:09:06]requested_item fd.num is exist - process it [07:09:06]SAM_PROTO_GetFieldsCounters [07:09:06]wFMCommunicate request_size=4 [07:09:06]MH_SAM_APDU [07:09:06]CAPDU: 80 13 00 00 [07:09:06]Write to MH i2c: E2 08 00 55 5F 80 13 00 00 00 00 00 00 30 [07:09:06]Write i2c OK [07:09:06]MH_I2C_Read... [07:09:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:06]Read from MH i2c: E2 [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: E2 62 00 [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: E2 62 00 55 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 53 74 01 00 0E 04 04 00 48 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 7C [07:09: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 53 74 01 00 0E 04 04 00 48 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 [07:09:06]wFMCommunicate OK [07:09:06]SAM_PROTO_GetFieldsCounters done [07:09:06]requested_item shift.num is exist - process it [07:09:06]requested_item shift.opened is exist - process it [07:09:06]req_shift_opened [07:09:06]FM_GetShiftState [07:09:06]SAM_PROTO_GetShiftState [07:09:06]wFMCommunicate request_size=4 [07:09:06]MH_SAM_APDU [07:09:06]CAPDU: 80 13 01 00 [07:09:06]Write to MH i2c: E2 08 00 56 5F 80 13 01 00 00 00 00 00 32 [07:09:06]Write i2c OK [07:09:06]MH_I2C_Read... [07:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:06]Read from MH i2c: E2 [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: E2 0E 00 [07:09:06]MH_I2C_Read... [07:09:06]Read from MH i2c: E2 0E 00 56 5F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 17 [07:09:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:09:06]wFMCommunicate OK [07:09:06]SAM_PROTO_GetShiftState done [07:09:06]FM_GetShiftState done [07:09:06]req_shift_opened done [07:09:06]requested_item shift.open_date is exist - process it [07:09:06]req_shift_open_date [07:09:06]req_shift_open_date done [07:09:06]produce_requested_data done [07:09:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95315,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:09:06]process_action_free close_receipt [07:09:06]json_value_free [07:09:06]json_value_free done [07:09:06]process_json_proto returns [07:09:06]Send response to host [07:09:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95315,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:09:06]free response buf [07:09:06]execute_script done [07:09:06]execute_script returns [07:09:06]free content buf [07:09:06]Sock 9.Close socket [07:09:06]Sock 9.Thread stoped [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:07]accept exits with 10 [07:14:07]New connection [07:14:07]New thread 3066813796 created [07:14:07]Thread 3066957156 joined [07:14:07]Waiting for new connection... [07:14:07] Sock 10.Parse request [07:14:07]Sock 10.Check first char [07:14:07]Sock 10.First char is OK [07:14:07]request: POST /json_proto HTTP/1.0 [07:14:07]Method: POST [07:14:07]URL: /json_proto [07:14:07]Method is POST - this is cgi request [07:14:07]url: /json_proto [07:14:07]query_string will be loaded in cgi processing [07:14:07]execute_cgi json_proto POST (null) [07:14:07]execute_cgi path=json_proto method=POST [07:14:07]POST find Content-Length [07:14:07]Host: 172.17.62.67:8080 [07:14:07]Content-Length: 819 [07:14:07]Content-Type: application/json [07:14:07] [07:14:07]POST finish read [07:14:07]Found Content-Length = 819 [07:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 30.000, "sum" : 2085.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" : 2085.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:07]execute_script... [07:14:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 30.000, "sum" : 2085.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" : 2085.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:07]POST & json_proto [07:14:07]process_json_proto [07:14:07]json parsed OK: [07:14:07]protocol is kg_v1.0 [07:14:07]action value=close_receipt [07:14:07]process_action close_receipt [07:14:07]cmd_close_receipt [07:14:07]MH_GetDate [07:14:07]Write to MH i2c: F0 00 00 57 5F A5 [07:14:07]Write i2c OK [07:14:07]MH_I2C_Read... [07:14:07]Read from MH i2c: F0 [07:14:07]MH_I2C_Read... [07:14:07]Read from MH i2c: F0 05 00 [07:14:07]MH_I2C_Read... [07:14:07]Read from MH i2c: F0 05 00 57 5F 00 49 52 F1 65 9B [07:14:07]GetLastDocTimeStamp 1710313753 [07:14:07]current date 1710314057 [07:14:07]FM_GetShiftState [07:14:07]SAM_PROTO_GetShiftState [07:14:07]wFMCommunicate request_size=4 [07:14:07]MH_SAM_APDU [07:14:07]CAPDU: 80 13 01 00 [07:14:07]Write to MH i2c: E2 08 00 58 5F 80 13 01 00 00 00 00 00 34 [07:14:07]Write i2c OK [07:14:07]MH_I2C_Read... [07:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:07]Read from MH i2c: E2 [07:14:07]MH_I2C_Read... [07:14:07]Read from MH i2c: E2 0E 00 [07:14:07]MH_I2C_Read... [07:14:07]Read from MH i2c: E2 0E 00 58 5F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 19 [07:14:07]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:14:07]wFMCommunicate OK [07:14:07]SAM_PROTO_GetShiftState done [07:14:07]FM_GetShiftState done [07:14:07]opened in 1710288279 [07:14:07]opened+sec_in_day 1710374679 [07:14:07]quantity*price = 208500 [07:14:07]sum+1 = 208501 [07:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2085.00 НСП 1% : 18.45 НДС 12% : 221.42 Наличными: 0.00 Безнал.: 2085.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 11 13.03.2024 07:14 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95316 ФПД: 37195923872056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T071417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95316&fm=37195923872056&tin=02508201610067®Number=0000000000090555&sum=208500 [07:14:08]StoreToDocumentArchive [07:14:08]shift 328 fd 95316 [07:14:08]save to /storage/0328/doc_00095316 [07:14:08]save last doc name /storage/0328/doc_00095316 to /storage/kkm_last_doc_name [07:14:08]save OK [07:14:08]Clear old archive folders... [07:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:08]tlvbuf is 01A549A0 [07:14:08]SAM_PROTO_ClearQueue [07:14:08]wFMCommunicate request_size=4 [07:14:08]MH_SAM_APDU [07:14:08]CAPDU: 80 09 00 00 [07:14:08]Write to MH i2c: E2 08 00 65 5F 80 09 00 00 00 00 00 00 36 [07:14:08]Write i2c OK [07:14:08]MH_I2C_Read... [07:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:08]Read from MH i2c: E2 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 03 00 [07:14:08]MH_I2C_Read... [07:14:08]Read from MH i2c: E2 03 00 65 5F 00 90 00 38 [07:14:08]RAPDU: 90 00 [07:14:08]wFMCommunicate OK [07:14:08]SAM_PROTO_ClearQueue done [07:14:08]KKMCreateOFDPacket [07:14:08]OFDProtocolAddRootSTLVToBuf [07:14:08]FM_MakeSignedData [07:14:08]FM_MakeSignedData [07:14:08]SAM_PROTO_SignData [07:14:08]wFMCommunicate request_size=4 [07:14:08]MH_SAM_APDU [07:14:08]CAPDU: 80 0D 01 02 [07:14:08]Write to MH i2c: E2 08 00 66 5F 80 0D 01 02 00 00 00 00 3E [07:14:08]Write i2c OK [07:14:08]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 66 5F 00 90 00 39 [07:14:09]RAPDU: 90 00 [07:14:09]wFMCommunicate OK [07:14:09]wFMCommunicate request_size=255 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 74 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 2E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 49 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 74 01 00 35 04 06 00 21 [07:14:09]Write to MH i2c: E2 02 01 67 5F 80 0D 02 02 FA 00 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 30 75 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 74 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 2E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 49 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 74 01 00 35 04 06 00 21 00 00 5C [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 67 5F 00 90 00 3A [07:14:09]RAPDU: 90 00 [07:14:09]wFMCommunicate OK [07:14:09]wFMCommunicate request_size=10 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 0D 02 02 05 D4 59 D4 59 38 [07:14:09]Write to MH i2c: E2 0D 00 68 5F 80 0D 02 02 05 00 D4 59 D4 59 38 00 00 DD [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 03 00 68 5F 00 90 00 3B [07:14:09]RAPDU: 90 00 [07:14:09]wFMCommunicate OK [07:14:09]wFMCommunicate request_size=4 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 0D 03 02 [07:14:09]Write to MH i2c: E2 08 00 69 5F 80 0D 03 02 00 00 00 00 43 [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 0B 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 0B 00 69 5F 00 76 1C 4F 81 F5 CC F6 3A 90 00 97 [07:14:09]RAPDU: 76 1C 4F 81 F5 CC F6 3A 90 00 [07:14:09]wFMCommunicate OK [07:14:09]SAM_PROTO_SignData done [07:14:09]FM_MakeSignedData done [07:14:09]CreateOFDProtocolMessage [07:14:09]wFMCommunicate request_size=4 [07:14:09]MH_SAM_APDU [07:14:09]CAPDU: 80 11 00 00 [07:14:09]Write to MH i2c: E2 08 00 6A 5F 80 11 00 00 00 00 00 00 43 [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:09]Read from MH i2c: E2 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 17 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: E2 17 00 6A 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 93 [07:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:14:09]wFMCommunicate OK [07:14:09]CreateOFDProtocolMessage done [07:14:09]OFDSenderStorePacket 95316 [07:14:09]StoreOFDPacket docnum=95316 [07:14:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 30 2B 07 01 CA 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 74 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 2E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 49 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 74 01 00 35 04 06 00 21 D4 59 D4 59 38 76 1C 4F 81 F5 CC F6 3A [07:14:09]CheckFolder [07:14:09]dirname=/storage/ofd_packets [07:14:09]CheckFolder done [07:14:09]ProducePacketName [07:14:09]name=ofd_packets/00095316 [07:14:09]NVStorageSaveData ofd_packets/00095316 [07:14:09]File name is /storage/ofd_packets/00095316 [07:14:09]Write 301 bytes [07:14:09]NVStorageSaveData done [07:14:09]OFDSenderStorePacket done [07:14:09]KKMCreateOFDPacket done [07:14:09]NVStorageSaveData kkm_last_timestamp [07:14:09]File name is /storage/kkm_last_timestamp [07:14:09]Write 4 bytes [07:14:09]NVStorageSaveData done [07:14:09]ExternCall_PrintAddStr [07:14:09]wPrintStart [07:14:09]Write to MH i2c: 01 00 00 6B 5F CA [07:14:09]Write i2c OK [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: 01 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: 01 07 00 [07:14:09]MH_I2C_Read... [07:14:09]Read from MH i2c: 01 07 00 6B 5F 00 80 00 00 00 FF 0F 5F [07:14:09]RasterBufferAndPrint [07:14:09]line Счет N : (1)196292 [07:14:09]line ИНН: 02508201610067 [07:14:09]line Контрольно-Кассовый Чек [07:14:09]line ПРОДАЖА [07:14:09]line ТРК (МРК, ГНК) : 11 [07:14:09]line Товар: 2710124500 [07:14:09]line Аи-95-К-5 [07:14:09]line 30.000 * 69.50 [07:14:09]line = 2085.00 [07:14:09]line НДС 12% НСП 1% [07:14:09]line > о реализуемом товаре [07:14:09]line ИТОГО: 2085.00 [07:14:09]line НСП 1% : 18.45 [07:14:09]line НДС 12% : 221.42 [07:14:09]line Наличными: 0.00 [07:14:09]line Безнал.: 2085.00 [07:14:09]line Место: АЗС № 6 "Партнер Нефть" [07:14:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:14:09]line СНО: Общий режим [07:14:09]line Чек 11 13.03.2024 07:14 [07:14:09]line Смена: 328 ФФД: 1.0 [07:14:09]line ЗНМ: 0300000009 [07:14:09]line РНМ: 0000000000090555 [07:14:09]line Версия ККМ: 001 [07:14:09]line Платежная система: Бакай Банк [07:14:09]line ФМ: 0000000000874811 [07:14:09]line ФД: 95316 [07:14:09]line ФПД: 37195923872056 [07:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T071417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95316&fm=37195923872056&tin=02508201610067®Number=0000000000090555&sum=208500 [07:14:09]OFD Sender: Processing packet 95316 [packets to send 30, broken 29] [07:14:09]ProducePacketName [07:14:09]name=ofd_packets/00095316 [07:14:09]OFD Sender: To server: pG, [07:14:09]CommunicateWithHost lk.salyk.kg:30040 [07:14:09]ConnectInit lk.salyk.kg [07:14:09]written 0, free lines is 4095 [07:14:09]Connected sock=9 [07:14:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 30 2B 07 01 CA 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 74 2E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 2E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 56 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 2E 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 49 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 74 01 00 35 04 06 00 21 D4 59 D4 59 38 76 1C 4F 81 F5 CC F6 3A [07:14:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 19 7C 47 00 3E E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 54 74 01 00 F4 03 04 00 9C FD F0 65 B6 04 01 00 00 12 64 2B 72 9D C7 F6 B4 [07:14:10]CommunicateWithHost err = 0 [07:14:10]CheckOFDResponse [07:14:10]1017 (14) - 77093643461234 [07:14:10]1041 (16) - 0000000000874811 [07:14:10]1040 (4) - 95316 [07:14:10]1012 (4) - 13.03.2024 01:13 [07:14:10]1206 (1) - 0 [07:14:10]OFD Sender: Remove packet 95316 [07:14:10]ProducePacketName [07:14:10]name=ofd_packets/00095316 [07:14:10]NVStorageDeleteData [07:14:10]Write to MH i2c: 01 00 00 95 5F F4 [07:14:10]Write i2c OK [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 07 00 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: 01 07 00 95 5F 00 80 00 00 00 5F 0D E7 [07:14:10]RasterBufferAndPrint [07:14:10]line [07:14:10]line [07:14:10]line [07:14:10]line [07:14:10]line [07:14:10]written 0, free lines is 3429 [07:14:10]process_action close_receipt done [07:14:10]requested_data is exist [07:14:10]produce_requested_data [07:14:10]requested_item fm.sn is exist - process it [07:14:10]wFMCommunicate request_size=4 [07:14:10]MH_SAM_APDU [07:14:10]CAPDU: 80 11 00 00 [07:14:10]Write to MH i2c: E2 08 00 9C 5F 80 11 00 00 00 00 00 00 75 [07:14:10]Write i2c OK [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: E2 [07:14:10]MH_I2C_Read... [07:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:10]Read from MH i2c: E2 17 00 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: E2 17 00 9C 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C5 [07:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:14:10]wFMCommunicate OK [07:14:10]requested_item fd.num is exist - process it [07:14:10]SAM_PROTO_GetFieldsCounters [07:14:10]wFMCommunicate request_size=4 [07:14:10]MH_SAM_APDU [07:14:10]CAPDU: 80 13 00 00 [07:14:10]Write to MH i2c: E2 08 00 9D 5F 80 13 00 00 00 00 00 00 78 [07:14:10]Write i2c OK [07:14:10]MH_I2C_Read... [07:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:10]Read from MH i2c: E2 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: E2 62 00 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: E2 62 00 9D 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 54 74 01 00 0E 04 04 00 48 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 C8 [07:14:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 54 74 01 00 0E 04 04 00 48 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 [07:14:10]wFMCommunicate OK [07:14:10]SAM_PROTO_GetFieldsCounters done [07:14:10]requested_item shift.num is exist - process it [07:14:10]requested_item shift.opened is exist - process it [07:14:10]req_shift_opened [07:14:10]FM_GetShiftState [07:14:10]SAM_PROTO_GetShiftState [07:14:10]wFMCommunicate request_size=4 [07:14:10]MH_SAM_APDU [07:14:10]CAPDU: 80 13 01 00 [07:14:10]Write to MH i2c: E2 08 00 9E 5F 80 13 01 00 00 00 00 00 7A [07:14:10]Write i2c OK [07:14:10]MH_I2C_Read... [07:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:10]Read from MH i2c: E2 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: E2 0E 00 [07:14:10]MH_I2C_Read... [07:14:10]Read from MH i2c: E2 0E 00 9E 5F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 5F [07:14:10]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:14:10]wFMCommunicate OK [07:14:10]SAM_PROTO_GetShiftState done [07:14:10]FM_GetShiftState done [07:14:10]req_shift_opened done [07:14:10]requested_item shift.open_date is exist - process it [07:14:10]req_shift_open_date [07:14:10]req_shift_open_date done [07:14:10]produce_requested_data done [07:14:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95316,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:14:10]process_action_free close_receipt [07:14:10]json_value_free [07:14:10]json_value_free done [07:14:10]process_json_proto returns [07:14:10]Send response to host [07:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95316,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:14:10]free response buf [07:14:10]execute_script done [07:14:10]execute_script returns [07:14:10]free content buf [07:14:10]Sock 10.Close socket [07:14:10]Sock 10.Thread stoped [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:30]accept exits with 8 [07:14:30]New connection [07:14:30]New thread 3066957156 created [07:14:30]Thread 3066813796 joined [07:14:30]Waiting for new connection... [07:14:30] Sock 8.Parse request [07:14:30]Sock 8.Check first char [07:14:30]Sock 8.First char is OK [07:14:30]request: POST /json_proto HTTP/1.0 [07:14:30]Method: POST [07:14:30]URL: /json_proto [07:14:30]Method is POST - this is cgi request [07:14:30]url: /json_proto [07:14:30]query_string will be loaded in cgi processing [07:14:30]execute_cgi json_proto POST (null) [07:14:30]execute_cgi path=json_proto method=POST [07:14:30]POST find Content-Length [07:14:30]Host: 172.17.62.67:8080 [07:14:30]Content-Length: 682 [07:14:30]Content-Type: application/json [07:14:30] [07:14:30]POST finish read [07:14:30]Found Content-Length = 682 [07:14:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:30]execute_script... [07:14: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)196293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:14:30]POST & json_proto [07:14:30]process_json_proto [07:14:30]json parsed OK: [07:14:30]protocol is kg_v1.0 [07:14:30]action value=close_receipt [07:14:30]process_action close_receipt [07:14:30]cmd_close_receipt [07:14:30]MH_GetDate [07:14:30]Write to MH i2c: F0 00 00 9F 5F ED [07:14:30]Write i2c OK [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: F0 [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: F0 05 00 [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: F0 05 00 9F 5F 00 60 52 F1 65 FA [07:14:30]GetLastDocTimeStamp 1710314057 [07:14:30]current date 1710314080 [07:14:30]FM_GetShiftState [07:14:30]SAM_PROTO_GetShiftState [07:14:30]wFMCommunicate request_size=4 [07:14:30]MH_SAM_APDU [07:14:30]CAPDU: 80 13 01 00 [07:14:30]Write to MH i2c: E2 08 00 A0 5F 80 13 01 00 00 00 00 00 7C [07:14:30]Write i2c OK [07:14:30]MH_I2C_Read... [07:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:30]Read from MH i2c: E2 [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: E2 0E 00 [07:14:30]MH_I2C_Read... [07:14:30]Read from MH i2c: E2 0E 00 A0 5F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 61 [07:14:30]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:14:30]wFMCommunicate OK [07:14:30]SAM_PROTO_GetShiftState done [07:14:30]FM_GetShiftState done [07:14:30]opened in 1710288279 [07:14:30]opened+sec_in_day 1710374679 [07:14:30]quantity*price = 150050 [07:14:30]sum+1 = 150052 [07:14:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 12 13.03.2024 07:14 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95317 ФПД: 158303662055284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T071440&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95317&fm=158303662055284&tin=02508201610067®Number=0000000000090555&sum=150000 [07:14:31]StoreToDocumentArchive [07:14:31]shift 328 fd 95317 [07:14:31]save to /storage/0328/doc_00095317 [07:14:31]save last doc name /storage/0328/doc_00095317 to /storage/kkm_last_doc_name [07:14:31]save OK [07:14:31]Clear old archive folders... [07:14:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:31]tlvbuf is 01B898D0 [07:14:31]SAM_PROTO_ClearQueue [07:14:31]wFMCommunicate request_size=4 [07:14:31]MH_SAM_APDU [07:14:31]CAPDU: 80 09 00 00 [07:14:31]Write to MH i2c: E2 08 00 AD 5F 80 09 00 00 00 00 00 00 7E [07:14:31]Write i2c OK [07:14:31]MH_I2C_Read... [07:14:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:31]Read from MH i2c: E2 [07:14:31]MH_I2C_Read... [07:14:31]Read from MH i2c: E2 03 00 [07:14:31]MH_I2C_Read... [07:14:31]Read from MH i2c: E2 03 00 AD 5F 00 90 00 80 [07:14:31]RAPDU: 90 00 [07:14:31]wFMCommunicate OK [07:14:31]SAM_PROTO_ClearQueue done [07:14:31]KKMCreateOFDPacket [07:14:31]OFDProtocolAddRootSTLVToBuf [07:14:31]FM_MakeSignedData [07:14:31]FM_MakeSignedData [07:14:31]SAM_PROTO_SignData [07:14:31]wFMCommunicate request_size=4 [07:14:31]MH_SAM_APDU [07:14:31]CAPDU: 80 0D 01 02 [07:14:31]Write to MH i2c: E2 08 00 AE 5F 80 0D 01 02 00 00 00 00 86 [07:14:31]Write i2c OK [07:14:31]MH_I2C_Read... [07:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:31]Read from MH i2c: E2 [07:14:31]MH_I2C_Read... [07:14:31]Read from MH i2c: E2 03 00 [07:14:31]MH_I2C_Read... [07:14:31]Read from MH i2c: E2 03 00 AE 5F 00 90 00 81 [07:14:31]RAPDU: 90 00 [07:14:31]wFMCommunicate OK [07:14:31]wFMCommunicate request_size=255 [07:14:31]MH_SAM_APDU [07:14:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 60 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 74 01 00 35 04 06 00 8F [07:14:31]Write to MH i2c: E2 02 01 AF 5F 80 0D 02 02 FA 00 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 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 60 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 74 01 00 35 04 06 00 8F 00 00 C8 [07:14:31]Write i2c OK [07:14:31]MH_I2C_Read... [07:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:32]Read from MH i2c: E2 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 03 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 03 00 AF 5F 00 90 00 82 [07:14:32]RAPDU: 90 00 [07:14:32]wFMCommunicate OK [07:14:32]wFMCommunicate request_size=10 [07:14:32]MH_SAM_APDU [07:14:32]CAPDU: 80 0D 02 02 05 F9 F1 8B 1F 74 [07:14:32]Write to MH i2c: E2 0D 00 B0 5F 80 0D 02 02 05 00 F9 F1 8B 1F 74 00 00 9B [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:32]Read from MH i2c: E2 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 03 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 03 00 B0 5F 00 90 00 83 [07:14:32]RAPDU: 90 00 [07:14:32]wFMCommunicate OK [07:14:32]wFMCommunicate request_size=4 [07:14:32]MH_SAM_APDU [07:14:32]CAPDU: 80 0D 03 02 [07:14:32]Write to MH i2c: E2 08 00 B1 5F 80 0D 03 02 00 00 00 00 8B [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:14:32]Read from MH i2c: E2 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 0B 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 0B 00 B1 5F 00 4D 64 5E 3C 3A 4A 27 30 90 00 B2 [07:14:32]RAPDU: 4D 64 5E 3C 3A 4A 27 30 90 00 [07:14:32]wFMCommunicate OK [07:14:32]SAM_PROTO_SignData done [07:14:32]FM_MakeSignedData done [07:14:32]CreateOFDProtocolMessage [07:14:32]wFMCommunicate request_size=4 [07:14:32]MH_SAM_APDU [07:14:32]CAPDU: 80 11 00 00 [07:14:32]Write to MH i2c: E2 08 00 B2 5F 80 11 00 00 00 00 00 00 8B [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:32]Read from MH i2c: E2 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 17 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: E2 17 00 B2 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DB [07:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:14:32]wFMCommunicate OK [07:14:32]CreateOFDProtocolMessage done [07:14:32]OFDSenderStorePacket 95317 [07:14:32]StoreOFDPacket docnum=95317 [07:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 11 9F 07 01 02 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 60 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 74 01 00 35 04 06 00 8F F9 F1 8B 1F 74 4D 64 5E 3C 3A 4A 27 30 [07:14:32]CheckFolder [07:14:32]dirname=/storage/ofd_packets [07:14:32]CheckFolder done [07:14:32]ProducePacketName [07:14:32]name=ofd_packets/00095317 [07:14:32]NVStorageSaveData ofd_packets/00095317 [07:14:32]File name is /storage/ofd_packets/00095317 [07:14:32]Write 301 bytes [07:14:32]NVStorageSaveData done [07:14:32]OFDSenderStorePacket done [07:14:32]KKMCreateOFDPacket done [07:14:32]NVStorageSaveData kkm_last_timestamp [07:14:32]File name is /storage/kkm_last_timestamp [07:14:32]Write 4 bytes [07:14:32]NVStorageSaveData done [07:14:32]ExternCall_PrintAddStr [07:14:32]wPrintStart [07:14:32]Write to MH i2c: 01 00 00 B3 5F 12 [07:14:32]Write i2c OK [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 07 00 [07:14:32]MH_I2C_Read... [07:14:32]Read from MH i2c: 01 07 00 B3 5F 00 80 00 00 00 FF 0F A7 [07:14:32]RasterBufferAndPrint [07:14:32]line Счет N : (1)196293 [07:14:32]line ИНН: 02508201610067 [07:14:32]line Контрольно-Кассовый Чек [07:14:32]line ПРОДАЖА [07:14:32]line ТРК (МРК, ГНК) : 31 [07:14:32]line Товар: 2710124500 [07:14:32]line Аи-95-К-5 [07:14:32]line 21.590 * 69.50 [07:14:32]line = 1500.51 [07:14:32]line НДС 12% НСП 1% [07:14:32]line > о реализуемом товаре [07:14:32]line ОКРУГЛЕНИЕ: -0.51 [07:14:32]line ИТОГО: 1500.00 [07:14:32]line Внесено: 1500.00 [07:14:32]line СДАЧА: 0.00 [07:14:32]line НСП 1% : 13.28 [07:14:32]line НДС 12% : 159.35 [07:14:32]line Наличными: 1500.00 [07:14:32]line Безнал.: 0.00 [07:14:32]line Место: АЗС № 6 "Партнер Нефть" [07:14:32]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:14:32]line СНО: Общий режим [07:14:32]line Чек 12 13.03.2024 07:14 [07:14:32]line Смена: 328 ФФД: 1.0 [07:14:32]line ЗНМ: 0300000009 [07:14:32]line РНМ: 0000000000090555 [07:14:32]line Версия ККМ: 001 [07:14:32]line ФМ: 0000000000874811 [07:14:32]line ФД: 95317 [07:14:32]line ФПД: 158303662055284 [07:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T071440&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95317&fm=158303662055284&tin=02508201610067®Number=0000000000090555&sum=150000 [07:14:32]OFD Sender: Processing packet 95317 [packets to send 30, broken 29] [07:14:32]ProducePacketName [07:14:32]name=ofd_packets/00095317 [07:14:32]OFD Sender: To server: pG, [07:14:32]CommunicateWithHost lk.salyk.kg:30040 [07:14:32]ConnectInit lk.salyk.kg [07:14:32]written 0, free lines is 4095 [07:14:32]Connected sock=10 [07:14:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 11 9F 07 01 02 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 60 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 74 01 00 35 04 06 00 8F F9 F1 8B 1F 74 4D 64 5E 3C 3A 4A 27 30 [07:14:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 80 DA 47 00 5B F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 55 74 01 00 F4 03 04 00 B3 FD F0 65 B6 04 01 00 00 68 41 AA FA 52 A2 0E 34 [07:14:32]CommunicateWithHost err = 0 [07:14:32]CheckOFDResponse [07:14:32]1017 (14) - 77093643461234 [07:14:32]1041 (16) - 0000000000874811 [07:14:32]1040 (4) - 95317 [07:14:32]1012 (4) - 13.03.2024 01:13 [07:14:32]1206 (1) - 0 [07:14:32]OFD Sender: Remove packet 95317 [07:14:32]ProducePacketName [07:14:32]name=ofd_packets/00095317 [07:14:32]NVStorageDeleteData [07:14:33]Write to MH i2c: 01 00 00 DE 5F 3D [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: 01 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: 01 07 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: 01 07 00 DE 5F 00 80 00 00 00 49 0D 1A [07:14:33]RasterBufferAndPrint [07:14:33]line [07:14:33]line [07:14:33]line [07:14:33]line [07:14:33]line [07:14:33]written 0, free lines is 3407 [07:14:33]process_action close_receipt done [07:14:33]requested_data is exist [07:14:33]produce_requested_data [07:14:33]requested_item fm.sn is exist - process it [07:14:33]wFMCommunicate request_size=4 [07:14:33]MH_SAM_APDU [07:14:33]CAPDU: 80 11 00 00 [07:14:33]Write to MH i2c: E2 08 00 E5 5F 80 11 00 00 00 00 00 00 BE [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 [07:14:33]MH_I2C_Read... [07:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:14:33]Read from MH i2c: E2 17 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 17 00 E5 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [07:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:14:33]wFMCommunicate OK [07:14:33]requested_item fd.num is exist - process it [07:14:33]SAM_PROTO_GetFieldsCounters [07:14:33]wFMCommunicate request_size=4 [07:14:33]MH_SAM_APDU [07:14:33]CAPDU: 80 13 00 00 [07:14:33]Write to MH i2c: E2 08 00 E6 5F 80 13 00 00 00 00 00 00 C1 [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:33]Read from MH i2c: E2 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 62 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 62 00 E6 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 55 74 01 00 0E 04 04 00 48 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 15 [07:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 55 74 01 00 0E 04 04 00 48 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 [07:14:33]wFMCommunicate OK [07:14:33]SAM_PROTO_GetFieldsCounters done [07:14:33]requested_item shift.num is exist - process it [07:14:33]requested_item shift.opened is exist - process it [07:14:33]req_shift_opened [07:14:33]FM_GetShiftState [07:14:33]SAM_PROTO_GetShiftState [07:14:33]wFMCommunicate request_size=4 [07:14:33]MH_SAM_APDU [07:14:33]CAPDU: 80 13 01 00 [07:14:33]Write to MH i2c: E2 08 00 E7 5F 80 13 01 00 00 00 00 00 C3 [07:14:33]Write i2c OK [07:14:33]MH_I2C_Read... [07:14:33]OFD Sender: No OFD packet to send [07:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:33]Read from MH i2c: E2 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 0E 00 [07:14:33]MH_I2C_Read... [07:14:33]Read from MH i2c: E2 0E 00 E7 5F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A8 [07:14:33]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:14:33]wFMCommunicate OK [07:14:33]SAM_PROTO_GetShiftState done [07:14:33]FM_GetShiftState done [07:14:33]req_shift_opened done [07:14:33]requested_item shift.open_date is exist - process it [07:14:33]req_shift_open_date [07:14:33]req_shift_open_date done [07:14:33]produce_requested_data done [07:14:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95317,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:14:33]process_action_free close_receipt [07:14:33]json_value_free [07:14:33]json_value_free done [07:14:33]process_json_proto returns [07:14:33]Send response to host [07:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95317,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:14:33]free response buf [07:14:33]execute_script done [07:14:33]execute_script returns [07:14:33]free content buf [07:14:33]Sock 8.Close socket [07:14:33]Sock 8.Thread stoped [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:05]accept exits with 9 [07:17:05]New connection [07:17:05]New thread 3066813796 created [07:17:05]Thread 3066957156 joined [07:17:05]Waiting for new connection... [07:17:05] Sock 9.Parse request [07:17:05]Sock 9.Check first char [07:17:05]Sock 9.First char is OK [07:17:05]request: POST /json_proto HTTP/1.0 [07:17:05]Method: POST [07:17:05]URL: /json_proto [07:17:05]Method is POST - this is cgi request [07:17:05]url: /json_proto [07:17:05]query_string will be loaded in cgi processing [07:17:05]execute_cgi json_proto POST (null) [07:17:05]execute_cgi path=json_proto method=POST [07:17:05]POST find Content-Length [07:17:05]Host: 172.17.62.67:8080 [07:17:05]Content-Length: 678 [07:17:05]Content-Type: application/json [07:17:05] [07:17:05]POST finish read [07:17:05]Found Content-Length = 678 [07:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "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" ] } } [07:17:05]execute_script... [07:17:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "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" ] } } [07:17:05]POST & json_proto [07:17:05]process_json_proto [07:17:05]json parsed OK: [07:17:05]protocol is kg_v1.0 [07:17:05]action value=close_receipt [07:17:05]process_action close_receipt [07:17:05]cmd_close_receipt [07:17:05]MH_GetDate [07:17:05]Write to MH i2c: F0 00 00 E8 5F 36 [07:17:05]Write i2c OK [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: F0 [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: F0 05 00 [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: F0 05 00 E8 5F 00 FB 52 F1 65 DE [07:17:05]GetLastDocTimeStamp 1710314080 [07:17:05]current date 1710314235 [07:17:05]FM_GetShiftState [07:17:05]SAM_PROTO_GetShiftState [07:17:05]wFMCommunicate request_size=4 [07:17:05]MH_SAM_APDU [07:17:05]CAPDU: 80 13 01 00 [07:17:05]Write to MH i2c: E2 08 00 E9 5F 80 13 01 00 00 00 00 00 C5 [07:17:05]Write i2c OK [07:17:05]MH_I2C_Read... [07:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:05]Read from MH i2c: E2 [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: E2 0E 00 [07:17:05]MH_I2C_Read... [07:17:05]Read from MH i2c: E2 0E 00 E9 5F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 AA [07:17:05]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:17:05]wFMCommunicate OK [07:17:05]SAM_PROTO_GetShiftState done [07:17:05]FM_GetShiftState done [07:17:05]opened in 1710288279 [07:17:05]opened+sec_in_day 1710374679 [07:17:05]quantity*price = 70056 [07:17:05]sum+1 = 70057 [07:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 13 13.03.2024 07:17 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95318 ФПД: 46923251944433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T071715&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95318&fm=46923251944433&tin=02508201610067®Number=0000000000090555&sum=70000 [07:17:06]StoreToDocumentArchive [07:17:06]shift 328 fd 95318 [07:17:06]save to /storage/0328/doc_00095318 [07:17:06]save last doc name /storage/0328/doc_00095318 to /storage/kkm_last_doc_name [07:17:06]save OK [07:17:06]Clear old archive folders... [07:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:17:06]tlvbuf is 01A25920 [07:17:06]SAM_PROTO_ClearQueue [07:17:06]wFMCommunicate request_size=4 [07:17:06]MH_SAM_APDU [07:17:06]CAPDU: 80 09 00 00 [07:17:06]Write to MH i2c: E2 08 00 F6 5F 80 09 00 00 00 00 00 00 C7 [07:17:06]Write i2c OK [07:17:06]MH_I2C_Read... [07:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:07]Read from MH i2c: E2 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 03 00 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 03 00 F6 5F 00 90 00 C9 [07:17:07]RAPDU: 90 00 [07:17:07]wFMCommunicate OK [07:17:07]SAM_PROTO_ClearQueue done [07:17:07]KKMCreateOFDPacket [07:17:07]OFDProtocolAddRootSTLVToBuf [07:17:07]FM_MakeSignedData [07:17:07]FM_MakeSignedData [07:17:07]SAM_PROTO_SignData [07:17:07]wFMCommunicate request_size=4 [07:17:07]MH_SAM_APDU [07:17:07]CAPDU: 80 0D 01 02 [07:17:07]Write to MH i2c: E2 08 00 F7 5F 80 0D 01 02 00 00 00 00 CF [07:17:07]Write i2c OK [07:17:07]MH_I2C_Read... [07:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:07]Read from MH i2c: E2 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 03 00 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 03 00 F7 5F 00 90 00 CA [07:17:07]RAPDU: 90 00 [07:17:07]wFMCommunicate OK [07:17:07]wFMCommunicate request_size=255 [07:17:07]MH_SAM_APDU [07:17:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 0D 00 00 00 F4 03 04 00 FB 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 74 01 00 35 04 06 00 2A [07:17:07]Write to MH i2c: E2 02 01 F8 5F 80 0D 02 02 FA 00 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 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 0D 00 00 00 F4 03 04 00 FB 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 74 01 00 35 04 06 00 2A 00 00 E8 [07:17:07]Write i2c OK [07:17:07]MH_I2C_Read... [07:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:07]Read from MH i2c: E2 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 03 00 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 03 00 F8 5F 00 90 00 CB [07:17:07]RAPDU: 90 00 [07:17:07]wFMCommunicate OK [07:17:07]wFMCommunicate request_size=10 [07:17:07]MH_SAM_APDU [07:17:07]CAPDU: 80 0D 02 02 05 AD 2B C3 8B F1 [07:17:07]Write to MH i2c: E2 0D 00 F9 5F 80 0D 02 02 05 00 AD 2B C3 8B F1 00 00 F3 [07:17:07]Write i2c OK [07:17:07]MH_I2C_Read... [07:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:07]Read from MH i2c: E2 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 03 00 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 03 00 F9 5F 00 90 00 CC [07:17:07]RAPDU: 90 00 [07:17:07]wFMCommunicate OK [07:17:07]wFMCommunicate request_size=4 [07:17:07]MH_SAM_APDU [07:17:07]CAPDU: 80 0D 03 02 [07:17:07]Write to MH i2c: E2 08 00 FA 5F 80 0D 03 02 00 00 00 00 D4 [07:17:07]Write i2c OK [07:17:07]MH_I2C_Read... [07:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:07]Read from MH i2c: E2 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 0B 00 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 0B 00 FA 5F 00 E5 B2 EA E8 99 D2 AE DC 90 00 33 [07:17:07]RAPDU: E5 B2 EA E8 99 D2 AE DC 90 00 [07:17:07]wFMCommunicate OK [07:17:07]SAM_PROTO_SignData done [07:17:07]FM_MakeSignedData done [07:17:07]CreateOFDProtocolMessage [07:17:07]wFMCommunicate request_size=4 [07:17:07]MH_SAM_APDU [07:17:07]CAPDU: 80 11 00 00 [07:17:07]Write to MH i2c: E2 08 00 FB 5F 80 11 00 00 00 00 00 00 D4 [07:17:07]Write i2c OK [07:17:07]MH_I2C_Read... [07:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:07]Read from MH i2c: E2 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 17 00 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: E2 17 00 FB 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [07:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:17:07]wFMCommunicate OK [07:17:07]CreateOFDProtocolMessage done [07:17:07]OFDSenderStorePacket 95318 [07:17:07]StoreOFDPacket docnum=95318 [07:17:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2E 87 07 01 EE E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 0D 00 00 00 F4 03 04 00 FB 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 74 01 00 35 04 06 00 2A AD 2B C3 8B F1 E5 B2 EA E8 99 D2 AE DC [07:17:07]CheckFolder [07:17:07]dirname=/storage/ofd_packets [07:17:07]CheckFolder done [07:17:07]ProducePacketName [07:17:07]name=ofd_packets/00095318 [07:17:07]NVStorageSaveData ofd_packets/00095318 [07:17:07]File name is /storage/ofd_packets/00095318 [07:17:07]Write 301 bytes [07:17:07]NVStorageSaveData done [07:17:07]OFDSenderStorePacket done [07:17:07]KKMCreateOFDPacket done [07:17:07]NVStorageSaveData kkm_last_timestamp [07:17:07]File name is /storage/kkm_last_timestamp [07:17:07]OFD Sender: Processing packet 95318 [packets to send 30, broken 29] [07:17:07]ProducePacketName [07:17:07]name=ofd_packets/00095318 [07:17:07]OFD Sender: To server: pG, [07:17:07]CommunicateWithHost lk.salyk.kg:30040 [07:17:07]ConnectInit lk.salyk.kg [07:17:07]Write 4 bytes [07:17:07]NVStorageSaveData done [07:17:07]ExternCall_PrintAddStr [07:17:07]wPrintStart [07:17:07]Write to MH i2c: 01 00 00 FC 5F 5B [07:17:07]Write i2c OK [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: 01 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: 01 07 00 [07:17:07]MH_I2C_Read... [07:17:07]Read from MH i2c: 01 07 00 FC 5F 00 80 00 00 00 FF 0F F0 [07:17:07]RasterBufferAndPrint [07:17:07]line Счет N : (1)196294 [07:17:07]line ИНН: 02508201610067 [07:17:07]line Контрольно-Кассовый Чек [07:17:07]line ПРОДАЖА [07:17:07]line ТРК (МРК, ГНК) : 11 [07:17:07]line Товар: 2710124500 [07:17:07]line Аи-95-К-5 [07:17:07]line 10.080 * 69.50 [07:17:07]line = 700.56 [07:17:07]line НДС 12% НСП 1% [07:17:07]line > о реализуемом товаре [07:17:07]line ОКРУГЛЕНИЕ: -0.56 [07:17:07]line ИТОГО: 700.00 [07:17:07]line Внесено: 700.00 [07:17:07]line СДАЧА: 0.00 [07:17:07]line НСП 1% : 6.20 [07:17:07]line НДС 12% : 74.40 [07:17:07]line Наличными: 700.00 [07:17:07]line Безнал.: 0.00 [07:17:07]line Место: АЗС № 6 "Партнер Нефть" [07:17:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:17:07]line СНО: Общий режим [07:17:07]line Чек 13 13.03.2024 07:17 [07:17:07]line Смена: 328 ФФД: 1.0 [07:17:07]line ЗНМ: 0300000009 [07:17:07]line РНМ: 0000000000090555 [07:17:07]line Версия ККМ: 001 [07:17:07]line ФМ: 0000000000874811 [07:17:07]line ФД: 95318 [07:17:07]line ФПД: 46923251944433 [07:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T071715&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95318&fm=46923251944433&tin=02508201610067®Number=0000000000090555&sum=70000 [07:17:07]Connected sock=11 [07:17:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2E 87 07 01 EE E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 0D 00 00 00 F4 03 04 00 FB 52 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 74 01 00 35 04 06 00 2A AD 2B C3 8B F1 E5 B2 EA E8 99 D2 AE DC [07:17:07]written 0, free lines is 4095 [07:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D7 14 47 00 FA 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 56 74 01 00 F4 03 04 00 4E FE F0 65 B6 04 01 00 00 8A 9A F2 DB C4 24 F3 D3 [07:17:08]CommunicateWithHost err = 0 [07:17:08]CheckOFDResponse [07:17:08]1017 (14) - 77093643461234 [07:17:08]1041 (16) - 0000000000874811 [07:17:08]1040 (4) - 95318 [07:17:08]1012 (4) - 13.03.2024 01:15 [07:17:08]1206 (1) - 0 [07:17:08]OFD Sender: Remove packet 95318 [07:17:08]ProducePacketName [07:17:08]name=ofd_packets/00095318 [07:17:08]NVStorageDeleteData [07:17:08]Write to MH i2c: 01 00 00 27 60 87 [07:17:08]Write i2c OK [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: 01 [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: 01 07 00 [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: 01 07 00 27 60 00 80 00 00 00 4D 0D 68 [07:17:08]RasterBufferAndPrint [07:17:08]line [07:17:08]line [07:17:08]line [07:17:08]line [07:17:08]line [07:17:08]written 0, free lines is 3413 [07:17:08]process_action close_receipt done [07:17:08]requested_data is exist [07:17:08]produce_requested_data [07:17:08]requested_item fm.sn is exist - process it [07:17:08]wFMCommunicate request_size=4 [07:17:08]MH_SAM_APDU [07:17:08]CAPDU: 80 11 00 00 [07:17:08]Write to MH i2c: E2 08 00 2E 60 80 11 00 00 00 00 00 00 08 [07:17:08]Write i2c OK [07:17:08]MH_I2C_Read... [07:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:08]Read from MH i2c: E2 [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: E2 17 00 [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: E2 17 00 2E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 58 [07:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:17:08]wFMCommunicate OK [07:17:08]requested_item fd.num is exist - process it [07:17:08]SAM_PROTO_GetFieldsCounters [07:17:08]wFMCommunicate request_size=4 [07:17:08]MH_SAM_APDU [07:17:08]CAPDU: 80 13 00 00 [07:17:08]Write to MH i2c: E2 08 00 2F 60 80 13 00 00 00 00 00 00 0B [07:17:08]Write i2c OK [07:17:08]MH_I2C_Read... [07:17:08]OFD Sender: No OFD packet to send [07:17:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:08]Read from MH i2c: E2 [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: E2 62 00 [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: E2 62 00 2F 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 56 74 01 00 0E 04 04 00 48 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 63 [07:17:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 56 74 01 00 0E 04 04 00 48 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 [07:17:08]wFMCommunicate OK [07:17:08]SAM_PROTO_GetFieldsCounters done [07:17:08]requested_item shift.num is exist - process it [07:17:08]requested_item shift.opened is exist - process it [07:17:08]req_shift_opened [07:17:08]FM_GetShiftState [07:17:08]SAM_PROTO_GetShiftState [07:17:08]wFMCommunicate request_size=4 [07:17:08]MH_SAM_APDU [07:17:08]CAPDU: 80 13 01 00 [07:17:08]Write to MH i2c: E2 08 00 30 60 80 13 01 00 00 00 00 00 0D [07:17:08]Write i2c OK [07:17:08]MH_I2C_Read... [07:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:08]Read from MH i2c: E2 [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: E2 0E 00 [07:17:08]MH_I2C_Read... [07:17:08]Read from MH i2c: E2 0E 00 30 60 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F2 [07:17:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:17:08]wFMCommunicate OK [07:17:08]SAM_PROTO_GetShiftState done [07:17:08]FM_GetShiftState done [07:17:08]req_shift_opened done [07:17:08]requested_item shift.open_date is exist - process it [07:17:08]req_shift_open_date [07:17:08]req_shift_open_date done [07:17:08]produce_requested_data done [07:17:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95318,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:17:08]process_action_free close_receipt [07:17:08]json_value_free [07:17:08]json_value_free done [07:17:08]process_json_proto returns [07:17:08]Send response to host [07:17:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95318,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:17:08]free response buf [07:17:08]execute_script done [07:17:08]execute_script returns [07:17:08]free content buf [07:17:08]Sock 9.Close socket [07:17:08]Sock 9.Thread stoped [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:55]accept exits with 8 [07:17:55]New connection [07:17:55]New thread 3066957156 created [07:17:55]Thread 3066813796 joined [07:17:55]Waiting for new connection... [07:17:55] Sock 8.Parse request [07:17:55]Sock 8.Check first char [07:17:55]Sock 8.First char is OK [07:17:55]request: POST /json_proto HTTP/1.0 [07:17:55]Method: POST [07:17:55]URL: /json_proto [07:17:55]Method is POST - this is cgi request [07:17:55]url: /json_proto [07:17:55]query_string will be loaded in cgi processing [07:17:55]execute_cgi json_proto POST (null) [07:17:55]execute_cgi path=json_proto method=POST [07:17:55]POST find Content-Length [07:17:55]Host: 172.17.62.67:8080 [07:17:55]Content-Length: 677 [07:17:55]Content-Type: application/json [07:17:55] [07:17:55]POST finish read [07:17:55]Found Content-Length = 677 [07:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196295", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "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" ] } } [07:17:55]execute_script... [07:17:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196295", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "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" ] } } [07:17:55]POST & json_proto [07:17:55]process_json_proto [07:17:55]json parsed OK: [07:17:55]protocol is kg_v1.0 [07:17:55]action value=close_receipt [07:17:55]process_action close_receipt [07:17:55]cmd_close_receipt [07:17:55]MH_GetDate [07:17:55]Write to MH i2c: F0 00 00 31 60 80 [07:17:55]Write i2c OK [07:17:55]MH_I2C_Read... [07:17:55]Read from MH i2c: F0 [07:17:55]MH_I2C_Read... [07:17:55]Read from MH i2c: F0 05 00 [07:17:55]MH_I2C_Read... [07:17:55]Read from MH i2c: F0 05 00 31 60 00 2D 53 F1 65 5B [07:17:55]GetLastDocTimeStamp 1710314235 [07:17:55]current date 1710314285 [07:17:55]FM_GetShiftState [07:17:55]SAM_PROTO_GetShiftState [07:17:55]wFMCommunicate request_size=4 [07:17:55]MH_SAM_APDU [07:17:55]CAPDU: 80 13 01 00 [07:17:55]Write to MH i2c: E2 08 00 32 60 80 13 01 00 00 00 00 00 0F [07:17:55]Write i2c OK [07:17:55]MH_I2C_Read... [07:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:55]Read from MH i2c: E2 [07:17:55]MH_I2C_Read... [07:17:55]Read from MH i2c: E2 0E 00 [07:17:55]MH_I2C_Read... [07:17:55]Read from MH i2c: E2 0E 00 32 60 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F4 [07:17:55]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:17:55]wFMCommunicate OK [07:17:55]SAM_PROTO_GetShiftState done [07:17:55]FM_GetShiftState done [07:17:55]opened in 1710288279 [07:17:55]opened+sec_in_day 1710374679 [07:17:55]quantity*price = 60006 [07:17:55]sum+1 = 60008 [07:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 14 13.03.2024 07:18 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95319 ФПД: 206869251475128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T071805&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95319&fm=206869251475128&tin=02508201610067®Number=0000000000090555&sum=60000 [07:17:56]StoreToDocumentArchive [07:17:56]shift 328 fd 95319 [07:17:56]save to /storage/0328/doc_00095319 [07:17:56]save last doc name /storage/0328/doc_00095319 to /storage/kkm_last_doc_name [07:17:56]save OK [07:17:56]Clear old archive folders... [07:17:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:17:56]tlvbuf is 01BB73A0 [07:17:56]SAM_PROTO_ClearQueue [07:17:56]wFMCommunicate request_size=4 [07:17:56]MH_SAM_APDU [07:17:56]CAPDU: 80 09 00 00 [07:17:56]Write to MH i2c: E2 08 00 3F 60 80 09 00 00 00 00 00 00 11 [07:17:56]Write i2c OK [07:17:56]MH_I2C_Read... [07:17:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:56]Read from MH i2c: E2 [07:17:56]MH_I2C_Read... [07:17:56]Read from MH i2c: E2 03 00 [07:17:56]MH_I2C_Read... [07:17:56]Read from MH i2c: E2 03 00 3F 60 00 90 00 13 [07:17:56]RAPDU: 90 00 [07:17:56]wFMCommunicate OK [07:17:56]SAM_PROTO_ClearQueue done [07:17:56]KKMCreateOFDPacket [07:17:56]OFDProtocolAddRootSTLVToBuf [07:17:56]FM_MakeSignedData [07:17:56]FM_MakeSignedData [07:17:56]SAM_PROTO_SignData [07:17:56]wFMCommunicate request_size=4 [07:17:56]MH_SAM_APDU [07:17:56]CAPDU: 80 0D 01 02 [07:17:56]Write to MH i2c: E2 08 00 40 60 80 0D 01 02 00 00 00 00 19 [07:17:56]Write i2c OK [07:17:56]MH_I2C_Read... [07:17:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:56]Read from MH i2c: E2 [07:17:56]MH_I2C_Read... [07:17:56]Read from MH i2c: E2 03 00 [07:17:56]MH_I2C_Read... [07:17:56]Read from MH i2c: E2 03 00 40 60 00 90 00 14 [07:17:56]RAPDU: 90 00 [07:17:56]wFMCommunicate OK [07:17:56]wFMCommunicate request_size=255 [07:17:56]MH_SAM_APDU [07:17:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 53 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 74 01 00 35 04 06 00 BC [07:17:56]Write to MH i2c: E2 02 01 41 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 53 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 74 01 00 35 04 06 00 BC 00 00 DD [07:17:56]Write i2c OK [07:17:56]MH_I2C_Read... [07:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:57]Read from MH i2c: E2 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: E2 03 00 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: E2 03 00 41 60 00 90 00 15 [07:17:57]RAPDU: 90 00 [07:17:57]wFMCommunicate OK [07:17:57]wFMCommunicate request_size=10 [07:17:57]MH_SAM_APDU [07:17:57]CAPDU: 80 0D 02 02 05 25 80 3F C6 B8 [07:17:57]Write to MH i2c: E2 0D 00 42 60 80 0D 02 02 05 00 25 80 3F C6 B8 00 00 88 [07:17:57]Write i2c OK [07:17:57]MH_I2C_Read... [07:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:57]Read from MH i2c: E2 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: E2 03 00 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: E2 03 00 42 60 00 90 00 16 [07:17:57]RAPDU: 90 00 [07:17:57]wFMCommunicate OK [07:17:57]wFMCommunicate request_size=4 [07:17:57]MH_SAM_APDU [07:17:57]CAPDU: 80 0D 03 02 [07:17:57]Write to MH i2c: E2 08 00 43 60 80 0D 03 02 00 00 00 00 1E [07:17:57]Write i2c OK [07:17:57]MH_I2C_Read... [07:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:57]Read from MH i2c: E2 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: E2 0B 00 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: E2 0B 00 43 60 00 EE 2C 06 43 75 2D 59 00 90 00 7D [07:17:57]RAPDU: EE 2C 06 43 75 2D 59 00 90 00 [07:17:57]wFMCommunicate OK [07:17:57]SAM_PROTO_SignData done [07:17:57]FM_MakeSignedData done [07:17:57]CreateOFDProtocolMessage [07:17:57]wFMCommunicate request_size=4 [07:17:57]MH_SAM_APDU [07:17:57]CAPDU: 80 11 00 00 [07:17:57]Write to MH i2c: E2 08 00 44 60 80 11 00 00 00 00 00 00 1E [07:17:57]Write i2c OK [07:17:57]MH_I2C_Read... [07:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:57]Read from MH i2c: E2 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: E2 17 00 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: E2 17 00 44 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6E [07:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:17:57]wFMCommunicate OK [07:17:57]CreateOFDProtocolMessage done [07:17:57]OFDSenderStorePacket 95319 [07:17:57]StoreOFDPacket docnum=95319 [07:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BA 58 07 01 CB DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 53 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 74 01 00 35 04 06 00 BC 25 80 3F C6 B8 EE 2C 06 43 75 2D 59 00 [07:17:57]CheckFolder [07:17:57]dirname=/storage/ofd_packets [07:17:57]CheckFolder done [07:17:57]ProducePacketName [07:17:57]name=ofd_packets/00095319 [07:17:57]NVStorageSaveData ofd_packets/00095319 [07:17:57]File name is /storage/ofd_packets/00095319 [07:17:57]Write 301 bytes [07:17:57]NVStorageSaveData done [07:17:57]OFDSenderStorePacket done [07:17:57]KKMCreateOFDPacket done [07:17:57]NVStorageSaveData kkm_last_timestamp [07:17:57]File name is /storage/kkm_last_timestamp [07:17:57]Write 4 bytes [07:17:57]NVStorageSaveData done [07:17:57]ExternCall_PrintAddStr [07:17:57]wPrintStart [07:17:57]Write to MH i2c: 01 00 00 45 60 A5 [07:17:57]Write i2c OK [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: 01 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: 01 07 00 [07:17:57]MH_I2C_Read... [07:17:57]Read from MH i2c: 01 07 00 45 60 00 80 00 00 00 FF 0F 3A [07:17:57]RasterBufferAndPrint [07:17:57]line Счет N : (1)196295 [07:17:57]line ИНН: 02508201610067 [07:17:57]line Контрольно-Кассовый Чек [07:17:57]line ПРОДАЖА [07:17:57]line ТРК (МРК, ГНК) : 32 [07:17:57]line Товар: 2710124130 [07:17:57]line Аи-92-К-5 [07:17:57]line 9.540 * 62.90 [07:17:57]line = 600.07 [07:17:57]line НДС 12% НСП 1% [07:17:57]line > о реализуемом товаре [07:17:57]line ОКРУГЛЕНИЕ: -0.07 [07:17:57]line ИТОГО: 600.00 [07:17:57]line Внесено: 600.00 [07:17:57]line СДАЧА: 0.00 [07:17:57]line НСП 1% : 5.31 [07:17:57]line НДС 12% : 63.72 [07:17:57]line Наличными: 600.00 [07:17:57]line Безнал.: 0.00 [07:17:57]line Место: АЗС № 6 "Партнер Нефть" [07:17:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:17:57]line СНО: Общий режим [07:17:57]line Чек 14 13.03.2024 07:18 [07:17:57]line Смена: 328 ФФД: 1.0 [07:17:57]line ЗНМ: 0300000009 [07:17:57]line РНМ: 0000000000090555 [07:17:57]line Версия ККМ: 001 [07:17:57]line ФМ: 0000000000874811 [07:17:57]line ФД: 95319 [07:17:57]line ФПД: 206869251475128 [07:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T071805&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95319&fm=206869251475128&tin=02508201610067®Number=0000000000090555&sum=60000 [07:17:57]OFD Sender: Processing packet 95319 [packets to send 30, broken 29] [07:17:57]ProducePacketName [07:17:57]name=ofd_packets/00095319 [07:17:57]OFD Sender: To server: pG, [07:17:57]CommunicateWithHost lk.salyk.kg:30040 [07:17:57]ConnectInit lk.salyk.kg [07:17:57]written 0, free lines is 4095 [07:17:58]Write to MH i2c: 01 00 00 70 60 D0 [07:17:58]Write i2c OK [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: 01 [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: 01 07 00 [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: 01 07 00 70 60 00 80 00 00 00 45 0D A9 [07:17:58]RasterBufferAndPrint [07:17:58]line [07:17:58]line [07:17:58]line [07:17:58]line [07:17:58]line [07:17:58]written 0, free lines is 3403 [07:17:58]process_action close_receipt done [07:17:58]requested_data is exist [07:17:58]produce_requested_data [07:17:58]requested_item fm.sn is exist - process it [07:17:58]wFMCommunicate request_size=4 [07:17:58]MH_SAM_APDU [07:17:58]CAPDU: 80 11 00 00 [07:17:58]Write to MH i2c: E2 08 00 77 60 80 11 00 00 00 00 00 00 51 [07:17:58]Write i2c OK [07:17:58]MH_I2C_Read... [07:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:58]Read from MH i2c: E2 [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: E2 17 00 [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: E2 17 00 77 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A1 [07:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:17:58]wFMCommunicate OK [07:17:58]requested_item fd.num is exist - process it [07:17:58]SAM_PROTO_GetFieldsCounters [07:17:58]wFMCommunicate request_size=4 [07:17:58]MH_SAM_APDU [07:17:58]CAPDU: 80 13 00 00 [07:17:58]Write to MH i2c: E2 08 00 78 60 80 13 00 00 00 00 00 00 54 [07:17:58]Write i2c OK [07:17:58]MH_I2C_Read... [07:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:58]Read from MH i2c: E2 [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: E2 62 00 [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: E2 62 00 78 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 57 74 01 00 0E 04 04 00 48 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 B0 [07:17:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 57 74 01 00 0E 04 04 00 48 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:17:58]wFMCommunicate OK [07:17:58]SAM_PROTO_GetFieldsCounters done [07:17:58]requested_item shift.num is exist - process it [07:17:58]requested_item shift.opened is exist - process it [07:17:58]req_shift_opened [07:17:58]FM_GetShiftState [07:17:58]SAM_PROTO_GetShiftState [07:17:58]wFMCommunicate request_size=4 [07:17:58]MH_SAM_APDU [07:17:58]CAPDU: 80 13 01 00 [07:17:58]Write to MH i2c: E2 08 00 79 60 80 13 01 00 00 00 00 00 56 [07:17:58]Write i2c OK [07:17:58]MH_I2C_Read... [07:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:58]Read from MH i2c: E2 [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: E2 0E 00 [07:17:58]MH_I2C_Read... [07:17:58]Read from MH i2c: E2 0E 00 79 60 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3B [07:17:58]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:17:58]wFMCommunicate OK [07:17:58]SAM_PROTO_GetShiftState done [07:17:58]FM_GetShiftState done [07:17:58]req_shift_opened done [07:17:58]requested_item shift.open_date is exist - process it [07:17:58]req_shift_open_date [07:17:58]req_shift_open_date done [07:17:58]produce_requested_data done [07:17:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95319,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:17:58]process_action_free close_receipt [07:17:58]json_value_free [07:17:58]json_value_free done [07:17:58]process_json_proto returns [07:17:58]Send response to host [07:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95319,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:17:58]free response buf [07:17:58]execute_script done [07:17:58]execute_script returns [07:17:58]free content buf [07:17:58]Sock 8.Close socket [07:17:58]Sock 8.Thread stoped [07:20:11]ConnectInit Can't connect to host [07:20:11]CommunicateWithHost connect error [07:20:11]CommunicateWithHost err = -1 [07:20:11]OFD Sender: Server communicate error [07:20:16]OFD Sender: Processing packet 95319 [packets to send 30, broken 29] [07:20:16]ProducePacketName [07:20:16]name=ofd_packets/00095319 [07:20:16]OFD Sender: To server: pG, [07:20:16]CommunicateWithHost lk.salyk.kg:30040 [07:20:16]ConnectInit lk.salyk.kg [07:20:16]Connected sock=8 [07:20:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BA 58 07 01 CB DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 2D 53 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 57 74 01 00 35 04 06 00 BC 25 80 3F C6 B8 EE 2C 06 43 75 2D 59 00 [07:20:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B8 D1 47 00 98 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 34 38 31 31 10 04 04 00 57 74 01 00 F4 03 04 00 0B FF F0 65 B6 04 01 00 00 C9 68 CF D3 DA E9 CF B6 [07:20:16]CommunicateWithHost err = 0 [07:20:16]CheckOFDResponse [07:20:16]1017 (14) - 77093643461234 [07:20:16]1041 (16) - 0000000000874811 [07:20:16]1040 (4) - 95319 [07:20:16]1012 (4) - 13.03.2024 01:19 [07:20:16]1206 (1) - 0 [07:20:16]OFD Sender: Remove packet 95319 [07:20:16]ProducePacketName [07:20:16]name=ofd_packets/00095319 [07:20:16]NVStorageDeleteData [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:55]ConnectInit Can't connect to host [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]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:43]ConnectInit Can't connect to host [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:55]accept exits with 9 [07:35:55]New connection [07:35:55]New thread 3066813796 created [07:35:55]Thread 3066957156 joined [07:35:55]Waiting for new connection... [07:35:55] Sock 9.Parse request [07:35:55]Sock 9.Check first char [07:35:55]Sock 9.First char is OK [07:35:55]request: POST /json_proto HTTP/1.0 [07:35:55]Method: POST [07:35:55]URL: /json_proto [07:35:55]Method is POST - this is cgi request [07:35:55]url: /json_proto [07:35:55]query_string will be loaded in cgi processing [07:35:55]execute_cgi json_proto POST (null) [07:35:55]execute_cgi path=json_proto method=POST [07:35:55]POST find Content-Length [07:35:55]Host: 172.17.62.67:8080 [07:35:55]Content-Length: 677 [07:35:55]Content-Type: application/json [07:35:55] [07:35:55]POST finish read [07:35:55]Found Content-Length = 677 [07:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196296", "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" : 62.90, "quantity" : 5.570, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:55]execute_script... [07:35:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196296", "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" : 62.90, "quantity" : 5.570, "sum" : 350.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:55]POST & json_proto [07:35:55]process_json_proto [07:35:55]json parsed OK: [07:35:55]protocol is kg_v1.0 [07:35:55]action value=close_receipt [07:35:55]process_action close_receipt [07:35:55]cmd_close_receipt [07:35:55]MH_GetDate [07:35:55]Write to MH i2c: F0 00 00 7A 60 C9 [07:35:55]Write i2c OK [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: F0 [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: F0 05 00 [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: F0 05 00 7A 60 00 65 57 F1 65 E0 [07:35:55]GetLastDocTimeStamp 1710314285 [07:35:55]current date 1710315365 [07:35:55]FM_GetShiftState [07:35:55]SAM_PROTO_GetShiftState [07:35:55]wFMCommunicate request_size=4 [07:35:55]MH_SAM_APDU [07:35:55]CAPDU: 80 13 01 00 [07:35:55]Write to MH i2c: E2 08 00 7B 60 80 13 01 00 00 00 00 00 58 [07:35:55]Write i2c OK [07:35:55]MH_I2C_Read... [07:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:55]Read from MH i2c: E2 [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: E2 0E 00 [07:35:55]MH_I2C_Read... [07:35:55]Read from MH i2c: E2 0E 00 7B 60 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3D [07:35:55]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:35:55]wFMCommunicate OK [07:35:55]SAM_PROTO_GetShiftState done [07:35:55]FM_GetShiftState done [07:35:55]opened in 1710288279 [07:35:55]opened+sec_in_day 1710374679 [07:35:55]quantity*price = 35035 [07:35:55]sum+1 = 35036 [07:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре [07:35:57]line ОКРУГЛЕНИЕ: -0.35 [07:35:57]line ИТОГО: 350.00 [07:35:57]line Внесено: 350.00 [07:35:57]line СДАЧА: 0.00 [07:35:57]line НСП 1% : 3.10 [07:35:57]line НДС 12% : 37.20 [07:35:57]line Наличными: 350.00 [07:35:57]line Безнал.: 0.00 [07:35:57]line Место: АЗС № 6 "Партнер Нефть" [07:35:57]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:35:57]line СНО: Общий режим [07:35:57]line Чек 15 13.03.2024 07:36 [07:35:57]line Смена: 328 ФФД: 1.0 [07:35:57]line ЗНМ: 0300000009 [07:35:57]line РНМ: 0000000000090555 [07:35:57]line Версия ККМ: 001 [07:35:57]line ФМ: 0000000000874811 [07:35:57]line ФД: 95320 [07:35:57]line ФПД: 133645356629726 [07:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T073605&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95320&fm=133645356629726&tin=02508201610067®Number=0000000000090555&sum=35000 [07:35:57]OFD Sender: Processing packet 95320 [packets to send 30, broken 29] [07:35:57]ProducePacketName [07:35:57]name=ofd_packets/00095320 [07:35:57]OFD Sender: To server: pG, [07:35:57]CommunicateWithHost lk.salyk.kg:30040 [07:35:57]ConnectInit lk.salyk.kg [07:35:57]written 0, free lines is 4095 [07:35:58]Write to MH i2c: 01 00 00 B9 60 19 [07:35:58]Write i2c OK [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: 01 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: 01 07 00 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: 01 07 00 B9 60 00 80 00 00 00 4B 0D F8 [07:35:58]RasterBufferAndPrint [07:35:58]line [07:35:58]line [07:35:58]line [07:35:58]line [07:35:58]line [07:35:58]written 0, free lines is 3409 [07:35:58]process_action close_receipt done [07:35:58]requested_data is exist [07:35:58]produce_requested_data [07:35:58]requested_item fm.sn is exist - process it [07:35:58]wFMCommunicate request_size=4 [07:35:58]MH_SAM_APDU [07:35:58]CAPDU: 80 11 00 00 [07:35:58]Write to MH i2c: E2 08 00 C0 60 80 11 00 00 00 00 00 00 9A [07:35:58]Write i2c OK [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 [07:35:58]MH_I2C_Read... [07:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:58]Read from MH i2c: E2 17 00 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 17 00 C0 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EA [07:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:35:58]wFMCommunicate OK [07:35:58]requested_item fd.num is exist - process it [07:35:58]SAM_PROTO_GetFieldsCounters [07:35:58]wFMCommunicate request_size=4 [07:35:58]MH_SAM_APDU [07:35:58]CAPDU: 80 13 00 00 [07:35:58]Write to MH i2c: E2 08 00 C1 60 80 13 00 00 00 00 00 00 9D [07:35:58]Write i2c OK [07:35:58]MH_I2C_Read... [07:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:58]Read from MH i2c: E2 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 62 00 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 62 00 C1 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 58 74 01 00 0E 04 04 00 48 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 FD [07: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 58 74 01 00 0E 04 04 00 48 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:35:58]wFMCommunicate OK [07:35:58]SAM_PROTO_GetFieldsCounters done [07:35:58]requested_item shift.num is exist - process it [07:35:58]requested_item shift.opened is exist - process it [07:35:58]req_shift_opened [07:35:58]FM_GetShiftState [07:35:58]SAM_PROTO_GetShiftState [07:35:58]wFMCommunicate request_size=4 [07:35:58]MH_SAM_APDU [07:35:58]CAPDU: 80 13 01 00 [07:35:58]Write to MH i2c: E2 08 00 C2 60 80 13 01 00 00 00 00 00 9F [07:35:58]Write i2c OK [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 [07:35:58]MH_I2C_Read... [07:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:58]Read from MH i2c: E2 0E 00 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 0E 00 C2 60 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 84 [07:35:58]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:35:58]wFMCommunicate OK [07:35:58]SAM_PROTO_GetShiftState done [07:35:58]FM_GetShiftState done [07:35:58]req_shift_opened done [07:35:58]requested_item shift.open_date is exist - process it [07:35:58]req_shift_open_date [07:35:58]req_shift_open_date done [07:35:58]produce_requested_data done [07:35:58]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95320,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:35:58]process_action_free close_receipt [07:35:58]json_value_free [07:35:58]json_value_free done [07:35:58]process_json_proto returns [07:35:58]Send response to host [07:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95320,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:35:58]free response buf [07:35:58]execute_script done [07:35:58]execute_script returns [07:35:58]free content buf [07:35:58]Sock 9.Close socket [07:35:58]Sock 9.Thread stoped [07:36:01]recv_with_timeout no data received [07:36:02]ConnectInit Can't take IP for lk.salyk.kg [07:36:02]CommunicateWithHost connect error [07:36:02]CommunicateWithHost err = -1 [07:36:02]OFD Sender: Server communicate error [07:36:07]OFD Sender: Processing packet 95320 [packets to send 30, broken 29] [07:36:07]ProducePacketName [07:36:07]name=ofd_packets/00095320 [07:36:07]OFD Sender: To server: pG, [07:36:07]CommunicateWithHost lk.salyk.kg:30040 [07:36:07]ConnectInit lk.salyk.kg [07:36:12]ConnectInit Can't take IP for lk.salyk.kg [07:36:12]CommunicateWithHost connect error [07:36:12]CommunicateWithHost err = -1 [07:36:12]OFD Sender: Server communicate error [07:36:17]OFD Sender: Processing packet 95320 [packets to send 30, broken 29] [07:36:17]ProducePacketName [07:36:17]name=ofd_packets/00095320 [07:36:17]OFD Sender: To server: pG, [07:36:17]CommunicateWithHost lk.salyk.kg:30040 [07:36:17]ConnectInit lk.salyk.kg [07:36:22]ConnectInit Can't take IP for lk.salyk.kg [07:36:22]CommunicateWithHost connect error [07:36:22]CommunicateWithHost err = -1 [07:36:22]OFD Sender: Server communicate error [07:36:27]OFD Sender: Processing packet 95320 [packets to send 30, broken 29] [07:36:27]ProducePacketName [07:36:27]name=ofd_packets/00095320 [07:36:27]OFD Sender: To server: pG, [07:36:27]CommunicateWithHost lk.salyk.kg:30040 [07:36:27]ConnectInit lk.salyk.kg [07:36:32]ConnectInit Can't take IP for lk.salyk.kg [07:36:32]CommunicateWithHost connect error [07:36:32]CommunicateWithHost err = -1 [07:36:32]OFD Sender: Server communicate error [07:36:37]OFD Sender: Processing packet 95320 [packets to send 30, broken 29] [07:36:37]ProducePacketName [07:36:37]name=ofd_packets/00095320 [07:36:37]OFD Sender: To server: pG, [07:36:37]CommunicateWithHost lk.salyk.kg:30040 [07:36:37]ConnectInit lk.salyk.kg [07:36:39]recv_with_timeout no data received [07:36:47]Connected sock=8 [07:36:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 48 E1 07 01 4C 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 15 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 65 57 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 58 74 01 00 35 04 06 00 79 8C BC 01 FE DE D5 0B FA D6 7A 70 95 31 [07:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 67 67 47 00 A6 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 58 74 01 00 F4 03 04 00 EB 02 F1 65 B6 04 01 00 00 C8 C8 90 7C 98 83 71 AA [07:36:48]CommunicateWithHost err = 0 [07:36:48]CheckOFDResponse [07:36:48]1017 (14) - 77093643461234 [07:36:48]1041 (16) - 0000000000874811 [07:36:48]1040 (4) - 95320 [07:36:48]1012 (4) - 13.03.2024 01:35 [07:36:48]1206 (1) - 0 [07:36:48]OFD Sender: Remove packet 95320 [07:36:48]ProducePacketName [07:36:48]name=ofd_packets/00095320 [07:36:48]NVStorageDeleteData [07:36:49]OFD Sender: No OFD packet to send [07:36:52]recv_with_timeout no data received [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:21]accept exits with 10 [07:38:21]New connection [07:38:21]New thread 3066957156 created [07:38:21]Thread 3066813796 joined [07:38:21]Waiting for new connection... [07:38:21] Sock 10.Parse request [07:38:21]Sock 10.Check first char [07:38:21]Sock 10.First char is OK [07:38:21]request: POST /json_proto HTTP/1.0 [07:38:21]Method: POST [07:38:21]URL: /json_proto [07:38:21]Method is POST - this is cgi request [07:38:21]url: /json_proto [07:38:21]query_string will be loaded in cgi processing [07:38:21]execute_cgi json_proto POST (null) [07:38:21]execute_cgi path=json_proto method=POST [07:38:21]POST find Content-Length [07:38:21]Host: 172.17.62.67:8080 [07:38:21]Content-Length: 808 [07:38:21]Content-Type: application/json [07:38:21] [07:38:21]POST finish read [07:38:21]Found Content-Length = 808 [07:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 40.000, "sum" : 2780.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:21]execute_script... [07:38:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 40.000, "sum" : 2780.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2780.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:21]POST & json_proto [07:38:21]process_json_proto [07:38:21]json parsed OK: [07:38:21]protocol is kg_v1.0 [07:38:21]action value=close_receipt [07:38:21]process_action close_receipt [07:38:21]cmd_close_receipt [07:38:21]MH_GetDate [07:38:21]Write to MH i2c: F0 00 00 C3 60 12 [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: F0 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: F0 05 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: F0 05 00 C3 60 00 F7 57 F1 65 BB [07:38:21]GetLastDocTimeStamp 1710315365 [07:38:21]current date 1710315511 [07:38:21]FM_GetShiftState [07:38:21]SAM_PROTO_GetShiftState [07:38:21]wFMCommunicate request_size=4 [07:38:21]MH_SAM_APDU [07:38:21]CAPDU: 80 13 01 00 [07:38:21]Write to MH i2c: E2 08 00 C4 60 80 13 01 00 00 00 00 00 A1 [07:38:21]Write i2c OK [07:38:21]MH_I2C_Read... [07:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:21]Read from MH i2c: E2 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 0E 00 [07:38:21]MH_I2C_Read... [07:38:21]Read from MH i2c: E2 0E 00 C4 60 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 86 [07:38:21]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:38:21]wFMCommunicate OK [07:38:21]SAM_PROTO_GetShiftState done [07:38:21]FM_GetShiftState done [07:38:21]opened in 1710288279 [07:38:21]opened+sec_in_day 1710374679 [07:38:21]quantity*price = 278000 [07:38:21]sum+1 = 278001 [07:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2780.00 НСП 1% : 24.60 НДС 12% : 295.22 Наличными: 0.00 Безнал.: 2780.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 16 13.03.2024 07:38 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95321 ФПД: 18288429577273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T073831&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95321&fm=18288429577273&tin=02508201610067®Number=0000000000090555&sum=278000 [07:38:22]StoreToDocumentArchive [07:38:22]shift 328 fd 95321 [07:38:22]save to /storage/0328/doc_00095321 [07:38:22]save last doc name /storage/0328/doc_00095321 to /storage/kkm_last_doc_name [07:38:22]save OK [07:38:22]Clear old archive folders... [07:38:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:22]tlvbuf is 01A4C8C0 [07:38:22]SAM_PROTO_ClearQueue [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 09 00 00 [07:38:22]Write to MH i2c: E2 08 00 D1 60 80 09 00 00 00 00 00 00 A3 [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 D1 60 00 90 00 A5 [07:38:22]RAPDU: 90 00 [07:38:22]wFMCommunicate OK [07:38:22]SAM_PROTO_ClearQueue done [07:38:22]KKMCreateOFDPacket [07:38:22]OFDProtocolAddRootSTLVToBuf [07:38:22]FM_MakeSignedData [07:38:22]FM_MakeSignedData [07:38:22]SAM_PROTO_SignData [07:38:22]wFMCommunicate request_size=4 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 0D 01 02 [07:38:22]Write to MH i2c: E2 08 00 D2 60 80 0D 01 02 00 00 00 00 AB [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 D2 60 00 90 00 A6 [07:38:22]RAPDU: 90 00 [07:38:22]wFMCommunicate OK [07:38:22]wFMCommunicate request_size=255 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F0 3D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 73 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F7 57 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 74 01 00 35 04 06 00 10 [07:38:22]Write to MH i2c: E2 02 01 D3 60 80 0D 02 02 FA 00 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 40 9C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F0 3D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 73 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F7 57 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 74 01 00 35 04 06 00 10 00 00 AA [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:22]Read from MH i2c: E2 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 [07:38:22]MH_I2C_Read... [07:38:22]Read from MH i2c: E2 03 00 D3 60 00 90 00 A7 [07:38:22]RAPDU: 90 00 [07:38:22]wFMCommunicate OK [07:38:22]wFMCommunicate request_size=10 [07:38:22]MH_SAM_APDU [07:38:22]CAPDU: 80 0D 02 02 05 A2 1B 59 34 39 [07:38:22]Write to MH i2c: E2 0D 00 D4 60 80 0D 02 02 05 00 A2 1B 59 34 39 00 00 3B [07:38:22]Write i2c OK [07:38:22]MH_I2C_Read... [07:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 03 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 03 00 D4 60 00 90 00 A8 [07:38:23]RAPDU: 90 00 [07:38:23]wFMCommunicate OK [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 0D 03 02 [07:38:23]Write to MH i2c: E2 08 00 D5 60 80 0D 03 02 00 00 00 00 B0 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 0B 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 0B 00 D5 60 00 25 1D 16 2C 41 C3 FB 5E 90 00 92 [07:38:23]RAPDU: 25 1D 16 2C 41 C3 FB 5E 90 00 [07:38:23]wFMCommunicate OK [07:38:23]SAM_PROTO_SignData done [07:38:23]FM_MakeSignedData done [07:38:23]CreateOFDProtocolMessage [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 11 00 00 [07:38:23]Write to MH i2c: E2 08 00 D6 60 80 11 00 00 00 00 00 00 B0 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 17 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 17 00 D6 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [07:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:38:23]wFMCommunicate OK [07:38:23]CreateOFDProtocolMessage done [07:38:23]OFDSenderStorePacket 95321 [07:38:23]StoreOFDPacket docnum=95321 [07:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 60 1E 07 01 75 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F0 3D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 73 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F7 57 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 74 01 00 35 04 06 00 10 A2 1B 59 34 39 25 1D 16 2C 41 C3 FB 5E [07:38:23]CheckFolder [07:38:23]dirname=/storage/ofd_packets [07:38:23]CheckFolder done [07:38:23]ProducePacketName [07:38:23]name=ofd_packets/00095321 [07:38:23]NVStorageSaveData ofd_packets/00095321 [07:38:23]File name is /storage/ofd_packets/00095321 [07:38:23]Write 301 bytes [07:38:23]NVStorageSaveData done [07:38:23]OFDSenderStorePacket done [07:38:23]KKMCreateOFDPacket done [07:38:23]NVStorageSaveData kkm_last_timestamp [07:38:23]File name is /storage/kkm_last_timestamp [07:38:23]Write 4 bytes [07:38:23]NVStorageSaveData done [07:38:23]ExternCall_PrintAddStr [07:38:23]wPrintStart [07:38:23]Write to MH i2c: 01 00 00 D7 60 37 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 07 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 07 00 D7 60 00 80 00 00 00 FF 0F CC [07:38:23]RasterBufferAndPrint [07:38:23]line Счет N : (1)196297 [07:38:23]line ИНН: 02508201610067 [07:38:23]line Контрольно-Кассовый Чек [07:38:23]line ПРОДАЖА [07:38:23]line ТРК (МРК, ГНК) : 11 [07:38:23]line Товар: 2710124500 [07:38:23]line Аи-95-К-5 [07:38:23]line 40.000 * 69.50 [07:38:23]line = 2780.00 [07:38:23]line НДС 12% НСП 1% [07:38:23]line > о реализуемом товаре [07:38:23]line ИТОГО: 2780.00 [07:38:23]line НСП 1% : 24.60 [07:38:23]line НДС 12% : 295.22 [07:38:23]line Наличными: 0.00 [07:38:23]line Безнал.: 2780.00 [07:38:23]line Место: АЗС № 6 "Партнер Нефть" [07:38:23]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:38:23]line СНО: Общий режим [07:38:23]line Чек 16 13.03.2024 07:38 [07:38:23]line Смена: 328 ФФД: 1.0 [07:38:23]line ЗНМ: 0300000009 [07:38:23]line РНМ: 0000000000090555 [07:38:23]line Версия ККМ: 001 [07:38:23]line Платежная система: О! деньги [07:38:23]line ФМ: 0000000000874811 [07:38:23]line ФД: 95321 [07:38:23]line ФПД: 18288429577273 [07:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T073831&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95321&fm=18288429577273&tin=02508201610067®Number=0000000000090555&sum=278000 [07:38:23]OFD Sender: Processing packet 95321 [packets to send 30, broken 29] [07:38:23]ProducePacketName [07:38:23]name=ofd_packets/00095321 [07:38:23]OFD Sender: To server: pG, [07:38:23]CommunicateWithHost lk.salyk.kg:30040 [07:38:23]ConnectInit lk.salyk.kg [07:38:23]written 0, free lines is 4095 [07:38:23]Connected sock=9 [07:38:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 60 1E 07 01 75 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 F0 3D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 3D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 73 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 3D 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 F7 57 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 74 01 00 35 04 06 00 10 A2 1B 59 34 39 25 1D 16 2C 41 C3 FB 5E [07:38:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 02 2C 47 00 81 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 59 74 01 00 F4 03 04 00 4A 03 F1 65 B6 04 01 00 00 D1 CB 7D A8 22 F4 6E FF [07:38:23]CommunicateWithHost err = 0 [07:38:23]CheckOFDResponse [07:38:23]1017 (14) - 77093643461234 [07:38:23]1041 (16) - 0000000000874811 [07:38:23]1040 (4) - 95321 [07:38:23]1012 (4) - 13.03.2024 01:37 [07:38:23]1206 (1) - 0 [07:38:23]OFD Sender: Remove packet 95321 [07:38:23]ProducePacketName [07:38:23]name=ofd_packets/00095321 [07:38:23]NVStorageDeleteData [07:38:23]Write to MH i2c: 01 00 00 01 61 62 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 07 00 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: 01 07 00 01 61 00 80 00 00 00 66 0D 5C [07:38:23]RasterBufferAndPrint [07:38:23]line [07:38:23]line [07:38:23]line [07:38:23]line [07:38:23]line [07:38:23]written 0, free lines is 3436 [07:38:23]process_action close_receipt done [07:38:23]requested_data is exist [07:38:23]produce_requested_data [07:38:23]requested_item fm.sn is exist - process it [07:38:23]wFMCommunicate request_size=4 [07:38:23]MH_SAM_APDU [07:38:23]CAPDU: 80 11 00 00 [07:38:23]Write to MH i2c: E2 08 00 08 61 80 11 00 00 00 00 00 00 E3 [07:38:23]Write i2c OK [07:38:23]MH_I2C_Read... [07:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:23]Read from MH i2c: E2 [07:38:23]MH_I2C_Read... [07:38:23]Read from MH i2c: E2 17 00 [07:38:23]MH_I2C_Read... [07:38:24]Read from MH i2c: E2 17 00 08 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 33 [07:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:38:24]wFMCommunicate OK [07:38:24]requested_item fd.num is exist - process it [07:38:24]SAM_PROTO_GetFieldsCounters [07:38:24]wFMCommunicate request_size=4 [07:38:24]MH_SAM_APDU [07:38:24]CAPDU: 80 13 00 00 [07:38:24]Write to MH i2c: E2 08 00 09 61 80 13 00 00 00 00 00 00 E6 [07:38:24]Write i2c OK [07:38:24]MH_I2C_Read... [07:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:24]Read from MH i2c: E2 [07:38:24]MH_I2C_Read... [07:38:24]Read from MH i2c: E2 62 00 [07:38:24]MH_I2C_Read... [07:38:24]Read from MH i2c: E2 62 00 09 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 59 74 01 00 0E 04 04 00 48 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 4A [07:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 59 74 01 00 0E 04 04 00 48 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:38:24]wFMCommunicate OK [07:38:24]SAM_PROTO_GetFieldsCounters done [07:38:24]requested_item shift.num is exist - process it [07:38:24]requested_item shift.opened is exist - process it [07:38:24]req_shift_opened [07:38:24]FM_GetShiftState [07:38:24]SAM_PROTO_GetShiftState [07:38:24]wFMCommunicate request_size=4 [07:38:24]MH_SAM_APDU [07:38:24]CAPDU: 80 13 01 00 [07:38:24]Write to MH i2c: E2 08 00 0A 61 80 13 01 00 00 00 00 00 E8 [07:38:24]Write i2c OK [07:38:24]MH_I2C_Read... [07:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:24]OFD Sender: No OFD packet to send [07:38:24]Read from MH i2c: E2 [07:38:24]MH_I2C_Read... [07:38:24]Read from MH i2c: E2 0E 00 [07:38:24]MH_I2C_Read... [07:38:24]Read from MH i2c: E2 0E 00 0A 61 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CD [07:38:24]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:38:24]wFMCommunicate OK [07:38:24]SAM_PROTO_GetShiftState done [07:38:24]FM_GetShiftState done [07:38:24]req_shift_opened done [07:38:24]requested_item shift.open_date is exist - process it [07:38:24]req_shift_open_date [07:38:24]req_shift_open_date done [07:38:24]produce_requested_data done [07:38:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95321,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:38:24]process_action_free close_receipt [07:38:24]json_value_free [07:38:24]json_value_free done [07:38:24]process_json_proto returns [07:38:24]Send response to host [07:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95321,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:38:24]free response buf [07:38:24]execute_script done [07:38:24]execute_script returns [07:38:24]free content buf [07:38:24]Sock 10.Close socket [07:38:24]Sock 10.Thread stoped [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]ConnectInit Can't connect to host [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:50]ConnectInit Can't connect to host [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:03]recv_with_timeout no data received [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:41]accept exits with 8 [07:59:41]New connection [07:59:41]New thread 3066813796 created [07:59:41]Thread 3066957156 joined [07:59:41]Waiting for new connection... [07:59:41] Sock 8.Parse request [07:59:41]Sock 8.Check first char [07:59:41]Sock 8.First char is OK [07:59:41]request: POST /json_proto HTTP/1.0 [07:59:41]Method: POST [07:59:41]URL: /json_proto [07:59:41]Method is POST - this is cgi request [07:59:41]url: /json_proto [07:59:41]query_string will be loaded in cgi processing [07:59:41]execute_cgi json_proto POST (null) [07:59:41]execute_cgi path=json_proto method=POST [07:59:41]POST find Content-Length [07:59:41]Host: 172.17.62.67:8080 [07:59:41]Content-Length: 677 [07:59:41]Content-Type: application/json [07:59:41] [07:59:41]POST finish read [07:59:41]Found Content-Length = 677 [07:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196298", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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" ] } } [07:59:41]execute_script... [07:59:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196298", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "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" ] } } [07:59:41]POST & json_proto [07:59:41]process_json_proto [07:59:41]json parsed OK: [07:59:41]protocol is kg_v1.0 [07:59:41]action value=close_receipt [07:59:41]process_action close_receipt [07:59:41]cmd_close_receipt [07:59:41]MH_GetDate [07:59:41]Write to MH i2c: F0 00 00 0B 61 5B [07:59:41]Write i2c OK [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: F0 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: F0 05 00 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: F0 05 00 0B 61 00 F7 5C F1 65 09 [07:59:41]GetLastDocTimeStamp 1710315511 [07:59:41]current date 1710316791 [07:59:41]FM_GetShiftState [07:59:41]SAM_PROTO_GetShiftState [07:59:41]wFMCommunicate request_size=4 [07:59:41]MH_SAM_APDU [07:59:41]CAPDU: 80 13 01 00 [07:59:41]Write to MH i2c: E2 08 00 0C 61 80 13 01 00 00 00 00 00 EA [07:59:41]Write i2c OK [07:59:41]MH_I2C_Read... [07:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:41]Read from MH i2c: E2 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 0E 00 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 0E 00 0C 61 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CF [07:59:41]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:59:41]wFMCommunicate OK [07:59:41]SAM_PROTO_GetShiftState done [07:59:41]FM_GetShiftState done [07:59:41]opened in 1710288279 [07:59:41]opened+sec_in_day 1710374679 [07:59:41]quantity*price = 40004 [07:59:41]sum+1 = 40005 [07:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 17 13.03.2024 07:59 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95322 ФПД: 28605876463721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T075951&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95322&fm=28605876463721&tin=02508201610067®Number=0000000000090555&sum=40000 [07:59:42]StoreToDocumentArchive [07:59:42]shift 328 fd 95322 [07:59:42]save to /storage/0328/doc_00095322 [07:59:42]save last doc name /storage/0328/doc_00095322 to /storage/kkm_last_doc_name [07:59:42]save OK [07:59:42]Clear old archive folders... [07:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:42]tlvbuf is 01A26180 [07:59:42]SAM_PROTO_ClearQueue [07:59:42]wFMCommunicate request_size=4 [07:59:42]MH_SAM_APDU [07:59:42]CAPDU: 80 09 00 00 [07:59:42]Write to MH i2c: E2 08 00 19 61 80 09 00 00 00 00 00 00 EC [07:59:42]Write i2c OK [07:59:42]MH_I2C_Read... [07:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:43]Read from MH i2c: E2 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 03 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 03 00 19 61 00 90 00 EE [07:59:43]RAPDU: 90 00 [07:59:43]wFMCommunicate OK [07:59:43]SAM_PROTO_ClearQueue done [07:59:43]KKMCreateOFDPacket [07:59:43]OFDProtocolAddRootSTLVToBuf [07:59:43]FM_MakeSignedData [07:59:43]FM_MakeSignedData [07:59:43]SAM_PROTO_SignData [07:59:43]wFMCommunicate request_size=4 [07:59:43]MH_SAM_APDU [07:59:43]CAPDU: 80 0D 01 02 [07:59:43]Write to MH i2c: E2 08 00 1A 61 80 0D 01 02 00 00 00 00 F4 [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:43]Read from MH i2c: E2 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 03 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 03 00 1A 61 00 90 00 EF [07:59:43]RAPDU: 90 00 [07:59:43]wFMCommunicate OK [07:59:43]wFMCommunicate request_size=255 [07:59:43]MH_SAM_APDU [07:59:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F7 5C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 74 01 00 35 04 06 00 1A [07:59:43]Write to MH i2c: E2 02 01 1B 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F7 5C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 74 01 00 35 04 06 00 1A 00 00 23 [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:43]Read from MH i2c: E2 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 03 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 03 00 1B 61 00 90 00 F0 [07:59:43]RAPDU: 90 00 [07:59:43]wFMCommunicate OK [07:59:43]wFMCommunicate request_size=10 [07:59:43]MH_SAM_APDU [07:59:43]CAPDU: 80 0D 02 02 05 04 53 1A E8 69 [07:59:43]Write to MH i2c: E2 0D 00 1C 61 80 0D 02 02 05 00 04 53 1A E8 69 00 00 C3 [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:43]Read from MH i2c: E2 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 03 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 03 00 1C 61 00 90 00 F1 [07:59:43]RAPDU: 90 00 [07:59:43]wFMCommunicate OK [07:59:43]wFMCommunicate request_size=4 [07:59:43]MH_SAM_APDU [07:59:43]CAPDU: 80 0D 03 02 [07:59:43]Write to MH i2c: E2 08 00 1D 61 80 0D 03 02 00 00 00 00 F9 [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:43]Read from MH i2c: E2 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 0B 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 0B 00 1D 61 00 2D B7 D3 33 74 BF A1 9C 90 00 54 [07:59:43]RAPDU: 2D B7 D3 33 74 BF A1 9C 90 00 [07:59:43]wFMCommunicate OK [07:59:43]SAM_PROTO_SignData done [07:59:43]FM_MakeSignedData done [07:59:43]CreateOFDProtocolMessage [07:59:43]wFMCommunicate request_size=4 [07:59:43]MH_SAM_APDU [07:59:43]CAPDU: 80 11 00 00 [07:59:43]Write to MH i2c: E2 08 00 1E 61 80 11 00 00 00 00 00 00 F9 [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:43]Read from MH i2c: E2 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 17 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: E2 17 00 1E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 49 [07:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:59:43]wFMCommunicate OK [07:59:43]CreateOFDProtocolMessage done [07:59:43]OFDSenderStorePacket 95322 [07:59:43]StoreOFDPacket docnum=95322 [07:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 10 07 01 69 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F7 5C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 74 01 00 35 04 06 00 1A 04 53 1A E8 69 2D B7 D3 33 74 BF A1 9C [07:59:43]CheckFolder [07:59:43]dirname=/storage/ofd_packets [07:59:43]CheckFolder done [07:59:43]ProducePacketName [07:59:43]name=ofd_packets/00095322 [07:59:43]NVStorageSaveData ofd_packets/00095322 [07:59:43]File name is /storage/ofd_packets/00095322 [07:59:43]Write 301 bytes [07:59:43]NVStorageSaveData done [07:59:43]OFDSenderStorePacket done [07:59:43]KKMCreateOFDPacket done [07:59:43]NVStorageSaveData kkm_last_timestamp [07:59:43]File name is /storage/kkm_last_timestamp [07:59:43]Write 4 bytes [07:59:43]NVStorageSaveData done [07:59:43]ExternCall_PrintAddStr [07:59:43]wPrintStart [07:59:43]Write to MH i2c: 01 00 00 1F 61 80 [07:59:43]Write i2c OK [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: 01 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: 01 07 00 [07:59:43]MH_I2C_Read... [07:59:43]Read from MH i2c: 01 07 00 1F 61 00 80 00 00 00 FF 0F 15 [07:59:43]RasterBufferAndPrint [07:59:43]line Счет N : (1)196298 [07:59:43]line ИНН: 02508201610067 [07:59:43]line Контрольно-Кассовый Чек [07:59:43]line ПРОДАЖА [07:59:43]line ТРК (МРК, ГНК) : 22 [07:59:43]line Товар: 2710124130 [07:59:43]line Аи-92-К-5 [07:59:43]line 6.360 * 62.90 [07:59:43]line = 400.04 [07:59:43]line НДС 12% НСП 1% [07:59:43]line > о реализуемом товаре [07:59:43]line ОКРУГЛЕНИЕ: -0.04 [07:59:43]line ИТОГО: 400.00 [07:59:43]line Внесено: 400.00 [07:59:43]line СДАЧА: 0.00 [07:59:43]line НСП 1% : 3.54 [07:59:43]line НДС 12% : 42.48 [07:59:43]line Наличными: 400.00 [07:59:43]line Безнал.: 0.00 [07:59:43]line Место: АЗС № 6 "Партнер Нефть" [07:59:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [07:59:43]line СНО: Общий режим [07:59:43]line Чек 17 13.03.2024 07:59 [07:59:43]line Смена: 328 ФФД: 1.0 [07:59:43]line ЗНМ: 0300000009 [07:59:43]line РНМ: 0000000000090555 [07:59:43]line Версия ККМ: 001 [07:59:43]line ФМ: 0000000000874811 [07:59:43]line ФД: 95322 [07:59:43]line ФПД: 28605876463721 [07:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T075951&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95322&fm=28605876463721&tin=02508201610067®Number=0000000000090555&sum=40000 [07:59:43]OFD Sender: Processing packet 95322 [packets to send 30, broken 29] [07:59:43]ProducePacketName [07:59:43]name=ofd_packets/00095322 [07:59:43]OFD Sender: To server: pG, [07:59:43]CommunicateWithHost lk.salyk.kg:30040 [07:59:43]ConnectInit lk.salyk.kg [07:59:43]written 0, free lines is 4095 [07:59:43]Connected sock=10 [07:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 10 07 01 69 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 F7 5C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 74 01 00 35 04 06 00 1A 04 53 1A E8 69 2D B7 D3 33 74 BF A1 9C [07:59:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B7 E4 47 00 9B E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5A 74 01 00 F4 03 04 00 4B 08 F1 65 B6 04 01 00 00 8C 2C B6 9D 38 0C 98 08 [07:59:44]CommunicateWithHost err = 0 [07:59:44]CheckOFDResponse [07:59:44]1017 (14) - 77093643461234 [07:59:44]1041 (16) - 0000000000874811 [07:59:44]1040 (4) - 95322 [07:59:44]1012 (4) - 13.03.2024 01:58 [07:59:44]1206 (1) - 0 [07:59:44]OFD Sender: Remove packet 95322 [07:59:44]ProducePacketName [07:59:44]name=ofd_packets/00095322 [07:59:44]NVStorageDeleteData [07:59:44]Write to MH i2c: 01 00 00 4A 61 AB [07:59:44]Write i2c OK [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: 01 [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: 01 07 00 [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: 01 07 00 4A 61 00 80 00 00 00 4E 0D 8D [07:59:44]RasterBufferAndPrint [07:59:44]line [07:59:44]line [07:59:44]line [07:59:44]line [07:59:44]line [07:59:44]written 0, free lines is 3414 [07:59:44]process_action close_receipt done [07:59:44]requested_data is exist [07:59:44]produce_requested_data [07:59:44]requested_item fm.sn is exist - process it [07:59:44]wFMCommunicate request_size=4 [07:59:44]MH_SAM_APDU [07:59:44]CAPDU: 80 11 00 00 [07:59:44]Write to MH i2c: E2 08 00 51 61 80 11 00 00 00 00 00 00 2C [07:59:44]Write i2c OK [07:59:44]MH_I2C_Read... [07:59:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:44]Read from MH i2c: E2 [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: E2 17 00 [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: E2 17 00 51 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7C [07:59:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [07:59:44]wFMCommunicate OK [07:59:44]requested_item fd.num is exist - process it [07:59:44]SAM_PROTO_GetFieldsCounters [07:59:44]wFMCommunicate request_size=4 [07:59:44]MH_SAM_APDU [07:59:44]CAPDU: 80 13 00 00 [07:59:44]Write to MH i2c: E2 08 00 52 61 80 13 00 00 00 00 00 00 2F [07:59:44]Write i2c OK [07:59:44]MH_I2C_Read... [07:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:44]Read from MH i2c: E2 [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: E2 62 00 [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: E2 62 00 52 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5A 74 01 00 0E 04 04 00 48 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 97 [07: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5A 74 01 00 0E 04 04 00 48 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:59:44]wFMCommunicate OK [07:59:44]SAM_PROTO_GetFieldsCounters done [07:59:44]requested_item shift.num is exist - process it [07:59:44]requested_item shift.opened is exist - process it [07:59:44]req_shift_opened [07:59:44]FM_GetShiftState [07:59:44]SAM_PROTO_GetShiftState [07:59:44]wFMCommunicate request_size=4 [07:59:44]MH_SAM_APDU [07:59:44]CAPDU: 80 13 01 00 [07:59:44]Write to MH i2c: E2 08 00 53 61 80 13 01 00 00 00 00 00 31 [07:59:44]Write i2c OK [07:59:44]MH_I2C_Read... [07:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:44]OFD Sender: No OFD packet to send [07:59:44]Read from MH i2c: E2 [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: E2 0E 00 [07:59:44]MH_I2C_Read... [07:59:44]Read from MH i2c: E2 0E 00 53 61 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 16 [07:59:44]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [07:59:44]wFMCommunicate OK [07:59:44]SAM_PROTO_GetShiftState done [07:59:44]FM_GetShiftState done [07:59:44]req_shift_opened done [07:59:44]requested_item shift.open_date is exist - process it [07:59:44]req_shift_open_date [07:59:44]req_shift_open_date done [07:59:44]produce_requested_data done [07:59:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95322,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [07:59:44]process_action_free close_receipt [07:59:44]json_value_free [07:59:44]json_value_free done [07:59:44]process_json_proto returns [07:59:44]Send response to host [07:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95322,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [07:59:44]free response buf [07:59:44]execute_script done [07:59:44]execute_script returns [07:59:44]free content buf [07:59:44]Sock 8.Close socket [07:59:44]Sock 8.Thread stoped [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]accept exits with 9 [08:03:24]New connection [08:03:24]New thread 3066957156 created [08:03:24]Thread 3066813796 joined [08:03:24]Waiting for new connection... [08:03:24] Sock 9.Parse request [08:03:24]Sock 9.Check first char [08:03:24]Sock 9.First char is OK [08:03:24]request: POST /json_proto HTTP/1.0 [08:03:24]Method: POST [08:03:24]URL: /json_proto [08:03:24]Method is POST - this is cgi request [08:03:24]url: /json_proto [08:03:24]query_string will be loaded in cgi processing [08:03:24]execute_cgi json_proto POST (null) [08:03:24]execute_cgi path=json_proto method=POST [08:03:24]POST find Content-Length [08:03:24]Host: 172.17.62.67:8080 [08:03:24]Content-Length: 677 [08:03:24]Content-Type: application/json [08:03:24] [08:03:24]POST finish read [08:03:24]Found Content-Length = 677 [08:03:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196299", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:24]execute_script... [08:03:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196299", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:24]POST & json_proto [08:03:24]process_json_proto [08:03:24]json parsed OK: [08:03:24]protocol is kg_v1.0 [08:03:24]action value=close_receipt [08:03:24]process_action close_receipt [08:03:24]cmd_close_receipt [08:03:24]MH_GetDate [08:03:24]Write to MH i2c: F0 00 00 54 61 A4 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: F0 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: F0 05 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: F0 05 00 54 61 00 D5 5D F1 65 31 [08:03:24]GetLastDocTimeStamp 1710316791 [08:03:24]current date 1710317013 [08:03:24]FM_GetShiftState [08:03:24]SAM_PROTO_GetShiftState [08:03:24]wFMCommunicate request_size=4 [08:03:24]MH_SAM_APDU [08:03:24]CAPDU: 80 13 01 00 [08:03:24]Write to MH i2c: E2 08 00 55 61 80 13 01 00 00 00 00 00 33 [08:03:24]Write i2c OK [08:03:24]MH_I2C_Read... [08:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:24]Read from MH i2c: E2 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 0E 00 [08:03:24]MH_I2C_Read... [08:03:24]Read from MH i2c: E2 0E 00 55 61 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 18 [08:03:24]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:03:24]wFMCommunicate OK [08:03:24]SAM_PROTO_GetShiftState done [08:03:24]FM_GetShiftState done [08:03:24]opened in 1710288279 [08:03:24]opened+sec_in_day 1710374679 [08:03:24]quantity*price = 40004 [08:03:24]sum+1 = 40005 [08:03:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 18 13.03.2024 08:03 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95323 ФПД: 61425285490720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T080333&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95323&fm=61425285490720&tin=02508201610067®Number=0000000000090555&sum=40000 [08:03:25]StoreToDocumentArchive [08:03:25]shift 328 fd 95323 [08:03:25]save to /storage/0328/doc_00095323 [08:03:25]save last doc name /storage/0328/doc_00095323 to /storage/kkm_last_doc_name [08:03:25]save OK [08:03:25]Clear old archive folders... [08:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:25]tlvbuf is 01C31B70 [08:03:25]SAM_PROTO_ClearQueue [08:03:25]wFMCommunicate request_size=4 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 09 00 00 [08:03:25]Write to MH i2c: E2 08 00 62 61 80 09 00 00 00 00 00 00 35 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 62 61 00 90 00 37 [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]SAM_PROTO_ClearQueue done [08:03:25]KKMCreateOFDPacket [08:03:25]OFDProtocolAddRootSTLVToBuf [08:03:25]FM_MakeSignedData [08:03:25]FM_MakeSignedData [08:03:25]SAM_PROTO_SignData [08:03:25]wFMCommunicate request_size=4 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 01 02 [08:03:25]Write to MH i2c: E2 08 00 63 61 80 0D 01 02 00 00 00 00 3D [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 63 61 00 90 00 38 [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]wFMCommunicate request_size=255 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D5 5D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 74 01 00 35 04 06 00 37 [08:03:25]Write to MH i2c: E2 02 01 64 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D5 5D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 74 01 00 35 04 06 00 37 00 00 6A [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 64 61 00 90 00 39 [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]wFMCommunicate request_size=10 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 02 02 05 DD B0 52 68 20 [08:03:25]Write to MH i2c: E2 0D 00 65 61 80 0D 02 02 05 00 DD B0 52 68 20 00 00 B1 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 03 00 65 61 00 90 00 3A [08:03:25]RAPDU: 90 00 [08:03:25]wFMCommunicate OK [08:03:25]wFMCommunicate request_size=4 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 0D 03 02 [08:03:25]Write to MH i2c: E2 08 00 66 61 80 0D 03 02 00 00 00 00 42 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 0B 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 0B 00 66 61 00 9F B1 21 E9 1F 1C 9F FD 90 00 74 [08:03:25]RAPDU: 9F B1 21 E9 1F 1C 9F FD 90 00 [08:03:25]wFMCommunicate OK [08:03:25]SAM_PROTO_SignData done [08:03:25]FM_MakeSignedData done [08:03:25]CreateOFDProtocolMessage [08:03:25]wFMCommunicate request_size=4 [08:03:25]MH_SAM_APDU [08:03:25]CAPDU: 80 11 00 00 [08:03:25]Write to MH i2c: E2 08 00 67 61 80 11 00 00 00 00 00 00 42 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:25]Read from MH i2c: E2 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 17 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: E2 17 00 67 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 92 [08:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:03:25]wFMCommunicate OK [08:03:25]CreateOFDProtocolMessage done [08:03:25]OFDSenderStorePacket 95323 [08:03:25]StoreOFDPacket docnum=95323 [08:03:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E5 8F 07 01 F6 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D5 5D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 74 01 00 35 04 06 00 37 DD B0 52 68 20 9F B1 21 E9 1F 1C 9F FD [08:03:25]CheckFolder [08:03:25]dirname=/storage/ofd_packets [08:03:25]CheckFolder done [08:03:25]ProducePacketName [08:03:25]name=ofd_packets/00095323 [08:03:25]NVStorageSaveData ofd_packets/00095323 [08:03:25]File name is /storage/ofd_packets/00095323 [08:03:25]Write 301 bytes [08:03:25]NVStorageSaveData done [08:03:25]OFDSenderStorePacket done [08:03:25]KKMCreateOFDPacket done [08:03:25]NVStorageSaveData kkm_last_timestamp [08:03:25]File name is /storage/kkm_last_timestamp [08:03:25]Write 4 bytes [08:03:25]NVStorageSaveData done [08:03:25]ExternCall_PrintAddStr [08:03:25]wPrintStart [08:03:25]Write to MH i2c: 01 00 00 68 61 C9 [08:03:25]Write i2c OK [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: 01 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: 01 07 00 [08:03:25]MH_I2C_Read... [08:03:25]Read from MH i2c: 01 07 00 68 61 00 80 00 00 00 FF 0F 5E [08:03:25]RasterBufferAndPrint [08:03:25]line Счет N : (1)196299 [08:03:25]line ИНН: 02508201610067 [08:03:25]line Контрольно-Кассовый Чек [08:03:25]line ПРОДАЖА [08:03:25]line ТРК (МРК, ГНК) : 32 [08:03:25]line Товар: 2710124130 [08:03:25]line Аи-92-К-5 [08:03:25]line 6.360 * 62.90 [08:03:25]line = 400.04 [08:03:25]line НДС 12% НСП 1% [08:03:25]line > о реализуемом товаре [08:03:25]line ОКРУГЛЕНИЕ: -0.04 [08:03:25]line ИТОГО: 400.00 [08:03:25]line Внесено: 400.00 [08:03:25]line СДАЧА: 0.00 [08:03:25]line НСП 1% : 3.54 [08:03:25]line НДС 12% : 42.48 [08:03:25]line Наличными: 400.00 [08:03:25]line Безнал.: 0.00 [08:03:25]line Место: АЗС № 6 "Партнер Нефть" [08:03:25]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:03:25]line СНО: Общий режим [08:03:25]line Чек 18 13.03.2024 08:03 [08:03:25]line Смена: 328 ФФД: 1.0 [08:03:25]line ЗНМ: 0300000009 [08:03:25]line РНМ: 0000000000090555 [08:03:25]line Версия ККМ: 001 [08:03:25]line ФМ: 0000000000874811 [08:03:25]line ФД: 95323 [08:03:25]line ФПД: 61425285490720 [08:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T080333&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95323&fm=61425285490720&tin=02508201610067®Number=0000000000090555&sum=40000 [08:03:26]OFD Sender: Processing packet 95323 [packets to send 30, broken 29] [08:03:26]ProducePacketName [08:03:26]name=ofd_packets/00095323 [08:03:26]OFD Sender: To server: pG, [08:03:26]CommunicateWithHost lk.salyk.kg:30040 [08:03:26]ConnectInit lk.salyk.kg [08:03:26]written 0, free lines is 4095 [08:03:26]Connected sock=10 [08:03:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E5 8F 07 01 F6 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D5 5D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 74 01 00 35 04 06 00 37 DD B0 52 68 20 9F B1 21 E9 1F 1C 9F FD [08:03:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CB E5 47 00 76 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5B 74 01 00 F4 03 04 00 29 09 F1 65 B6 04 01 00 00 E2 5F 4F 7A B6 E0 51 27 [08:03:26]CommunicateWithHost err = 0 [08:03:26]CheckOFDResponse [08:03:26]1017 (14) - 77093643461234 [08:03:26]1041 (16) - 0000000000874811 [08:03:26]1040 (4) - 95323 [08:03:26]1012 (4) - 13.03.2024 02:02 [08:03:26]1206 (1) - 0 [08:03:26]OFD Sender: Remove packet 95323 [08:03:26]ProducePacketName [08:03:26]name=ofd_packets/00095323 [08:03:26]NVStorageDeleteData [08:03:26]Write to MH i2c: 01 00 00 93 61 F4 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 07 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: 01 07 00 93 61 00 80 00 00 00 58 0D E0 [08:03:26]RasterBufferAndPrint [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]line [08:03:26]written 0, free lines is 3422 [08:03:26]process_action close_receipt done [08:03:26]requested_data is exist [08:03:26]produce_requested_data [08:03:26]requested_item fm.sn is exist - process it [08:03:26]wFMCommunicate request_size=4 [08:03:26]MH_SAM_APDU [08:03:26]CAPDU: 80 11 00 00 [08:03:26]Write to MH i2c: E2 08 00 9A 61 80 11 00 00 00 00 00 00 75 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:26]Read from MH i2c: E2 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 17 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 17 00 9A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C5 [08:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:03:26]wFMCommunicate OK [08:03:26]requested_item fd.num is exist - process it [08:03:26]SAM_PROTO_GetFieldsCounters [08:03:26]wFMCommunicate request_size=4 [08:03:26]MH_SAM_APDU [08:03:26]CAPDU: 80 13 00 00 [08:03:26]Write to MH i2c: E2 08 00 9B 61 80 13 00 00 00 00 00 00 78 [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:26]Read from MH i2c: E2 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 62 00 [08:03:26]MH_I2C_Read... [08:03:26]Read from MH i2c: E2 62 00 9B 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5B 74 01 00 0E 04 04 00 48 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 E4 [08:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5B 74 01 00 0E 04 04 00 48 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 [08:03:26]wFMCommunicate OK [08:03:26]SAM_PROTO_GetFieldsCounters done [08:03:26]requested_item shift.num is exist - process it [08:03:26]requested_item shift.opened is exist - process it [08:03:26]req_shift_opened [08:03:26]FM_GetShiftState [08:03:26]SAM_PROTO_GetShiftState [08:03:26]wFMCommunicate request_size=4 [08:03:26]MH_SAM_APDU [08:03:26]CAPDU: 80 13 01 00 [08:03:26]Write to MH i2c: E2 08 00 9C 61 80 13 01 00 00 00 00 00 7A [08:03:26]Write i2c OK [08:03:26]MH_I2C_Read... [08:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:26]Read from MH i2c: E2 [08:03:26]MH_I2C_Read... [08:03:26]OFD Sender: No OFD packet to send [08:03:27]Read from MH i2c: E2 0E 00 [08:03:27]MH_I2C_Read... [08:03:27]Read from MH i2c: E2 0E 00 9C 61 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 5F [08:03:27]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:03:27]wFMCommunicate OK [08:03:27]SAM_PROTO_GetShiftState done [08:03:27]FM_GetShiftState done [08:03:27]req_shift_opened done [08:03:27]requested_item shift.open_date is exist - process it [08:03:27]req_shift_open_date [08:03:27]req_shift_open_date done [08:03:27]produce_requested_data done [08:03:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95323,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:03:27]process_action_free close_receipt [08:03:27]json_value_free [08:03:27]json_value_free done [08:03:27]process_json_proto returns [08:03:27]Send response to host [08:03:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95323,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:03:27]free response buf [08:03:27]execute_script done [08:03:27]execute_script returns [08:03:27]free content buf [08:03:27]Sock 9.Close socket [08:03:27]Sock 9.Thread stoped [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:16]accept exits with 8 [08:04:16]New connection [08:04:16]New thread 3066813796 created [08:04:16]Thread 3066957156 joined [08:04:16]Waiting for new connection... [08:04:16] Sock 8.Parse request [08:04:16]Sock 8.Check first char [08:04:16]Sock 8.First char is OK [08:04:16]request: POST /json_proto HTTP/1.0 [08:04:16]Method: POST [08:04:16]URL: /json_proto [08:04:16]Method is POST - this is cgi request [08:04:16]url: /json_proto [08:04:16]query_string will be loaded in cgi processing [08:04:16]execute_cgi json_proto POST (null) [08:04:16]execute_cgi path=json_proto method=POST [08:04:16]POST find Content-Length [08:04:16]Host: 172.17.62.67:8080 [08:04:16]Content-Length: 670 [08:04:16]Content-Type: application/json [08:04:16] [08:04:16]POST finish read [08:04:16]Found Content-Length = 670 [08:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:16]execute_script... [08:04:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:16]POST & json_proto [08:04:16]process_json_proto [08:04:16]json parsed OK: [08:04:16]protocol is kg_v1.0 [08:04:16]action value=close_receipt [08:04:16]process_action close_receipt [08:04:16]cmd_close_receipt [08:04:16]MH_GetDate [08:04:16]Write to MH i2c: F0 00 00 9D 61 ED [08:04:16]Write i2c OK [08:04:16]MH_I2C_Read... [08:04:16]Read from MH i2c: F0 [08:04:16]MH_I2C_Read... [08:04:16]Read from MH i2c: F0 05 00 [08:04:16]MH_I2C_Read... [08:04:16]Read from MH i2c: F0 05 00 9D 61 00 0A 5E F1 65 B0 [08:04:16]GetLastDocTimeStamp 1710317013 [08:04:16]current date 1710317066 [08:04:16]FM_GetShiftState [08:04:16]SAM_PROTO_GetShiftState [08:04:16]wFMCommunicate request_size=4 [08:04:16]MH_SAM_APDU [08:04:16]CAPDU: 80 13 01 00 [08:04:16]Write to MH i2c: E2 08 00 9E 61 80 13 01 00 00 00 00 00 7C [08:04:16]Write i2c OK [08:04:16]MH_I2C_Read... [08:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:16]Read from MH i2c: E2 [08:04:16]MH_I2C_Read... [08:04:16]Read from MH i2c: E2 0E 00 [08:04:16]MH_I2C_Read... [08:04:16]Read from MH i2c: E2 0E 00 9E 61 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 61 [08:04:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:04:16]wFMCommunicate OK [08:04:16]SAM_PROTO_GetShiftState done [08:04:16]FM_GetShiftState done [08:04:16]opened in 1710288279 [08:04:16]opened+sec_in_day 1710374679 [08:04:16]quantity*price = 50033 [08:04:16]sum+1 = 50035 [08:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 19 13.03.2024 08:04 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95324 ФПД: 254601231710012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T080426&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95324&fm=254601231710012&tin=02508201610067®Number=0000000000090555&sum=50000 [08:04:18]StoreToDocumentArchive [08:04:18]shift 328 fd 95324 [08:04:18]save to /storage/0328/doc_00095324 [08:04:18]save last doc name /storage/0328/doc_00095324 to /storage/kkm_last_doc_name [08:04:18]save OK [08:04:18]Clear old archive folders... [08:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:04:18]tlvbuf is B6F567B0 [08:04:18]SAM_PROTO_ClearQueue [08:04:18]wFMCommunicate request_size=4 [08:04:18]MH_SAM_APDU [08:04:18]CAPDU: 80 09 00 00 [08:04:18]Write to MH i2c: E2 08 00 AB 61 80 09 00 00 00 00 00 00 7E [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:18]Read from MH i2c: E2 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 03 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 03 00 AB 61 00 90 00 80 [08:04:18]RAPDU: 90 00 [08:04:18]wFMCommunicate OK [08:04:18]SAM_PROTO_ClearQueue done [08:04:18]KKMCreateOFDPacket [08:04:18]OFDProtocolAddRootSTLVToBuf [08:04:18]FM_MakeSignedData [08:04:18]FM_MakeSignedData [08:04:18]SAM_PROTO_SignData [08:04:18]wFMCommunicate request_size=4 [08:04:18]MH_SAM_APDU [08:04:18]CAPDU: 80 0D 01 02 [08:04:18]Write to MH i2c: E2 08 00 AC 61 80 0D 01 02 00 00 00 00 86 [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:18]Read from MH i2c: E2 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 03 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 03 00 AC 61 00 90 00 81 [08:04:18]RAPDU: 90 00 [08:04:18]wFMCommunicate OK [08:04:18]wFMCommunicate request_size=255 [08:04:18]MH_SAM_APDU [08:04:18]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 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 0A 5E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 74 01 00 35 04 06 00 [08:04:18]Write to MH i2c: E2 02 01 AD 61 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 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 0A 5E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 74 01 00 35 04 06 00 00 00 C2 [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:18]Read from MH i2c: E2 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 03 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 03 00 AD 61 00 90 00 82 [08:04:18]RAPDU: 90 00 [08:04:18]wFMCommunicate OK [08:04:18]wFMCommunicate request_size=11 [08:04:18]MH_SAM_APDU [08:04:18]CAPDU: 80 0D 02 02 06 E7 8E F7 F9 B7 3C [08:04:18]Write to MH i2c: E2 0E 00 AE 61 80 0D 02 02 06 00 E7 8E F7 F9 B7 3C 00 00 ED [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:18]Read from MH i2c: E2 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 03 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 03 00 AE 61 00 90 00 83 [08:04:18]RAPDU: 90 00 [08:04:18]wFMCommunicate OK [08:04:18]wFMCommunicate request_size=4 [08:04:18]MH_SAM_APDU [08:04:18]CAPDU: 80 0D 03 02 [08:04:18]Write to MH i2c: E2 08 00 AF 61 80 0D 03 02 00 00 00 00 8B [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:18]Read from MH i2c: E2 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 0B 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 0B 00 AF 61 00 0E 8D A5 9B 07 ED 21 B2 90 00 2E [08:04:18]RAPDU: 0E 8D A5 9B 07 ED 21 B2 90 00 [08:04:18]wFMCommunicate OK [08:04:18]SAM_PROTO_SignData done [08:04:18]FM_MakeSignedData done [08:04:18]CreateOFDProtocolMessage [08:04:18]wFMCommunicate request_size=4 [08:04:18]MH_SAM_APDU [08:04:18]CAPDU: 80 11 00 00 [08:04:18]Write to MH i2c: E2 08 00 B0 61 80 11 00 00 00 00 00 00 8B [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:18]Read from MH i2c: E2 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 17 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: E2 17 00 B0 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DB [08:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:04:18]wFMCommunicate OK [08:04:18]CreateOFDProtocolMessage done [08:04:18]OFDSenderStorePacket 95324 [08:04:18]StoreOFDPacket docnum=95324 [08:04:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 48 46 08 01 EA CE 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 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 0A 5E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 74 01 00 35 04 06 00 E7 8E F7 F9 B7 3C 0E 8D A5 9B 07 ED 21 B2 [08:04:18]CheckFolder [08:04:18]dirname=/storage/ofd_packets [08:04:18]CheckFolder done [08:04:18]ProducePacketName [08:04:18]name=ofd_packets/00095324 [08:04:18]NVStorageSaveData ofd_packets/00095324 [08:04:18]File name is /storage/ofd_packets/00095324 [08:04:18]Write 302 bytes [08:04:18]NVStorageSaveData done [08:04:18]OFDSenderStorePacket done [08:04:18]KKMCreateOFDPacket done [08:04:18]NVStorageSaveData kkm_last_timestamp [08:04:18]File name is /storage/kkm_last_timestamp [08:04:18]Write 4 bytes [08:04:18]NVStorageSaveData done [08:04:18]ExternCall_PrintAddStr [08:04:18]wPrintStart [08:04:18]Write to MH i2c: 01 00 00 B1 61 12 [08:04:18]Write i2c OK [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: 01 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: 01 07 00 [08:04:18]MH_I2C_Read... [08:04:18]Read from MH i2c: 01 07 00 B1 61 00 80 00 00 00 FF 0F A7 [08:04:18]RasterBufferAndPrint [08:04:18]line Счет N : (1)196300 [08:04:18]line ИНН: 02508201610067 [08:04:18]line Контрольно-Кассовый Чек [08:04:18]line ПРОДАЖА [08:04:18]line ТРК (МРК, ГНК) : 43 [08:04:18]line Товар: 2710124130 [08:04:18]line SUPER 92-К-5 [08:04:18]line 7.830 * 63.90 [08:04:18]line = 500.34 [08:04:18]line НДС 12% НСП 1% [08:04:18]line > о реализуемом товаре [08:04:18]line ОКРУГЛЕНИЕ: -0.34 [08:04:18]line ИТОГО: 500.00 [08:04:18]line Внесено: 500.00 [08:04:18]line СДАЧА: 0.00 [08:04:18]line НСП 1% : 4.43 [08:04:18]line НДС 12% : 53.13 [08:04:18]line Наличными: 500.00 [08:04:18]line Безнал.: 0.00 [08:04:18]line Место: АЗС № 6 "Партнер Нефть" [08:04:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:04:18]line СНО: Общий режим [08:04:18]line Чек 19 13.03.2024 08:04 [08:04:18]line Смена: 328 ФФД: 1.0 [08:04:18]line ЗНМ: 0300000009 [08:04:18]line РНМ: 0000000000090555 [08:04:18]line Версия ККМ: 001 [08:04:18]line ФМ: 0000000000874811 [08:04:18]line ФД: 95324 [08:04:18]line ФПД: 254601231710012 [08:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T080426&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95324&fm=254601231710012&tin=02508201610067®Number=0000000000090555&sum=50000 [08:04:18]OFD Sender: Processing packet 95324 [packets to send 30, broken 29] [08:04:18]ProducePacketName [08:04:18]name=ofd_packets/00095324 [08:04:18]OFD Sender: To server: pG, [08:04:18]CommunicateWithHost lk.salyk.kg:30040 [08:04:18]ConnectInit lk.salyk.kg [08:04:18]written 0, free lines is 4095 [08:04:18]Connected sock=10 [08:04:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 48 46 08 01 EA CE 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 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 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 0A 5E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 74 01 00 35 04 06 00 E7 8E F7 F9 B7 3C 0E 8D A5 9B 07 ED 21 B2 [08:04:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 8E 78 47 00 E1 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5C 74 01 00 F4 03 04 00 5E 09 F1 65 B6 04 01 00 00 63 5A 4B 95 F7 43 18 61 [08:04:19]CommunicateWithHost err = 0 [08:04:19]CheckOFDResponse [08:04:19]1017 (14) - 77093643461234 [08:04:19]1041 (16) - 0000000000874811 [08:04:19]1040 (4) - 95324 [08:04:19]1012 (4) - 13.03.2024 02:03 [08:04:19]1206 (1) - 0 [08:04:19]OFD Sender: Remove packet 95324 [08:04:19]ProducePacketName [08:04:19]name=ofd_packets/00095324 [08:04:19]NVStorageDeleteData [08:04:19]Write to MH i2c: 01 00 00 DC 61 3D [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: 01 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: 01 07 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: 01 07 00 DC 61 00 80 00 00 00 51 0D 22 [08:04:19]RasterBufferAndPrint [08:04:19]line [08:04:19]line [08:04:19]line [08:04:19]line [08:04:19]line [08:04:19]written 0, free lines is 3417 [08:04:19]process_action close_receipt done [08:04:19]requested_data is exist [08:04:19]produce_requested_data [08:04:19]requested_item fm.sn is exist - process it [08:04:19]wFMCommunicate request_size=4 [08:04:19]MH_SAM_APDU [08:04:19]CAPDU: 80 11 00 00 [08:04:19]Write to MH i2c: E2 08 00 E3 61 80 11 00 00 00 00 00 00 BE [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:19]Read from MH i2c: E2 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 17 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 17 00 E3 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [08:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:04:19]wFMCommunicate OK [08:04:19]requested_item fd.num is exist - process it [08:04:19]SAM_PROTO_GetFieldsCounters [08:04:19]wFMCommunicate request_size=4 [08:04:19]MH_SAM_APDU [08:04:19]CAPDU: 80 13 00 00 [08:04:19]Write to MH i2c: E2 08 00 E4 61 80 13 00 00 00 00 00 00 C1 [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:19]Read from MH i2c: E2 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 62 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 62 00 E4 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 74 01 00 0E 04 04 00 48 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 31 [08:04:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5C 74 01 00 0E 04 04 00 48 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 [08:04:19]wFMCommunicate OK [08:04:19]SAM_PROTO_GetFieldsCounters done [08:04:19]requested_item shift.num is exist - process it [08:04:19]requested_item shift.opened is exist - process it [08:04:19]req_shift_opened [08:04:19]FM_GetShiftState [08:04:19]SAM_PROTO_GetShiftState [08:04:19]wFMCommunicate request_size=4 [08:04:19]MH_SAM_APDU [08:04:19]CAPDU: 80 13 01 00 [08:04:19]Write to MH i2c: E2 08 00 E5 61 80 13 01 00 00 00 00 00 C3 [08:04:19]Write i2c OK [08:04:19]MH_I2C_Read... [08:04:19]OFD Sender: No OFD packet to send [08:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:19]Read from MH i2c: E2 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 0E 00 [08:04:19]MH_I2C_Read... [08:04:19]Read from MH i2c: E2 0E 00 E5 61 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A8 [08:04:19]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:04:19]wFMCommunicate OK [08:04:19]SAM_PROTO_GetShiftState done [08:04:19]FM_GetShiftState done [08:04:19]req_shift_opened done [08:04:19]requested_item shift.open_date is exist - process it [08:04:19]req_shift_open_date [08:04:19]req_shift_open_date done [08:04:19]produce_requested_data done [08:04:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95324,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:04:19]process_action_free close_receipt [08:04:19]json_value_free [08:04:19]json_value_free done [08:04:19]process_json_proto returns [08:04:19]Send response to host [08:04:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95324,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:04:19]free response buf [08:04:19]execute_script done [08:04:19]execute_script returns [08:04:19]free content buf [08:04:19]Sock 8.Close socket [08:04:19]Sock 8.Thread stoped [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:51]accept exits with 9 [08:05:51]New connection [08:05:51]New thread 3066957156 created [08:05:51]Thread 3066813796 joined [08:05:51]Waiting for new connection... [08:05:51] Sock 9.Parse request [08:05:51]Sock 9.Check first char [08:05:51]Sock 9.First char is OK [08:05:51]request: POST /json_proto HTTP/1.0 [08:05:51]Method: POST [08:05:51]URL: /json_proto [08:05:51]Method is POST - this is cgi request [08:05:51]url: /json_proto [08:05:51]query_string will be loaded in cgi processing [08:05:51]execute_cgi json_proto POST (null) [08:05:51]execute_cgi path=json_proto method=POST [08:05:51]POST find Content-Length [08:05:51]Host: 172.17.62.67:8080 [08:05:51]Content-Length: 816 [08:05:51]Content-Type: application/json [08:05:51] [08:05:51]POST finish read [08:05:51]Found Content-Length = 816 [08:05:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196301", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:51]execute_script... [08:05:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196301", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:51]POST & json_proto [08:05:51]process_json_proto [08:05:51]json parsed OK: [08:05:51]protocol is kg_v1.0 [08:05:51]action value=close_receipt [08:05:51]process_action close_receipt [08:05:51]cmd_close_receipt [08:05:51]MH_GetDate [08:05:51]Write to MH i2c: F0 00 00 E6 61 36 [08:05:51]Write i2c OK [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: F0 [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: F0 05 00 [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: F0 05 00 E6 61 00 68 5E F1 65 57 [08:05:51]GetLastDocTimeStamp 1710317066 [08:05:51]current date 1710317160 [08:05:51]FM_GetShiftState [08:05:51]SAM_PROTO_GetShiftState [08:05:51]wFMCommunicate request_size=4 [08:05:51]MH_SAM_APDU [08:05:51]CAPDU: 80 13 01 00 [08:05:51]Write to MH i2c: E2 08 00 E7 61 80 13 01 00 00 00 00 00 C5 [08:05:51]Write i2c OK [08:05:51]MH_I2C_Read... [08:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:51]Read from MH i2c: E2 [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: E2 0E 00 [08:05:51]MH_I2C_Read... [08:05:51]Read from MH i2c: E2 0E 00 E7 61 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 AA [08:05:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:05:51]wFMCommunicate OK [08:05:51]SAM_PROTO_GetShiftState done [08:05:51]FM_GetShiftState done [08:05:51]opened in 1710288279 [08:05:51]opened+sec_in_day 1710374679 [08:05:51]quantity*price = 30003 [08:05:51]sum+1 = 30004 [08:05:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.03 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.03 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 20 13.03.2024 08:06 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95325 ФПД: 64990054372012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T080600&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95325&fm=64990054372012&tin=02508201610067®Number=0000000000090555&sum=30003 [08:05:52]StoreToDocumentArchive [08:05:52]shift 328 fd 95325 [08:05:52]save to /storage/0328/doc_00095325 [08:05:52]save last doc name /storage/0328/doc_00095325 to /storage/kkm_last_doc_name [08:05:52]save OK [08:05:52]Clear old archive folders... [08:05:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:52]tlvbuf is 01A8D6D0 [08:05:52]SAM_PROTO_ClearQueue [08:05:52]wFMCommunicate request_size=4 [08:05:52]MH_SAM_APDU [08:05:52]CAPDU: 80 09 00 00 [08:05:52]Write to MH i2c: E2 08 00 F4 61 80 09 00 00 00 00 00 00 C7 [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:52]Read from MH i2c: E2 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 03 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 03 00 F4 61 00 90 00 C9 [08:05:52]RAPDU: 90 00 [08:05:52]wFMCommunicate OK [08:05:52]SAM_PROTO_ClearQueue done [08:05:52]KKMCreateOFDPacket [08:05:52]OFDProtocolAddRootSTLVToBuf [08:05:52]FM_MakeSignedData [08:05:52]FM_MakeSignedData [08:05:52]SAM_PROTO_SignData [08:05:52]wFMCommunicate request_size=4 [08:05:52]MH_SAM_APDU [08:05:52]CAPDU: 80 0D 01 02 [08:05:52]Write to MH i2c: E2 08 00 F5 61 80 0D 01 02 00 00 00 00 CF [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:52]Read from MH i2c: E2 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 03 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 03 00 F5 61 00 90 00 CA [08:05:52]RAPDU: 90 00 [08:05:52]wFMCommunicate OK [08:05:52]wFMCommunicate request_size=255 [08:05:52]MH_SAM_APDU [08:05:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 68 5E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5D 74 01 00 35 04 06 00 3B [08:05:52]Write to MH i2c: E2 02 01 F6 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 68 5E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5D 74 01 00 35 04 06 00 3B 00 00 39 [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:52]Read from MH i2c: E2 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 03 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 03 00 F6 61 00 90 00 CB [08:05:52]RAPDU: 90 00 [08:05:52]wFMCommunicate OK [08:05:52]wFMCommunicate request_size=10 [08:05:52]MH_SAM_APDU [08:05:52]CAPDU: 80 0D 02 02 05 1B AD 1A D2 AC [08:05:52]Write to MH i2c: E2 0D 00 F7 61 80 0D 02 02 05 00 1B AD 1A D2 AC 00 00 3C [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:52]Read from MH i2c: E2 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 03 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 03 00 F7 61 00 90 00 CC [08:05:52]RAPDU: 90 00 [08:05:52]wFMCommunicate OK [08:05:52]wFMCommunicate request_size=4 [08:05:52]MH_SAM_APDU [08:05:52]CAPDU: 80 0D 03 02 [08:05:52]Write to MH i2c: E2 08 00 F8 61 80 0D 03 02 00 00 00 00 D4 [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:52]Read from MH i2c: E2 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 0B 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 0B 00 F8 61 00 7C 5B 0F B4 B1 F1 A9 2C 90 00 E6 [08:05:52]RAPDU: 7C 5B 0F B4 B1 F1 A9 2C 90 00 [08:05:52]wFMCommunicate OK [08:05:52]SAM_PROTO_SignData done [08:05:52]FM_MakeSignedData done [08:05:52]CreateOFDProtocolMessage [08:05:52]wFMCommunicate request_size=4 [08:05:52]MH_SAM_APDU [08:05:52]CAPDU: 80 11 00 00 [08:05:52]Write to MH i2c: E2 08 00 F9 61 80 11 00 00 00 00 00 00 D4 [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:52]Read from MH i2c: E2 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 17 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: E2 17 00 F9 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [08:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:05:52]wFMCommunicate OK [08:05:52]CreateOFDProtocolMessage done [08:05:52]OFDSenderStorePacket 95325 [08:05:52]StoreOFDPacket docnum=95325 [08:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 90 44 07 01 B4 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 68 5E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5D 74 01 00 35 04 06 00 3B 1B AD 1A D2 AC 7C 5B 0F B4 B1 F1 A9 2C [08:05:52]CheckFolder [08:05:52]dirname=/storage/ofd_packets [08:05:52]CheckFolder done [08:05:52]ProducePacketName [08:05:52]name=ofd_packets/00095325 [08:05:52]NVStorageSaveData ofd_packets/00095325 [08:05:52]File name is /storage/ofd_packets/00095325 [08:05:52]Write 301 bytes [08:05:52]NVStorageSaveData done [08:05:52]OFDSenderStorePacket done [08:05:52]KKMCreateOFDPacket done [08:05:52]NVStorageSaveData kkm_last_timestamp [08:05:52]File name is /storage/kkm_last_timestamp [08:05:52]Write 4 bytes [08:05:52]NVStorageSaveData done [08:05:52]ExternCall_PrintAddStr [08:05:52]wPrintStart [08:05:52]Write to MH i2c: 01 00 00 FA 61 5B [08:05:52]Write i2c OK [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: 01 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: 01 07 00 [08:05:52]MH_I2C_Read... [08:05:52]Read from MH i2c: 01 07 00 FA 61 00 80 00 00 00 FF 0F F0 [08:05:52]RasterBufferAndPrint [08:05:52]line Счет N : (1)196301 [08:05:52]line ИНН: 02508201610067 [08:05:52]line Контрольно-Кассовый Чек [08:05:52]line ПРОДАЖА [08:05:52]line ТРК (МРК, ГНК) : 12 [08:05:52]line Товар: 2710124130 [08:05:52]line Аи-92-К-5 [08:05:52]line 4.770 * 62.90 [08:05:52]line = 300.03 [08:05:52]line НДС 12% НСП 1% [08:05:52]line > о реализуемом товаре [08:05:52]line ИТОГО: 300.03 [08:05:52]line НСП 1% : 2.65 [08:05:52]line НДС 12% : 31.86 [08:05:52]line Наличными: 0.00 [08:05:52]line Безнал.: 300.03 [08:05:52]line Место: АЗС № 6 "Партнер Нефть" [08:05:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:05:52]line СНО: Общий режим [08:05:52]line Чек 20 13.03.2024 08:06 [08:05:52]line Смена: 328 ФФД: 1.0 [08:05:52]line ЗНМ: 0300000009 [08:05:52]line РНМ: 0000000000090555 [08:05:52]line Версия ККМ: 001 [08:05:52]line Платежная система: Бакай Банк [08:05:52]line ФМ: 0000000000874811 [08:05:52]line ФД: 95325 [08:05:52]line ФПД: 64990054372012 [08:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T080600&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95325&fm=64990054372012&tin=02508201610067®Number=0000000000090555&sum=30003 [08:05:53]OFD Sender: Processing packet 95325 [packets to send 30, broken 29] [08:05:53]ProducePacketName [08:05:53]name=ofd_packets/00095325 [08:05:53]OFD Sender: To server: pG, [08:05:53]CommunicateWithHost lk.salyk.kg:30040 [08:05:53]ConnectInit lk.salyk.kg [08:05:53]written 0, free lines is 4095 [08:05:53]Connected sock=10 [08:05:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 90 44 07 01 B4 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 68 5E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5D 74 01 00 35 04 06 00 3B 1B AD 1A D2 AC 7C 5B 0F B4 B1 F1 A9 2C [08:05:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B9 8C 47 00 41 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5D 74 01 00 F4 03 04 00 BC 09 F1 65 B6 04 01 00 00 8A 0C DA 1D 29 8D 61 C0 [08:05:53]CommunicateWithHost err = 0 [08:05:53]CheckOFDResponse [08:05:53]1017 (14) - 77093643461234 [08:05:53]1041 (16) - 0000000000874811 [08:05:53]1040 (4) - 95325 [08:05:53]1012 (4) - 13.03.2024 02:04 [08:05:53]1206 (1) - 0 [08:05:53]OFD Sender: Remove packet 95325 [08:05:53]ProducePacketName [08:05:53]name=ofd_packets/00095325 [08:05:53]NVStorageDeleteData [08:05:53]Write to MH i2c: 01 00 00 24 62 86 [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: 01 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: 01 07 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: 01 07 00 24 62 00 80 00 00 00 71 0D 8B [08:05:53]RasterBufferAndPrint [08:05:53]line [08:05:53]line [08:05:53]line [08:05:53]line [08:05:53]line [08:05:53]written 0, free lines is 3447 [08:05:53]process_action close_receipt done [08:05:53]requested_data is exist [08:05:53]produce_requested_data [08:05:53]requested_item fm.sn is exist - process it [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 11 00 00 [08:05:53]Write to MH i2c: E2 08 00 2B 62 80 11 00 00 00 00 00 00 07 [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 17 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 17 00 2B 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [08:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:05:53]wFMCommunicate OK [08:05:53]requested_item fd.num is exist - process it [08:05:53]SAM_PROTO_GetFieldsCounters [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 13 00 00 [08:05:53]Write to MH i2c: E2 08 00 2C 62 80 13 00 00 00 00 00 00 0A [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 62 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 62 00 2C 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5D 74 01 00 0E 04 04 00 48 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 7E [08:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5D 74 01 00 0E 04 04 00 48 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 [08:05:53]wFMCommunicate OK [08:05:53]SAM_PROTO_GetFieldsCounters done [08:05:53]requested_item shift.num is exist - process it [08:05:53]requested_item shift.opened is exist - process it [08:05:53]req_shift_opened [08:05:53]FM_GetShiftState [08:05:53]SAM_PROTO_GetShiftState [08:05:53]wFMCommunicate request_size=4 [08:05:53]MH_SAM_APDU [08:05:53]CAPDU: 80 13 01 00 [08:05:53]Write to MH i2c: E2 08 00 2D 62 80 13 01 00 00 00 00 00 0C [08:05:53]Write i2c OK [08:05:53]MH_I2C_Read... [08:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:53]Read from MH i2c: E2 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 0E 00 [08:05:53]MH_I2C_Read... [08:05:53]Read from MH i2c: E2 0E 00 2D 62 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F1 [08:05:53]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:05:53]wFMCommunicate OK [08:05:53]SAM_PROTO_GetShiftState done [08:05:53]FM_GetShiftState done [08:05:53]req_shift_opened done [08:05:53]requested_item shift.open_date is exist - process it [08:05:53]req_shift_open_date [08:05:53]req_shift_open_date done [08:05:53]produce_requested_data done [08:05:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95325,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:05:53]process_action_free close_receipt [08:05:53]json_value_free [08:05:53]json_value_free done [08:05:53]process_json_proto returns [08:05:53]Send response to host [08:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95325,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:05:53]free response buf [08:05:53]execute_script done [08:05:53]execute_script returns [08:05:53]free content buf [08:05:53]Sock 9.Close socket [08:05:53]Sock 9.Thread stoped [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:12]recv_with_timeout no data received [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:52]recv_with_timeout no data received [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:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:39]accept exits with 8 [08:10:39]New connection [08:10:39]New thread 3066813796 created [08:10:39]Thread 3066957156 joined [08:10:39]Waiting for new connection... [08:10:39] Sock 8.Parse request [08:10:39]Sock 8.Check first char [08:10:39]Sock 8.First char is OK [08:10:39]request: POST /json_proto HTTP/1.0 [08:10:39]Method: POST [08:10:39]URL: /json_proto [08:10:39]Method is POST - this is cgi request [08:10:39]url: /json_proto [08:10:39]query_string will be loaded in cgi processing [08:10:39]execute_cgi json_proto POST (null) [08:10:39]execute_cgi path=json_proto method=POST [08:10:39]POST find Content-Length [08:10:39]Host: 172.17.62.67:8080 [08:10:39]Content-Length: 679 [08:10:39]Content-Type: application/json [08:10:39] [08:10:39]POST finish read [08:10:39]Found Content-Length = 679 [08:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196302", "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" : 70.90, "quantity" : 42.320, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:39]execute_script... [08:10:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196302", "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" : 70.90, "quantity" : 42.320, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:39]POST & json_proto [08:10:39]process_json_proto [08:10:39]json parsed OK: [08:10:39]protocol is kg_v1.0 [08:10:39]action value=close_receipt [08:10:39]process_action close_receipt [08:10:39]cmd_close_receipt [08:10:39]MH_GetDate [08:10:39]Write to MH i2c: F0 00 00 2E 62 7F [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: F0 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: F0 05 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: F0 05 00 2E 62 00 89 5F F1 65 C2 [08:10:39]GetLastDocTimeStamp 1710317160 [08:10:39]current date 1710317449 [08:10:39]FM_GetShiftState [08:10:39]SAM_PROTO_GetShiftState [08:10:39]wFMCommunicate request_size=4 [08:10:39]MH_SAM_APDU [08:10:39]CAPDU: 80 13 01 00 [08:10:39]Write to MH i2c: E2 08 00 2F 62 80 13 01 00 00 00 00 00 0E [08:10:39]Write i2c OK [08:10:39]MH_I2C_Read... [08:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:39]Read from MH i2c: E2 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: E2 0E 00 [08:10:39]MH_I2C_Read... [08:10:39]Read from MH i2c: E2 0E 00 2F 62 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F3 [08:10:39]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:10:39]wFMCommunicate OK [08:10:39]SAM_PROTO_GetShiftState done [08:10:39]FM_GetShiftState done [08:10:39]opened in 1710288279 [08:10:39]opened+sec_in_day 1710374679 [08:10:39]quantity*price = 300048 [08:10:39]sum+1 = 300050 [08:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 21 13.03.2024 08:10 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95326 ФПД: 241179377260433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T081049&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95326&fm=241179377260433&tin=02508201610067®Number=0000000000090555&sum=300000 [08:10:40]StoreToDocumentArchive [08:10:40]shift 328 fd 95326 [08:10:40]save to /storage/0328/doc_00095326 [08:10:40]save last doc name /storage/0328/doc_00095326 to /storage/kkm_last_doc_name [08:10:40]save OK [08:10:40]Clear old archive folders... [08:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:10:40]tlvbuf is 01B89990 [08:10:40]SAM_PROTO_ClearQueue [08:10:40]wFMCommunicate request_size=4 [08:10:40]MH_SAM_APDU [08:10:40]CAPDU: 80 09 00 00 [08:10:40]Write to MH i2c: E2 08 00 3C 62 80 09 00 00 00 00 00 00 10 [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:40]Read from MH i2c: E2 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 03 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 03 00 3C 62 00 90 00 12 [08:10:40]RAPDU: 90 00 [08:10:40]wFMCommunicate OK [08:10:40]SAM_PROTO_ClearQueue done [08:10:40]KKMCreateOFDPacket [08:10:40]OFDProtocolAddRootSTLVToBuf [08:10:40]FM_MakeSignedData [08:10:40]FM_MakeSignedData [08:10:40]SAM_PROTO_SignData [08:10:40]wFMCommunicate request_size=4 [08:10:40]MH_SAM_APDU [08:10:40]CAPDU: 80 0D 01 02 [08:10:40]Write to MH i2c: E2 08 00 3D 62 80 0D 01 02 00 00 00 00 18 [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:40]Read from MH i2c: E2 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 03 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 03 00 3D 62 00 90 00 13 [08:10:40]RAPDU: 90 00 [08:10:40]wFMCommunicate OK [08:10:40]wFMCommunicate request_size=255 [08:10:40]MH_SAM_APDU [08:10:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 15 00 00 00 F4 03 04 00 89 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5E 74 01 00 35 04 06 00 DB 59 F3 1B [08:10:40]Write to MH i2c: E2 02 01 3E 62 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 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 15 00 00 00 F4 03 04 00 89 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5E 74 01 00 35 04 06 00 DB 59 F3 1B 00 00 D8 [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 3E 62 00 90 00 14 [08:10:41]RAPDU: 90 00 [08:10:41]wFMCommunicate OK [08:10:41]wFMCommunicate request_size=7 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 0D 02 02 02 D7 91 [08:10:41]Write to MH i2c: E2 0A 00 3F 62 80 0D 02 02 02 00 D7 91 00 00 87 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 03 00 3F 62 00 90 00 15 [08:10:41]RAPDU: 90 00 [08:10:41]wFMCommunicate OK [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 0D 03 02 [08:10:41]Write to MH i2c: E2 08 00 40 62 80 0D 03 02 00 00 00 00 1D [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 0B 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 0B 00 40 62 00 9C 4E 42 84 91 F4 C5 D3 90 00 EB [08:10:41]RAPDU: 9C 4E 42 84 91 F4 C5 D3 90 00 [08:10:41]wFMCommunicate OK [08:10:41]SAM_PROTO_SignData done [08:10:41]FM_MakeSignedData done [08:10:41]CreateOFDProtocolMessage [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 11 00 00 [08:10:41]Write to MH i2c: E2 08 00 41 62 80 11 00 00 00 00 00 00 1D [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:41]Read from MH i2c: E2 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 17 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: E2 17 00 41 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6D [08:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:10:41]wFMCommunicate OK [08:10:41]CreateOFDProtocolMessage done [08:10:41]OFDSenderStorePacket 95326 [08:10:41]StoreOFDPacket docnum=95326 [08:10:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 5A 17 04 01 FE 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 15 00 00 00 F4 03 04 00 89 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5E 74 01 00 35 04 06 00 DB 59 F3 1B D7 91 9C 4E 42 84 91 F4 C5 D3 [08:10:41]CheckFolder [08:10:41]dirname=/storage/ofd_packets [08:10:41]CheckFolder done [08:10:41]ProducePacketName [08:10:41]name=ofd_packets/00095326 [08:10:41]NVStorageSaveData ofd_packets/00095326 [08:10:41]File name is /storage/ofd_packets/00095326 [08:10:41]Write 298 bytes [08:10:41]NVStorageSaveData done [08:10:41]OFDSenderStorePacket done [08:10:41]KKMCreateOFDPacket done [08:10:41]NVStorageSaveData kkm_last_timestamp [08:10:41]File name is /storage/kkm_last_timestamp [08:10:41]Write 4 bytes [08:10:41]NVStorageSaveData done [08:10:41]ExternCall_PrintAddStr [08:10:41]wPrintStart [08:10:41]Write to MH i2c: 01 00 00 42 62 A4 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: 01 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: 01 07 00 [08:10:41]MH_I2C_Read... [08:10:41]Read from MH i2c: 01 07 00 42 62 00 80 00 00 00 FF 0F 39 [08:10:41]RasterBufferAndPrint [08:10:41]line Счет N : (1)196302 [08:10:41]line ИНН: 02508201610067 [08:10:41]line Контрольно-Кассовый Чек [08:10:41]line ПРОДАЖА [08:10:41]line ТРК (МРК, ГНК) : 51 [08:10:41]line Товар: 2710194210 [08:10:41]line ДТ-К-5 [08:10:41]line 42.320 * 70.90 [08:10:41]line = 3000.49 [08:10:41]line НДС 12% НСП 1% [08:10:41]line > о реализуемом товаре [08:10:41]line ОКРУГЛЕНИЕ: -0.49 [08:10:41]line ИТОГО: 3000.00 [08:10:41]line Внесено: 3000.00 [08:10:41]line СДАЧА: 0.00 [08:10:41]line НСП 1% : 26.55 [08:10:41]line НДС 12% : 318.64 [08:10:41]line Наличными: 3000.00 [08:10:41]line Безнал.: 0.00 [08:10:41]line Место: АЗС № 6 "Партнер Нефть" [08:10:41]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:10:41]line СНО: Общий режим [08:10:41]line Чек 21 13.03.2024 08:10 [08:10:41]line Смена: 328 ФФД: 1.0 [08:10:41]line ЗНМ: 0300000009 [08:10:41]line РНМ: 0000000000090555 [08:10:41]line Версия ККМ: 001 [08:10:41]line ФМ: 0000000000874811 [08:10:41]line ФД: 95326 [08:10:41]line ФПД: 241179377260433 [08:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T081049&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95326&fm=241179377260433&tin=02508201610067®Number=0000000000090555&sum=300000 [08:10:41]OFD Sender: Processing packet 95326 [packets to send 30, broken 29] [08:10:41]ProducePacketName [08:10:41]name=ofd_packets/00095326 [08:10:41]OFD Sender: To server: pG, [08:10:41]CommunicateWithHost lk.salyk.kg:30040 [08:10:41]ConnectInit lk.salyk.kg [08:10:41]written 0, free lines is 4095 [08:10:41]Connected sock=10 [08:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 5A 17 04 01 FE 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 15 00 00 00 F4 03 04 00 89 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5E 74 01 00 35 04 06 00 DB 59 F3 1B D7 91 9C 4E 42 84 91 F4 C5 D3 [08:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 79 19 47 00 64 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5E 74 01 00 F4 03 04 00 DC 0A F1 65 B6 04 01 00 00 4F F4 90 7B E4 EF 7B 3D [08:10:41]CommunicateWithHost err = 0 [08:10:41]CheckOFDResponse [08:10:41]1017 (14) - 77093643461234 [08:10:41]1041 (16) - 0000000000874811 [08:10:41]1040 (4) - 95326 [08:10:41]1012 (4) - 13.03.2024 02:09 [08:10:41]1206 (1) - 0 [08:10:41]OFD Sender: Remove packet 95326 [08:10:41]ProducePacketName [08:10:41]name=ofd_packets/00095326 [08:10:41]NVStorageDeleteData [08:10:42]Write to MH i2c: 01 00 00 6D 62 CF [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 6D 62 00 80 00 00 00 4D 0D B0 [08:10:42]RasterBufferAndPrint [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]written 0, free lines is 3411 [08:10:42]process_action close_receipt done [08:10:42]requested_data is exist [08:10:42]produce_requested_data [08:10:42]requested_item fm.sn is exist - process it [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 11 00 00 [08:10:42]Write to MH i2c: E2 08 00 74 62 80 11 00 00 00 00 00 00 50 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:42]Read from MH i2c: E2 17 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 17 00 74 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [08:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:10:42]wFMCommunicate OK [08:10:42]requested_item fd.num is exist - process it [08:10:42]SAM_PROTO_GetFieldsCounters [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 13 00 00 [08:10:42]Write to MH i2c: E2 08 00 75 62 80 13 00 00 00 00 00 00 53 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 62 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 62 00 75 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5E 74 01 00 0E 04 04 00 48 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 CB [08:10:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5E 74 01 00 0E 04 04 00 48 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:10:42]wFMCommunicate OK [08:10:42]SAM_PROTO_GetFieldsCounters done [08:10:42]requested_item shift.num is exist - process it [08:10:42]requested_item shift.opened is exist - process it [08:10:42]req_shift_opened [08:10:42]FM_GetShiftState [08:10:42]SAM_PROTO_GetShiftState [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 13 01 00 [08:10:42]Write to MH i2c: E2 08 00 76 62 80 13 01 00 00 00 00 00 55 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]OFD Sender: No OFD packet to send [08:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 0E 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 0E 00 76 62 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3A [08:10:42]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:10:42]wFMCommunicate OK [08:10:42]SAM_PROTO_GetShiftState done [08:10:42]FM_GetShiftState done [08:10:42]req_shift_opened done [08:10:42]requested_item shift.open_date is exist - process it [08:10:42]req_shift_open_date [08:10:42]req_shift_open_date done [08:10:42]produce_requested_data done [08:10:42]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95326,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:10:42]process_action_free close_receipt [08:10:42]json_value_free [08:10:42]json_value_free done [08:10:42]process_json_proto returns [08:10:42]Send response to host [08:10:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95326,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:10:42]free response buf [08:10:42]execute_script done [08:10:42]execute_script returns [08:10:42]free content buf [08:10:42]Sock 8.Close socket [08:10:42]Sock 8.Thread stoped [08:10:46]accept exits with 9 [08:10:46]New connection [08:10:46]New thread 3066957156 created [08:10:46]Thread 3066813796 joined [08:10:46]Waiting for new connection... [08:10:46] Sock 9.Parse request [08:10:46]Sock 9.Check first char [08:10:46]Sock 9.First char is OK [08:10:46]request: POST /json_proto HTTP/1.0 [08:10:46]Method: POST [08:10:46]URL: /json_proto [08:10:46]Method is POST - this is cgi request [08:10:46]url: /json_proto [08:10:46]query_string will be loaded in cgi processing [08:10:46]execute_cgi json_proto POST (null) [08:10:46]execute_cgi path=json_proto method=POST [08:10:46]POST find Content-Length [08:10:46]Host: 172.17.62.67:8080 [08:10:46]Content-Length: 735 [08:10:46]Content-Type: application/json [08:10:46] [08:10:46]POST finish read [08:10:46]Found Content-Length = 735 [08:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95326, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196302", "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" : 70.90, "quantity" : 42.320, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:46]execute_script... [08:10:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95326, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196302", "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" : 70.90, "quantity" : 42.320, "sum" : 3000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:46]POST & json_proto [08:10:46]process_json_proto [08:10:46]json parsed OK: [08:10:46]protocol is kg_v1.0 [08:10:46]action value=close_receipt [08:10:46]process_action close_receipt [08:10:46]cmd_close_receipt [08:10:46]MH_GetDate [08:10:46]Write to MH i2c: F0 00 00 77 62 C8 [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: F0 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: F0 05 00 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: F0 05 00 77 62 00 90 5F F1 65 12 [08:10:46]GetLastDocTimeStamp 1710317449 [08:10:46]current date 1710317456 [08:10:46]FM_GetShiftState [08:10:46]SAM_PROTO_GetShiftState [08:10:46]wFMCommunicate request_size=4 [08:10:46]MH_SAM_APDU [08:10:46]CAPDU: 80 13 01 00 [08:10:46]Write to MH i2c: E2 08 00 78 62 80 13 01 00 00 00 00 00 57 [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:46]Read from MH i2c: E2 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: E2 0E 00 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: E2 0E 00 78 62 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3C [08:10:46]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:10:46]wFMCommunicate OK [08:10:46]SAM_PROTO_GetShiftState done [08:10:46]FM_GetShiftState done [08:10:46]opened in 1710288279 [08:10:46]opened+sec_in_day 1710374679 [08:10:46]quantity*price = 300048 [08:10:46]sum+1 = 300050 [08:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 22 13.03.2024 08:10 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95326 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95327 ФПД: 159594785278548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T081056&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95327&fm=159594785278548&tin=02508201610067®Number=0000000000090555&sum=300000 [08:10:48]StoreToDocumentArchive [08:10:48]shift 328 fd 95327 [08:10:48]save to /storage/0328/doc_00095327 [08:10:48]save last doc name /storage/0328/doc_00095327 to /storage/kkm_last_doc_name [08:10:48]save OK [08:10:48]Clear old archive folders... [08:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:10:48]tlvbuf is 01A18560 [08:10:48]SAM_PROTO_ClearQueue [08:10:48]wFMCommunicate request_size=4 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 09 00 00 [08:10:48]Write to MH i2c: E2 08 00 87 62 80 09 00 00 00 00 00 00 5B [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:48]Read from MH i2c: E2 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 87 62 00 90 00 5D [08:10:48]RAPDU: 90 00 [08:10:48]wFMCommunicate OK [08:10:48]SAM_PROTO_ClearQueue done [08:10:48]KKMCreateOFDPacket [08:10:48]OFDProtocolAddRootSTLVToBuf [08:10:48]FM_MakeSignedData [08:10:48]FM_MakeSignedData [08:10:48]SAM_PROTO_SignData [08:10:48]wFMCommunicate request_size=4 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 0D 01 02 [08:10:48]Write to MH i2c: E2 08 00 88 62 80 0D 01 02 00 00 00 00 63 [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:48]Read from MH i2c: E2 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 88 62 00 90 00 5E [08:10:48]RAPDU: 90 00 [08:10:48]wFMCommunicate OK [08:10:48]wFMCommunicate request_size=255 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 16 00 00 00 F4 03 04 00 90 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 5E 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [08:10:48]Write to MH i2c: E2 02 01 89 62 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 16 00 00 00 F4 03 04 00 90 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 5E 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 DB [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:48]Read from MH i2c: E2 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 89 62 00 90 00 5F [08:10:48]RAPDU: 90 00 [08:10:48]wFMCommunicate OK [08:10:48]wFMCommunicate request_size=35 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 74 01 00 35 04 06 00 91 26 8E 7C 0A 54 [08:10:48]Write to MH i2c: E2 26 00 8A 62 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 74 01 00 35 04 06 00 91 26 8E 7C 0A 54 00 00 49 [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:48]Read from MH i2c: E2 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 03 00 8A 62 00 90 00 60 [08:10:48]RAPDU: 90 00 [08:10:48]wFMCommunicate OK [08:10:48]wFMCommunicate request_size=4 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 0D 03 02 [08:10:48]Write to MH i2c: E2 08 00 8B 62 80 0D 03 02 00 00 00 00 68 [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:48]Read from MH i2c: E2 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 0B 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 0B 00 8B 62 00 4A 70 35 66 F5 64 56 CC 90 00 39 [08:10:48]RAPDU: 4A 70 35 66 F5 64 56 CC 90 00 [08:10:48]wFMCommunicate OK [08:10:48]SAM_PROTO_SignData done [08:10:48]FM_MakeSignedData done [08:10:48]CreateOFDProtocolMessage [08:10:48]wFMCommunicate request_size=4 [08:10:48]MH_SAM_APDU [08:10:48]CAPDU: 80 11 00 00 [08:10:48]Write to MH i2c: E2 08 00 8C 62 80 11 00 00 00 00 00 00 68 [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:48]Read from MH i2c: E2 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 17 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: E2 17 00 8C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B8 [08:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:10:48]wFMCommunicate OK [08:10:48]CreateOFDProtocolMessage done [08:10:48]OFDSenderStorePacket 95327 [08:10:48]StoreOFDPacket docnum=95327 [08:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 7F 25 20 01 1A A4 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 16 00 00 00 F4 03 04 00 90 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 5E 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 74 01 00 35 04 06 00 91 26 8E 7C 0A 54 4A 70 35 66 F5 64 56 CC [08:10:48]CheckFolder [08:10:48]dirname=/storage/ofd_packets [08:10:48]CheckFolder done [08:10:48]ProducePacketName [08:10:48]name=ofd_packets/00095327 [08:10:48]NVStorageSaveData ofd_packets/00095327 [08:10:48]File name is /storage/ofd_packets/00095327 [08:10:48]Write 326 bytes [08:10:48]NVStorageSaveData done [08:10:48]OFDSenderStorePacket done [08:10:48]KKMCreateOFDPacket done [08:10:48]NVStorageSaveData kkm_last_timestamp [08:10:48]File name is /storage/kkm_last_timestamp [08:10:48]Write 4 bytes [08:10:48]NVStorageSaveData done [08:10:48]ExternCall_PrintAddStr [08:10:48]wPrintStart [08:10:48]Write to MH i2c: 01 00 00 8D 62 EF [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: 01 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: 01 07 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: 01 07 00 8D 62 00 80 00 00 00 FF 0F 84 [08:10:48]RasterBufferAndPrint [08:10:48]line Счет N : (1)196302 [08:10:48]line ИНН: 02508201610067 [08:10:48]line Контрольно-Кассовый Чек [08:10:48]line ВОЗВРАТ ПРОДАЖИ [08:10:48]line ТРК (МРК, ГНК) : 51 [08:10:48]line Товар: 2710194210 [08:10:48]line ДТ-К-5 [08:10:48]line 42.320 * 70.90 [08:10:48]line = 3000.49 [08:10:48]line НДС 12% НСП 1% [08:10:48]line > о реализуемом товаре [08:10:48]line ОКРУГЛЕНИЕ: -0.49 [08:10:48]line ИТОГО: 3000.00 [08:10:48]line НСП 1% : 26.55 [08:10:48]line НДС 12% : 318.64 [08:10:48]line Наличными: 3000.00 [08:10:48]line Безнал.: 0.00 [08:10:48]line Место: АЗС № 6 "Партнер Нефть" [08:10:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:10:48]line СНО: Общий режим [08:10:48]line Чек 22 13.03.2024 08:10 [08:10:48]line Смена: 328 ФФД: 1.0 [08:10:48]line ЗНМ: 0300000009 [08:10:48]line РНМ: 0000000000090555 [08:10:48]line Версия ККМ: 001 [08:10:48]line ФД осн.: 95326 [08:10:48]line ФМ осн.: 0000000000874811 [08:10:48]line ФМ: 0000000000874811 [08:10:48]line ФД: 95327 [08:10:48]line ФПД: 159594785278548 [08:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T081056&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95327&fm=159594785278548&tin=02508201610067®Number=0000000000090555&sum=300000 [08:10:48]written 0, free lines is 4095 [08:10:48]OFD Sender: Processing packet 95327 [packets to send 30, broken 29] [08:10:48]ProducePacketName [08:10:48]name=ofd_packets/00095327 [08:10:48]OFD Sender: To server: pG, [08:10:48]CommunicateWithHost lk.salyk.kg:30040 [08:10:48]ConnectInit lk.salyk.kg [08:10:48]Connected sock=10 [08:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 7F 25 20 01 1A A4 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 A5 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 11 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 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 16 00 00 00 F4 03 04 00 90 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 5E 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 74 01 00 35 04 06 00 91 26 8E 7C 0A 54 4A 70 35 66 F5 64 56 CC [08:10:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 24 41 47 00 D3 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 5F 74 01 00 F4 03 04 00 E4 0A F1 65 B6 04 01 00 00 FE 12 AA 85 4D 5F 4A 0C [08:10:49]CommunicateWithHost err = 0 [08:10:49]CheckOFDResponse [08:10:49]1017 (14) - 77093643461234 [08:10:49]1041 (16) - 0000000000874811 [08:10:49]1040 (4) - 95327 [08:10:49]1012 (4) - 13.03.2024 02:09 [08:10:49]1206 (1) - 0 [08:10:49]OFD Sender: Remove packet 95327 [08:10:49]ProducePacketName [08:10:49]name=ofd_packets/00095327 [08:10:49]NVStorageDeleteData [08:10:49]Write to MH i2c: 01 00 00 B8 62 1A [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 07 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 07 00 B8 62 00 80 00 00 00 5B 0D 09 [08:10:49]RasterBufferAndPrint [08:10:49]line [08:10:49]line [08:10:49]line [08:10:49]line [08:10:49]line [08:10:49]written 0, free lines is 3431 [08:10:49]process_action close_receipt done [08:10:49]requested_data is exist [08:10:49]produce_requested_data [08:10:49]requested_item fm.sn is exist - process it [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 11 00 00 [08:10:49]Write to MH i2c: E2 08 00 BF 62 80 11 00 00 00 00 00 00 9B [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 17 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 17 00 BF 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EB [08:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:10:49]wFMCommunicate OK [08:10:49]requested_item fd.num is exist - process it [08:10:49]SAM_PROTO_GetFieldsCounters [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 13 00 00 [08:10:49]Write to MH i2c: E2 08 00 C0 62 80 13 00 00 00 00 00 00 9E [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 62 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 62 00 C0 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5F 74 01 00 0E 04 04 00 48 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 1A [08:10:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 5F 74 01 00 0E 04 04 00 48 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:10:49]wFMCommunicate OK [08:10:49]SAM_PROTO_GetFieldsCounters done [08:10:49]requested_item shift.num is exist - process it [08:10:49]requested_item shift.opened is exist - process it [08:10:49]req_shift_opened [08:10:49]FM_GetShiftState [08:10:49]SAM_PROTO_GetShiftState [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 13 01 00 [08:10:49]Write to MH i2c: E2 08 00 C1 62 80 13 01 00 00 00 00 00 A0 [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0E 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0E 00 C1 62 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 85 [08:10:49]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:10:49]wFMCommunicate OK [08:10:49]SAM_PROTO_GetShiftState done [08:10:49]FM_GetShiftState done [08:10:49]req_shift_opened done [08:10:49]requested_item shift.open_date is exist - process it [08:10:49]req_shift_open_date [08:10:49]req_shift_open_date done [08:10:49]produce_requested_data done [08:10:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95327,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:10:49]process_action_free close_receipt [08:10:49]json_value_free [08:10:49]json_value_free done [08:10:49]process_json_proto returns [08:10:49]Send response to host [08:10:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95327,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:10:49]free response buf [08:10:49]execute_script done [08:10:49]execute_script returns [08:10:49]free content buf [08:10:49]Sock 9.Close socket [08:10:49]Sock 9.Thread stoped [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]accept exits with 8 [08:11:49]New connection [08:11:49]New thread 3066813796 created [08:11:49]Thread 3066957156 joined [08:11:49]Waiting for new connection... [08:11:49] Sock 8.Parse request [08:11:49]Sock 8.Check first char [08:11:49]Sock 8.First char is OK [08:11:49]request: POST /json_proto HTTP/1.0 [08:11:49]Method: POST [08:11:49]URL: /json_proto [08:11:49]Method is POST - this is cgi request [08:11:49]url: /json_proto [08:11:49]query_string will be loaded in cgi processing [08:11:49]execute_cgi json_proto POST (null) [08:11:49]execute_cgi path=json_proto method=POST [08:11:49]POST find Content-Length [08:11:49]Host: 172.17.62.67:8080 [08:11:49]Content-Length: 675 [08:11:49]Content-Type: application/json [08:11:49] [08:11:49]POST finish read [08:11:49]Found Content-Length = 675 [08:11:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:49]execute_script... [08:11:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:49]POST & json_proto [08:11:49]process_json_proto [08:11:49]json parsed OK: [08:11:49]protocol is kg_v1.0 [08:11:49]action value=close_receipt [08:11:49]process_action close_receipt [08:11:49]cmd_close_receipt [08:11:49]MH_GetDate [08:11:49]Write to MH i2c: F0 00 00 C2 62 13 [08:11:49]Write i2c OK [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: F0 [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: F0 05 00 [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: F0 05 00 C2 62 00 CE 5F F1 65 9B [08:11:49]GetLastDocTimeStamp 1710317456 [08:11:49]current date 1710317518 [08:11:49]FM_GetShiftState [08:11:49]SAM_PROTO_GetShiftState [08:11:49]wFMCommunicate request_size=4 [08:11:49]MH_SAM_APDU [08:11:49]CAPDU: 80 13 01 00 [08:11:49]Write to MH i2c: E2 08 00 C3 62 80 13 01 00 00 00 00 00 A2 [08:11:49]Write i2c OK [08:11:49]MH_I2C_Read... [08:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:49]Read from MH i2c: E2 [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: E2 0E 00 [08:11:49]MH_I2C_Read... [08:11:49]Read from MH i2c: E2 0E 00 C3 62 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 87 [08:11:49]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:11:49]wFMCommunicate OK [08:11:49]SAM_PROTO_GetShiftState done [08:11:49]FM_GetShiftState done [08:11:49]opened in 1710288279 [08:11:49]opened+sec_in_day 1710374679 [08:11:49]quantity*price = 100003 [08:11:49]sum+1 = 100005 [08:11:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 23 13.03.2024 08:11 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95328 ФПД: 156661303514057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T081158&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95328&fm=156661303514057&tin=02508201610067®Number=0000000000090555&sum=100000 [08:11:50]StoreToDocumentArchive [08:11:50]shift 328 fd 95328 [08:11:50]save to /storage/0328/doc_00095328 [08:11:50]save last doc name /storage/0328/doc_00095328 to /storage/kkm_last_doc_name [08:11:50]save OK [08:11:50]Clear old archive folders... [08:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:11:50]tlvbuf is 01A287D0 [08:11:50]SAM_PROTO_ClearQueue [08:11:50]wFMCommunicate request_size=4 [08:11:50]MH_SAM_APDU [08:11:50]CAPDU: 80 09 00 00 [08:11:50]Write to MH i2c: E2 08 00 D0 62 80 09 00 00 00 00 00 00 A4 [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:50]Read from MH i2c: E2 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 03 00 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 03 00 D0 62 00 90 00 A6 [08:11:50]RAPDU: 90 00 [08:11:50]wFMCommunicate OK [08:11:50]SAM_PROTO_ClearQueue done [08:11:50]KKMCreateOFDPacket [08:11:50]OFDProtocolAddRootSTLVToBuf [08:11:50]FM_MakeSignedData [08:11:50]FM_MakeSignedData [08:11:50]SAM_PROTO_SignData [08:11:50]wFMCommunicate request_size=4 [08:11:50]MH_SAM_APDU [08:11:50]CAPDU: 80 0D 01 02 [08:11:50]Write to MH i2c: E2 08 00 D1 62 80 0D 01 02 00 00 00 00 AC [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:50]Read from MH i2c: E2 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 03 00 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 03 00 D1 62 00 90 00 A7 [08:11:50]RAPDU: 90 00 [08:11:50]wFMCommunicate OK [08:11:50]wFMCommunicate request_size=255 [08:11:50]MH_SAM_APDU [08:11:50]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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CE 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 74 01 00 35 04 06 00 [08:11:50]Write to MH i2c: E2 02 01 D2 62 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CE 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 74 01 00 35 04 06 00 00 00 0A [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:50]Read from MH i2c: E2 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 03 00 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 03 00 D2 62 00 90 00 A8 [08:11:50]RAPDU: 90 00 [08:11:50]wFMCommunicate OK [08:11:50]wFMCommunicate request_size=11 [08:11:50]MH_SAM_APDU [08:11:50]CAPDU: 80 0D 02 02 06 8E 7B 8D 58 93 C9 [08:11:50]Write to MH i2c: E2 0E 00 D3 62 80 0D 02 02 06 00 8E 7B 8D 58 93 C9 00 00 05 [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:50]Read from MH i2c: E2 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 03 00 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 03 00 D3 62 00 90 00 A9 [08:11:50]RAPDU: 90 00 [08:11:50]wFMCommunicate OK [08:11:50]wFMCommunicate request_size=4 [08:11:50]MH_SAM_APDU [08:11:50]CAPDU: 80 0D 03 02 [08:11:50]Write to MH i2c: E2 08 00 D4 62 80 0D 03 02 00 00 00 00 B1 [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:50]Read from MH i2c: E2 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 0B 00 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 0B 00 D4 62 00 20 8B E7 AC 69 BD 0A 37 90 00 57 [08:11:50]RAPDU: 20 8B E7 AC 69 BD 0A 37 90 00 [08:11:50]wFMCommunicate OK [08:11:50]SAM_PROTO_SignData done [08:11:50]FM_MakeSignedData done [08:11:50]CreateOFDProtocolMessage [08:11:50]wFMCommunicate request_size=4 [08:11:50]MH_SAM_APDU [08:11:50]CAPDU: 80 11 00 00 [08:11:50]Write to MH i2c: E2 08 00 D5 62 80 11 00 00 00 00 00 00 B1 [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:50]Read from MH i2c: E2 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 17 00 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: E2 17 00 D5 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 01 [08:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:11:50]wFMCommunicate OK [08:11:50]CreateOFDProtocolMessage done [08:11:50]OFDSenderStorePacket 95328 [08:11:50]StoreOFDPacket docnum=95328 [08:11:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 74 46 08 01 90 0E 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CE 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 74 01 00 35 04 06 00 8E 7B 8D 58 93 C9 20 8B E7 AC 69 BD 0A 37 [08:11:50]CheckFolder [08:11:50]dirname=/storage/ofd_packets [08:11:50]CheckFolder done [08:11:50]ProducePacketName [08:11:50]name=ofd_packets/00095328 [08:11:50]NVStorageSaveData ofd_packets/00095328 [08:11:50]File name is /storage/ofd_packets/00095328 [08:11:50]Write 302 bytes [08:11:50]NVStorageSaveData done [08:11:50]OFDSenderStorePacket done [08:11:50]KKMCreateOFDPacket done [08:11:50]NVStorageSaveData kkm_last_timestamp [08:11:50]File name is /storage/kkm_last_timestamp [08:11:50]Write 4 bytes [08:11:50]NVStorageSaveData done [08:11:50]ExternCall_PrintAddStr [08:11:50]wPrintStart [08:11:50]Write to MH i2c: 01 00 00 D6 62 38 [08:11:50]Write i2c OK [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: 01 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: 01 07 00 [08:11:50]MH_I2C_Read... [08:11:50]Read from MH i2c: 01 07 00 D6 62 00 80 00 00 00 FF 0F CD [08:11:50]RasterBufferAndPrint [08:11:50]line Счет N : (1)196304 [08:11:50]line ИНН: 02508201610067 [08:11:50]line Контрольно-Кассовый Чек [08:11:50]line ПРОДАЖА [08:11:50]line ТРК (МРК, ГНК) : 13 [08:11:50]line Товар: 2710124130 [08:11:50]line SUPER 92-К-5 [08:11:50]line 15.650 * 63.90 [08:11:50]line = 1000.04 [08:11:50]line НДС 12% НСП 1% [08:11:50]line > о реализуемом товаре [08:11:50]line ОКРУГЛЕНИЕ: -0.04 [08:11:50]line ИТОГО: 1000.00 [08:11:50]line Внесено: 1000.00 [08:11:50]line СДАЧА: 0.00 [08:11:50]line НСП 1% : 8.85 [08:11:50]line НДС 12% : 106.20 [08:11:50]line Наличными: 1000.00 [08:11:50]line Безнал.: 0.00 [08:11:50]line Место: АЗС № 6 "Партнер Нефть" [08:11:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:11:50]line СНО: Общий режим [08:11:50]line Чек 23 13.03.2024 08:11 [08:11:50]line Смена: 328 ФФД: 1.0 [08:11:50]line ЗНМ: 0300000009 [08:11:50]line РНМ: 0000000000090555 [08:11:50]line Версия ККМ: 001 [08:11:50]line ФМ: 0000000000874811 [08:11:50]line ФД: 95328 [08:11:50]line ФПД: 156661303514057 [08:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T081158&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95328&fm=156661303514057&tin=02508201610067®Number=0000000000090555&sum=100000 [08:11:51]OFD Sender: Processing packet 95328 [packets to send 30, broken 29] [08:11:51]ProducePacketName [08:11:51]name=ofd_packets/00095328 [08:11:51]OFD Sender: To server: pG, [08:11:51]CommunicateWithHost lk.salyk.kg:30040 [08:11:51]ConnectInit lk.salyk.kg [08:11:51]written 0, free lines is 4095 [08:11:51]Connected sock=10 [08:11:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 74 46 08 01 90 0E 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 CE 5F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 74 01 00 35 04 06 00 8E 7B 8D 58 93 C9 20 8B E7 AC 69 BD 0A 37 [08:11:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 62 26 47 00 AA 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 60 74 01 00 F4 03 04 00 22 0B F1 65 B6 04 01 00 00 F5 91 D6 E8 1C 89 FC E1 [08:11:51]CommunicateWithHost err = 0 [08:11:51]CheckOFDResponse [08:11:51]1017 (14) - 77093643461234 [08:11:51]1041 (16) - 0000000000874811 [08:11:51]1040 (4) - 95328 [08:11:51]1012 (4) - 13.03.2024 02:10 [08:11:51]1206 (1) - 0 [08:11:51]OFD Sender: Remove packet 95328 [08:11:51]ProducePacketName [08:11:51]name=ofd_packets/00095328 [08:11:51]NVStorageDeleteData [08:11:51]Write to MH i2c: 01 00 00 01 63 64 [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: 01 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: 01 07 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: 01 07 00 01 63 00 80 00 00 00 4E 0D 46 [08:11:51]RasterBufferAndPrint [08:11:51]line [08:11:51]line [08:11:51]line [08:11:51]line [08:11:51]line [08:11:51]written 0, free lines is 3412 [08:11:51]process_action close_receipt done [08:11:51]requested_data is exist [08:11:51]produce_requested_data [08:11:51]requested_item fm.sn is exist - process it [08:11:51]wFMCommunicate request_size=4 [08:11:51]MH_SAM_APDU [08:11:51]CAPDU: 80 11 00 00 [08:11:51]Write to MH i2c: E2 08 00 08 63 80 11 00 00 00 00 00 00 E5 [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:51]Read from MH i2c: E2 17 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 17 00 08 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 35 [08:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:11:51]wFMCommunicate OK [08:11:51]requested_item fd.num is exist - process it [08:11:51]SAM_PROTO_GetFieldsCounters [08:11:51]wFMCommunicate request_size=4 [08:11:51]MH_SAM_APDU [08:11:51]CAPDU: 80 13 00 00 [08:11:51]Write to MH i2c: E2 08 00 09 63 80 13 00 00 00 00 00 00 E8 [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 62 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 62 00 09 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 60 74 01 00 0E 04 04 00 48 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 68 [08:11:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 60 74 01 00 0E 04 04 00 48 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:11:51]wFMCommunicate OK [08:11:51]SAM_PROTO_GetFieldsCounters done [08:11:51]requested_item shift.num is exist - process it [08:11:51]requested_item shift.opened is exist - process it [08:11:51]req_shift_opened [08:11:51]FM_GetShiftState [08:11:51]SAM_PROTO_GetShiftState [08:11:51]wFMCommunicate request_size=4 [08:11:51]MH_SAM_APDU [08:11:51]CAPDU: 80 13 01 00 [08:11:51]Write to MH i2c: E2 08 00 0A 63 80 13 01 00 00 00 00 00 EA [08:11:51]Write i2c OK [08:11:51]MH_I2C_Read... [08:11:51]OFD Sender: No OFD packet to send [08:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:51]Read from MH i2c: E2 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 0E 00 [08:11:51]MH_I2C_Read... [08:11:51]Read from MH i2c: E2 0E 00 0A 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CF [08:11:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:11:51]wFMCommunicate OK [08:11:51]SAM_PROTO_GetShiftState done [08:11:51]FM_GetShiftState done [08:11:51]req_shift_opened done [08:11:51]requested_item shift.open_date is exist - process it [08:11:51]req_shift_open_date [08:11:51]req_shift_open_date done [08:11:51]produce_requested_data done [08:11:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95328,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:11:51]process_action_free close_receipt [08:11:51]json_value_free [08:11:51]json_value_free done [08:11:51]process_json_proto returns [08:11:51]Send response to host [08:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95328,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:11:51]free response buf [08:11:51]execute_script done [08:11:51]execute_script returns [08:11:51]free content buf [08:11:51]Sock 8.Close socket [08:11:51]Sock 8.Thread stoped [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:40]accept exits with 9 [08:12:40]New connection [08:12:40]New thread 3066957156 created [08:12:40]Thread 3066813796 joined [08:12:40]Waiting for new connection... [08:12:40] Sock 9.Parse request [08:12:40]Sock 9.Check first char [08:12:40]Sock 9.First char is OK [08:12:40]request: POST /json_proto HTTP/1.0 [08:12:40]Method: POST [08:12:40]URL: /json_proto [08:12:40]Method is POST - this is cgi request [08:12:40]url: /json_proto [08:12:40]query_string will be loaded in cgi processing [08:12:40]execute_cgi json_proto POST (null) [08:12:40]execute_cgi path=json_proto method=POST [08:12:40]POST find Content-Length [08:12:40]Host: 172.17.62.67:8080 [08:12:40]Content-Length: 1191 [08:12:40]Content-Type: application/json [08:12:40] [08:12:40]POST finish read [08:12:40]Found Content-Length = 1191 [08:12:40]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196303\u000A13.03.2024 08:06\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 40.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 2836.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\u000A3776789.87\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:40]execute_script... [08:12:40]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196303\u000A13.03.2024 08:06\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 40.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 2836.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\u000A3776789.87\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:40]POST & json_proto [08:12:40]process_json_proto [08:12:40]json parsed OK: [08:12:40]protocol is kg_v1.0 [08:12:40]action value=print_text [08:12:40]process_action print_text [08:12:40]cmd_print_text [08:12:40]ExternCall_PrintAddStr [08:12:40]wPrintStart [08:12:40]Write to MH i2c: 01 00 00 0B 63 6E [08:12:40]Write i2c OK [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: 01 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: 01 07 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: 01 07 00 0B 63 00 80 00 00 00 FF 0F 03 [08:12:40]RasterBufferAndPrint [08:12:40]line *****ТОВАРНЫЙ ЧЕК***** [08:12:40]line АЗС 6 [08:12:40]line Партнер нефть [08:12:40]line 02508201610067 [08:12:40]line Кассир : Сабырбек у. М. [08:12:40]line Счет N : (1)196303 [08:12:40]line 13.03.2024 08:06 [08:12:40]line ПРОДАЖА [08:12:40]line ТРК (МРК, ГНК): 51 [08:12:40]line Вид ГСМ : 2710194210 [08:12:40]line ДТ-К-5 [08:12:40]line 40.000 x 70.90 [08:12:40]line ИТОГ: 2836.00 [08:12:40]line Тип оплаты: Талоны: Партнер нефть [08:12:40]line 3776789.87 [08:12:40]line ______________________ [08:12:40]line (подпись) [08:12:40]written 0, free lines is 4095 [08:12:40]Write to MH i2c: 01 00 00 1F 63 82 [08:12:40]Write i2c OK [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: 01 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: 01 07 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: 01 07 00 1F 63 00 80 00 00 00 68 0E 7F [08:12:40]RasterBufferAndPrint [08:12:40]line [08:12:40]line [08:12:40]line [08:12:40]line [08:12:40]line [08:12:40]written 0, free lines is 3691 [08:12:40]process_action print_text done [08:12:40]requested_data is exist [08:12:40]produce_requested_data [08:12:40]requested_item fm.sn is exist - process it [08:12:40]wFMCommunicate request_size=4 [08:12:40]MH_SAM_APDU [08:12:40]CAPDU: 80 11 00 00 [08:12:40]Write to MH i2c: E2 08 00 26 63 80 11 00 00 00 00 00 00 03 [08:12:40]Write i2c OK [08:12:40]MH_I2C_Read... [08:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:40]Read from MH i2c: E2 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 17 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 17 00 26 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 53 [08:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:12:40]wFMCommunicate OK [08:12:40]requested_item fd.num is exist - process it [08:12:40]SAM_PROTO_GetFieldsCounters [08:12:40]wFMCommunicate request_size=4 [08:12:40]MH_SAM_APDU [08:12:40]CAPDU: 80 13 00 00 [08:12:40]Write to MH i2c: E2 08 00 27 63 80 13 00 00 00 00 00 00 06 [08:12:40]Write i2c OK [08:12:40]MH_I2C_Read... [08:12:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:40]Read from MH i2c: E2 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 62 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 62 00 27 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 60 74 01 00 0E 04 04 00 48 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 86 [08:12:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 60 74 01 00 0E 04 04 00 48 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:12:40]wFMCommunicate OK [08:12:40]SAM_PROTO_GetFieldsCounters done [08:12:40]requested_item shift.num is exist - process it [08:12:40]requested_item shift.opened is exist - process it [08:12:40]req_shift_opened [08:12:40]FM_GetShiftState [08:12:40]SAM_PROTO_GetShiftState [08:12:40]wFMCommunicate request_size=4 [08:12:40]MH_SAM_APDU [08:12:40]CAPDU: 80 13 01 00 [08:12:40]Write to MH i2c: E2 08 00 28 63 80 13 01 00 00 00 00 00 08 [08:12:40]Write i2c OK [08:12:40]MH_I2C_Read... [08:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:40]Read from MH i2c: E2 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 0E 00 [08:12:40]MH_I2C_Read... [08:12:40]Read from MH i2c: E2 0E 00 28 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 ED [08:12:40]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:12:40]wFMCommunicate OK [08:12:40]SAM_PROTO_GetShiftState done [08:12:40]FM_GetShiftState done [08:12:40]req_shift_opened done [08:12:40]requested_item shift.open_date is exist - process it [08:12:40]req_shift_open_date [08:12:40]req_shift_open_date done [08:12:40]produce_requested_data done [08:12:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95328,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:12:40]process_action_free print_text [08:12:40]json_value_free [08:12:40]json_value_free done [08:12:40]process_json_proto returns [08:12:40]Send response to host [08:12:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95328,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:12:40]free response buf [08:12:40]execute_script done [08:12:40]execute_script returns [08:12:40]free content buf [08:12:40]Sock 9.Close socket [08:12:40]Sock 9.Thread stoped [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:14]accept exits with 8 [08:13:14]New connection [08:13:14]New thread 3066813796 created [08:13:14]Thread 3066957156 joined [08:13:14]Waiting for new connection... [08:13:14] Sock 8.Parse request [08:13:14]Sock 8.Check first char [08:13:14]Sock 8.First char is OK [08:13:14]request: POST /json_proto HTTP/1.0 [08:13:14]Method: POST [08:13:14]URL: /json_proto [08:13:14]Method is POST - this is cgi request [08:13:14]url: /json_proto [08:13:14]query_string will be loaded in cgi processing [08:13:14]execute_cgi json_proto POST (null) [08:13:14]execute_cgi path=json_proto method=POST [08:13:14]POST find Content-Length [08:13:14]Host: 172.17.62.67:8080 [08:13:14]Content-Length: 674 [08:13:14]Content-Type: application/json [08:13:14] [08:13:14]POST finish read [08:13:14]Found Content-Length = 674 [08:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196305", "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" : 70.90, "quantity" : 2.320, "sum" : 164.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 164.00, "total" : 164.00, "payments": [ { "type": 0, "sum" : 164.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:14]execute_script... [08:13:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196305", "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" : 70.90, "quantity" : 2.320, "sum" : 164.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 164.00, "total" : 164.00, "payments": [ { "type": 0, "sum" : 164.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:14]POST & json_proto [08:13:14]process_json_proto [08:13:14]json parsed OK: [08:13:14]protocol is kg_v1.0 [08:13:14]action value=close_receipt [08:13:14]process_action close_receipt [08:13:14]cmd_close_receipt [08:13:14]MH_GetDate [08:13:14]Write to MH i2c: F0 00 00 29 63 7B [08:13:14]Write i2c OK [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: F0 [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: F0 05 00 [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: F0 05 00 29 63 00 24 60 F1 65 5A [08:13:14]GetLastDocTimeStamp 1710317518 [08:13:14]current date 1710317604 [08:13:14]FM_GetShiftState [08:13:14]SAM_PROTO_GetShiftState [08:13:14]wFMCommunicate request_size=4 [08:13:14]MH_SAM_APDU [08:13:14]CAPDU: 80 13 01 00 [08:13:14]Write to MH i2c: E2 08 00 2A 63 80 13 01 00 00 00 00 00 0A [08:13:14]Write i2c OK [08:13:14]MH_I2C_Read... [08:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:14]Read from MH i2c: E2 [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: E2 0E 00 [08:13:14]MH_I2C_Read... [08:13:14]Read from MH i2c: E2 0E 00 2A 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 EF [08:13:14]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:13:14]wFMCommunicate OK [08:13:14]SAM_PROTO_GetShiftState done [08:13:14]FM_GetShiftState done [08:13:14]opened in 1710288279 [08:13:14]opened+sec_in_day 1710374679 [08:13:14]quantity*price = 16448 [08:13:14]sum+1 = 16450 [08:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 164.00 Внесено: 164.00 СДАЧА: 0.00 НСП 1% : 1.46 НДС 12% : 17.47 Наличными: 164.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 24 13.03.2024 08:13 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95329 ФПД: 171182110511300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T081324&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95329&fm=171182110511300&tin=02508201610067®Number=0000000000090555&sum=16400 [08:13:16]StoreToDocumentArchive [08:13:16]shift 328 fd 95329 [08:13:16]save to /storage/0328/doc_00095329 [08:13:16]save last doc name /storage/0328/doc_00095329 to /storage/kkm_last_doc_name [08:13:16]save OK [08:13:16]Clear old archive folders... [08:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:13:16]tlvbuf is 01BB6D30 [08:13:16]SAM_PROTO_ClearQueue [08:13:16]wFMCommunicate request_size=4 [08:13:16]MH_SAM_APDU [08:13:16]CAPDU: 80 09 00 00 [08:13:16]Write to MH i2c: E2 08 00 37 63 80 09 00 00 00 00 00 00 0C [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 [08:13:16]MH_I2C_Read... [08:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:16]Read from MH i2c: E2 03 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 03 00 37 63 00 90 00 0E [08:13:16]RAPDU: 90 00 [08:13:16]wFMCommunicate OK [08:13:16]SAM_PROTO_ClearQueue done [08:13:16]KKMCreateOFDPacket [08:13:16]OFDProtocolAddRootSTLVToBuf [08:13:16]FM_MakeSignedData [08:13:16]FM_MakeSignedData [08:13:16]SAM_PROTO_SignData [08:13:16]wFMCommunicate request_size=4 [08:13:16]MH_SAM_APDU [08:13:16]CAPDU: 80 0D 01 02 [08:13:16]Write to MH i2c: E2 08 00 38 63 80 0D 01 02 00 00 00 00 14 [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 [08:13:16]MH_I2C_Read... [08:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:16]Read from MH i2c: E2 03 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 03 00 38 63 00 90 00 0F [08:13:16]RAPDU: 90 00 [08:13:16]wFMCommunicate OK [08:13:16]wFMCommunicate request_size=255 [08:13:16]MH_SAM_APDU [08:13:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 09 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 41 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 D3 06 00 00 00 00 07 04 06 00 10 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 18 00 00 00 F4 03 04 00 24 60 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 74 01 00 35 04 06 00 9B B0 70 E3 [08:13:16]Write to MH i2c: E2 02 01 39 63 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 10 09 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 41 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 D3 06 00 00 00 00 07 04 06 00 10 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 18 00 00 00 F4 03 04 00 24 60 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 74 01 00 35 04 06 00 9B B0 70 E3 00 00 8E [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 [08:13:16]MH_I2C_Read... [08:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:16]Read from MH i2c: E2 03 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 03 00 39 63 00 90 00 10 [08:13:16]RAPDU: 90 00 [08:13:16]wFMCommunicate OK [08:13:16]wFMCommunicate request_size=7 [08:13:16]MH_SAM_APDU [08:13:16]CAPDU: 80 0D 02 02 02 90 C4 [08:13:16]Write to MH i2c: E2 0A 00 3A 63 80 0D 02 02 02 00 90 C4 00 00 6F [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:16]Read from MH i2c: E2 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 03 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 03 00 3A 63 00 90 00 11 [08:13:16]RAPDU: 90 00 [08:13:16]wFMCommunicate OK [08:13:16]wFMCommunicate request_size=4 [08:13:16]MH_SAM_APDU [08:13:16]CAPDU: 80 0D 03 02 [08:13:16]Write to MH i2c: E2 08 00 3B 63 80 0D 03 02 00 00 00 00 19 [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:16]Read from MH i2c: E2 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 0B 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 0B 00 3B 63 00 FA 98 13 B5 48 07 5C 54 90 00 73 [08:13:16]RAPDU: FA 98 13 B5 48 07 5C 54 90 00 [08:13:16]wFMCommunicate OK [08:13:16]SAM_PROTO_SignData done [08:13:16]FM_MakeSignedData done [08:13:16]CreateOFDProtocolMessage [08:13:16]wFMCommunicate request_size=4 [08:13:16]MH_SAM_APDU [08:13:16]CAPDU: 80 11 00 00 [08:13:16]Write to MH i2c: E2 08 00 3C 63 80 11 00 00 00 00 00 00 19 [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:16]Read from MH i2c: E2 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 17 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: E2 17 00 3C 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [08:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:13:16]wFMCommunicate OK [08:13:16]CreateOFDProtocolMessage done [08:13:16]OFDSenderStorePacket 95329 [08:13:16]StoreOFDPacket docnum=95329 [08:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1A 46 04 01 73 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 10 09 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 41 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 D3 06 00 00 00 00 07 04 06 00 10 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 18 00 00 00 F4 03 04 00 24 60 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 74 01 00 35 04 06 00 9B B0 70 E3 90 C4 FA 98 13 B5 48 07 5C 54 [08:13:16]CheckFolder [08:13:16]dirname=/storage/ofd_packets [08:13:16]CheckFolder done [08:13:16]ProducePacketName [08:13:16]name=ofd_packets/00095329 [08:13:16]NVStorageSaveData ofd_packets/00095329 [08:13:16]File name is /storage/ofd_packets/00095329 [08:13:16]Write 298 bytes [08:13:16]NVStorageSaveData done [08:13:16]OFDSenderStorePacket done [08:13:16]KKMCreateOFDPacket done [08:13:16]NVStorageSaveData kkm_last_timestamp [08:13:16]File name is /storage/kkm_last_timestamp [08:13:16]Write 4 bytes [08:13:16]NVStorageSaveData done [08:13:16]ExternCall_PrintAddStr [08:13:16]wPrintStart [08:13:16]Write to MH i2c: 01 00 00 3D 63 A0 [08:13:16]Write i2c OK [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 07 00 [08:13:16]MH_I2C_Read... [08:13:16]Read from MH i2c: 01 07 00 3D 63 00 80 00 00 00 FF 0F 35 [08:13:16]RasterBufferAndPrint [08:13:16]line Счет N : (1)196305 [08:13:16]line ИНН: 02508201610067 [08:13:16]line Контрольно-Кассовый Чек [08:13:16]line ПРОДАЖА [08:13:16]line ТРК (МРК, ГНК) : 51 [08:13:16]line Товар: 2710194210 [08:13:16]line ДТ-К-5 [08:13:16]line 2.320 * 70.90 [08:13:16]line = 164.49 [08:13:16]line НДС 12% НСП 1% [08:13:16]line > о реализуемом товаре [08:13:16]line ОКРУГЛЕНИЕ: -0.49 [08:13:16]line ИТОГО: 164.00 [08:13:16]line Внесено: 164.00 [08:13:16]line СДАЧА: 0.00 [08:13:16]line НСП 1% : 1.46 [08:13:16]line НДС 12% : 17.47 [08:13:16]line Наличными: 164.00 [08:13:16]line Безнал.: 0.00 [08:13:16]line Место: АЗС № 6 "Партнер Нефть" [08:13:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:13:16]line СНО: Общий режим [08:13:16]line Чек 24 13.03.2024 08:13 [08:13:16]line Смена: 328 ФФД: 1.0 [08:13:16]line ЗНМ: 0300000009 [08:13:16]line РНМ: 0000000000090555 [08:13:16]line Версия ККМ: 001 [08:13:16]line ФМ: 0000000000874811 [08:13:16]line ФД: 95329 [08:13:16]line ФПД: 171182110511300 [08:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T081324&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95329&fm=171182110511300&tin=02508201610067®Number=0000000000090555&sum=16400 [08:13:16]written 0, free lines is 4095 [08:13:16]OFD Sender: Processing packet 95329 [packets to send 30, broken 29] [08:13:16]ProducePacketName [08:13:16]name=ofd_packets/00095329 [08:13:16]OFD Sender: To server: pG, [08:13:16]CommunicateWithHost lk.salyk.kg:30040 [08:13:16]ConnectInit lk.salyk.kg [08:13:16]Connected sock=10 [08:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 1A 46 04 01 73 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 10 09 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 41 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 D3 06 00 00 00 00 07 04 06 00 10 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 18 00 00 00 F4 03 04 00 24 60 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 74 01 00 35 04 06 00 9B B0 70 E3 90 C4 FA 98 13 B5 48 07 5C 54 [08:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F1 2A 47 00 8D A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 61 74 01 00 F4 03 04 00 77 0B F1 65 B6 04 01 00 00 E2 3A 32 6C B0 01 FA 09 [08:13:16]CommunicateWithHost err = 0 [08:13:16]CheckOFDResponse [08:13:16]1017 (14) - 77093643461234 [08:13:16]1041 (16) - 0000000000874811 [08:13:16]1040 (4) - 95329 [08:13:16]1012 (4) - 13.03.2024 02:12 [08:13:16]1206 (1) - 0 [08:13:16]OFD Sender: Remove packet 95329 [08:13:16]ProducePacketName [08:13:16]name=ofd_packets/00095329 [08:13:16]NVStorageDeleteData [08:13:17]Write to MH i2c: 01 00 00 68 63 CB [08:13:17]Write i2c OK [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: 01 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: 01 07 00 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: 01 07 00 68 63 00 80 00 00 00 4A 0D A9 [08:13:17]RasterBufferAndPrint [08:13:17]line [08:13:17]line [08:13:17]line [08:13:17]line [08:13:17]line [08:13:17]written 0, free lines is 3408 [08:13:17]process_action close_receipt done [08:13:17]requested_data is exist [08:13:17]produce_requested_data [08:13:17]requested_item fm.sn is exist - process it [08:13:17]wFMCommunicate request_size=4 [08:13:17]MH_SAM_APDU [08:13:17]CAPDU: 80 11 00 00 [08:13:17]Write to MH i2c: E2 08 00 6F 63 80 11 00 00 00 00 00 00 4C [08:13:17]Write i2c OK [08:13:17]MH_I2C_Read... [08:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:17]Read from MH i2c: E2 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 17 00 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 17 00 6F 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [08:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:13:17]wFMCommunicate OK [08:13:17]requested_item fd.num is exist - process it [08:13:17]SAM_PROTO_GetFieldsCounters [08:13:17]wFMCommunicate request_size=4 [08:13:17]MH_SAM_APDU [08:13:17]CAPDU: 80 13 00 00 [08:13:17]Write to MH i2c: E2 08 00 70 63 80 13 00 00 00 00 00 00 4F [08:13:17]Write i2c OK [08:13:17]MH_I2C_Read... [08:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:17]Read from MH i2c: E2 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 62 00 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 62 00 70 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 61 74 01 00 0E 04 04 00 48 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 D3 [08:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 61 74 01 00 0E 04 04 00 48 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:13:17]wFMCommunicate OK [08:13:17]SAM_PROTO_GetFieldsCounters done [08:13:17]requested_item shift.num is exist - process it [08:13:17]requested_item shift.opened is exist - process it [08:13:17]req_shift_opened [08:13:17]FM_GetShiftState [08:13:17]SAM_PROTO_GetShiftState [08:13:17]wFMCommunicate request_size=4 [08:13:17]MH_SAM_APDU [08:13:17]CAPDU: 80 13 01 00 [08:13:17]Write to MH i2c: E2 08 00 71 63 80 13 01 00 00 00 00 00 51 [08:13:17]Write i2c OK [08:13:17]MH_I2C_Read... [08:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:17]Read from MH i2c: E2 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 0E 00 [08:13:17]MH_I2C_Read... [08:13:17]Read from MH i2c: E2 0E 00 71 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 36 [08:13:17]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:13:17]wFMCommunicate OK [08:13:17]SAM_PROTO_GetShiftState done [08:13:17]FM_GetShiftState done [08:13:17]req_shift_opened done [08:13:17]requested_item shift.open_date is exist - process it [08:13:17]req_shift_open_date [08:13:17]req_shift_open_date done [08:13:17]produce_requested_data done [08:13:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95329,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:13:17]process_action_free close_receipt [08:13:17]json_value_free [08:13:17]json_value_free done [08:13:17]process_json_proto returns [08:13:17]Send response to host [08:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95329,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:13:17]free response buf [08:13:17]execute_script done [08:13:17]execute_script returns [08:13:17]free content buf [08:13:17]Sock 8.Close socket [08:13:17]Sock 8.Thread stoped [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:29]recv_with_timeout no data received [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:18]recv_with_timeout no data received [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:49]accept exits with 9 [08:19:49]New connection [08:19:49]New thread 3066957156 created [08:19:49]Thread 3066813796 joined [08:19:49]Waiting for new connection... [08:19:49] Sock 9.Parse request [08:19:49]Sock 9.Check first char [08:19:49]Sock 9.First char is OK [08:19:49]request: POST /json_proto HTTP/1.0 [08:19:49]Method: POST [08:19:49]URL: /json_proto [08:19:49]Method is POST - this is cgi request [08:19:49]url: /json_proto [08:19:49]query_string will be loaded in cgi processing [08:19:49]execute_cgi json_proto POST (null) [08:19:49]execute_cgi path=json_proto method=POST [08:19:49]POST find Content-Length [08:19:49]Host: 172.17.62.67:8080 [08:19:49]Content-Length: 1191 [08:19:49]Content-Type: application/json [08:19:49] [08:19:49]POST finish read [08:19:49]Found Content-Length = 1191 [08:19: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196306\u000A13.03.2024 08:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689335.34\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:49]execute_script... [08:19: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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196306\u000A13.03.2024 08:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689335.34\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:49]POST & json_proto [08:19:49]process_json_proto [08:19:49]json parsed OK: [08:19:49]protocol is kg_v1.0 [08:19:49]action value=print_text [08:19:49]process_action print_text [08:19:49]cmd_print_text [08:19:49]ExternCall_PrintAddStr [08:19:49]wPrintStart [08:19:49]Write to MH i2c: 01 00 00 72 63 D5 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 72 63 00 80 00 00 00 FF 0F 6A [08:19:49]RasterBufferAndPrint [08:19:49]line *****ТОВАРНЫЙ ЧЕК***** [08:19:49]line АЗС 6 [08:19:49]line Партнер нефть [08:19:49]line 02508201610067 [08:19:49]line Кассир : Сабырбек у. М. [08:19:49]line Счет N : (1)196306 [08:19:49]line 13.03.2024 08:14 [08:19:49]line ПРОДАЖА [08:19:49]line ТРК (МРК, ГНК): 61 [08:19:49]line Вид ГСМ : 2710194210 [08:19:49]line ДТ-К-5 [08:19:49]line 20.000 x 70.90 [08:19:49]line ИТОГ: 1418.00 [08:19:49]line Тип оплаты: Талоны: Партнер нефть [08:19:49]line 3689335.34 [08:19:49]line ______________________ [08:19:49]line (подпись) [08:19:49]written 0, free lines is 4095 [08:19:50]Write to MH i2c: 01 00 00 86 63 E9 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: 01 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: 01 07 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: 01 07 00 86 63 00 80 00 00 00 67 0E E5 [08:19:50]RasterBufferAndPrint [08:19:50]line [08:19:50]line [08:19:50]line [08:19:50]line [08:19:50]line [08:19:50]written 0, free lines is 3691 [08:19:50]process_action print_text done [08:19:50]requested_data is exist [08:19:50]produce_requested_data [08:19:50]requested_item fm.sn is exist - process it [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 11 00 00 [08:19:50]Write to MH i2c: E2 08 00 8D 63 80 11 00 00 00 00 00 00 6A [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 17 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 17 00 8D 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BA [08:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:19:50]wFMCommunicate OK [08:19:50]requested_item fd.num is exist - process it [08:19:50]SAM_PROTO_GetFieldsCounters [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 13 00 00 [08:19:50]Write to MH i2c: E2 08 00 8E 63 80 13 00 00 00 00 00 00 6D [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 62 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 62 00 8E 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 61 74 01 00 0E 04 04 00 48 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 F1 [08:19:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 61 74 01 00 0E 04 04 00 48 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:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_GetFieldsCounters done [08:19:50]requested_item shift.num is exist - process it [08:19:50]requested_item shift.opened is exist - process it [08:19:50]req_shift_opened [08:19:50]FM_GetShiftState [08:19:50]SAM_PROTO_GetShiftState [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 13 01 00 [08:19:50]Write to MH i2c: E2 08 00 8F 63 80 13 01 00 00 00 00 00 6F [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 0E 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 0E 00 8F 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 54 [08:19:50]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_GetShiftState done [08:19:50]FM_GetShiftState done [08:19:50]req_shift_opened done [08:19:50]requested_item shift.open_date is exist - process it [08:19:50]req_shift_open_date [08:19:50]req_shift_open_date done [08:19:50]produce_requested_data done [08:19:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95329,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:19:50]process_action_free print_text [08:19:50]json_value_free [08:19:50]json_value_free done [08:19:50]process_json_proto returns [08:19:50]Send response to host [08:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95329,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:19:50]free response buf [08:19:50]execute_script done [08:19:50]execute_script returns [08:19:50]free content buf [08:19:50]Sock 9.Close socket [08:19:50]Sock 9.Thread stoped [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:05]accept exits with 8 [08:20:05]New connection [08:20:05]New thread 3066813796 created [08:20:05]Thread 3066957156 joined [08:20:05]Waiting for new connection... [08:20:05] Sock 8.Parse request [08:20:05]Sock 8.Check first char [08:20:05]Sock 8.First char is OK [08:20:05]request: POST /json_proto HTTP/1.0 [08:20:05]Method: POST [08:20:05]URL: /json_proto [08:20:05]Method is POST - this is cgi request [08:20:05]url: /json_proto [08:20:05]query_string will be loaded in cgi processing [08:20:05]execute_cgi json_proto POST (null) [08:20:05]execute_cgi path=json_proto method=POST [08:20:05]POST find Content-Length [08:20:05]Host: 172.17.62.67:8080 [08:20:05]Content-Length: 1191 [08:20:05]Content-Type: application/json [08:20:05] [08:20:05]POST finish read [08:20:05]Found Content-Length = 1191 [08:20:05]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196307\u000A13.03.2024 08:14\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689330.31\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:05]execute_script... [08:20:05]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196307\u000A13.03.2024 08:14\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689330.31\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:05]POST & json_proto [08:20:05]process_json_proto [08:20:05]json parsed OK: [08:20:05]protocol is kg_v1.0 [08:20:05]action value=print_text [08:20:05]process_action print_text [08:20:05]cmd_print_text [08:20:05]ExternCall_PrintAddStr [08:20:05]wPrintStart [08:20:05]Write to MH i2c: 01 00 00 90 63 F3 [08:20:05]Write i2c OK [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: 01 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: 01 07 00 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: 01 07 00 90 63 00 80 00 00 00 FF 0F 88 [08:20:05]RasterBufferAndPrint [08:20:05]line *****ТОВАРНЫЙ ЧЕК***** [08:20:05]line АЗС 6 [08:20:05]line Партнер нефть [08:20:05]line 02508201610067 [08:20:05]line Кассир : Сабырбек у. М. [08:20:05]line Счет N : (1)196307 [08:20:05]line 13.03.2024 08:14 [08:20:05]line ПРОДАЖА [08:20:05]line ТРК (МРК, ГНК): 51 [08:20:05]line Вид ГСМ : 2710194210 [08:20:05]line ДТ-К-5 [08:20:05]line 20.000 x 70.90 [08:20:05]line ИТОГ: 1418.00 [08:20:05]line Тип оплаты: Талоны: Партнер нефть [08:20:05]line 3689330.31 [08:20:05]line ______________________ [08:20:05]line (подпись) [08:20:05]written 0, free lines is 4095 [08:20:05]Write to MH i2c: 01 00 00 A4 63 07 [08:20:05]Write i2c OK [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: 01 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: 01 07 00 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: 01 07 00 A4 63 00 80 00 00 00 66 0E 02 [08:20:05]RasterBufferAndPrint [08:20:05]line [08:20:05]line [08:20:05]line [08:20:05]line [08:20:05]line [08:20:05]written 0, free lines is 3691 [08:20:05]process_action print_text done [08:20:05]requested_data is exist [08:20:05]produce_requested_data [08:20:05]requested_item fm.sn is exist - process it [08:20:05]wFMCommunicate request_size=4 [08:20:05]MH_SAM_APDU [08:20:05]CAPDU: 80 11 00 00 [08:20:05]Write to MH i2c: E2 08 00 AB 63 80 11 00 00 00 00 00 00 88 [08:20:05]Write i2c OK [08:20:05]MH_I2C_Read... [08:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:05]Read from MH i2c: E2 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: E2 17 00 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: E2 17 00 AB 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D8 [08:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:20:05]wFMCommunicate OK [08:20:05]requested_item fd.num is exist - process it [08:20:05]SAM_PROTO_GetFieldsCounters [08:20:05]wFMCommunicate request_size=4 [08:20:05]MH_SAM_APDU [08:20:05]CAPDU: 80 13 00 00 [08:20:05]Write to MH i2c: E2 08 00 AC 63 80 13 00 00 00 00 00 00 8B [08:20:05]Write i2c OK [08:20:05]MH_I2C_Read... [08:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:05]Read from MH i2c: E2 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: E2 62 00 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: E2 62 00 AC 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 61 74 01 00 0E 04 04 00 48 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 0F [08:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 61 74 01 00 0E 04 04 00 48 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:20:05]wFMCommunicate OK [08:20:05]SAM_PROTO_GetFieldsCounters done [08:20:05]requested_item shift.num is exist - process it [08:20:05]requested_item shift.opened is exist - process it [08:20:05]req_shift_opened [08:20:05]FM_GetShiftState [08:20:05]SAM_PROTO_GetShiftState [08:20:05]wFMCommunicate request_size=4 [08:20:05]MH_SAM_APDU [08:20:05]CAPDU: 80 13 01 00 [08:20:05]Write to MH i2c: E2 08 00 AD 63 80 13 01 00 00 00 00 00 8D [08:20:05]Write i2c OK [08:20:05]MH_I2C_Read... [08:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:05]Read from MH i2c: E2 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: E2 0E 00 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: E2 0E 00 AD 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 72 [08:20:05]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:20:05]wFMCommunicate OK [08:20:05]SAM_PROTO_GetShiftState done [08:20:05]FM_GetShiftState done [08:20:05]req_shift_opened done [08:20:05]requested_item shift.open_date is exist - process it [08:20:05]req_shift_open_date [08:20:05]req_shift_open_date done [08:20:05]produce_requested_data done [08:20:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95329,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:20:05]process_action_free print_text [08:20:05]json_value_free [08:20:05]json_value_free done [08:20:05]process_json_proto returns [08:20:05]Send response to host [08:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95329,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:20:05]free response buf [08:20:05]execute_script done [08:20:05]execute_script returns [08:20:05]free content buf [08:20:05]Sock 8.Close socket [08:20:05]Sock 8.Thread stoped [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:20]accept exits with 9 [08:20:20]New connection [08:20:20]New thread 3066957156 created [08:20:20]Thread 3066813796 joined [08:20:20]Waiting for new connection... [08:20:20] Sock 9.Parse request [08:20:20]Sock 9.Check first char [08:20:20]Sock 9.First char is OK [08:20:20]request: POST /json_proto HTTP/1.0 [08:20:20]Method: POST [08:20:20]URL: /json_proto [08:20:20]Method is POST - this is cgi request [08:20:20]url: /json_proto [08:20:20]query_string will be loaded in cgi processing [08:20:20]execute_cgi json_proto POST (null) [08:20:20]execute_cgi path=json_proto method=POST [08:20:20]POST find Content-Length [08:20:20]Host: 172.17.62.67:8080 [08:20:20]Content-Length: 677 [08:20:20]Content-Type: application/json [08:20:20] [08:20:20]POST finish read [08:20:20]Found Content-Length = 677 [08:20:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196308", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:20]execute_script... [08:20:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196308", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:20]POST & json_proto [08:20:20]process_json_proto [08:20:20]json parsed OK: [08:20:20]protocol is kg_v1.0 [08:20:20]action value=close_receipt [08:20:20]process_action close_receipt [08:20:20]cmd_close_receipt [08:20:20]MH_GetDate [08:20:20]Write to MH i2c: F0 00 00 AE 63 00 [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: F0 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: F0 05 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: F0 05 00 AE 63 00 CD 61 F1 65 89 [08:20:20]GetLastDocTimeStamp 1710317604 [08:20:20]current date 1710318029 [08:20:20]FM_GetShiftState [08:20:20]SAM_PROTO_GetShiftState [08:20:20]wFMCommunicate request_size=4 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 13 01 00 [08:20:20]Write to MH i2c: E2 08 00 AF 63 80 13 01 00 00 00 00 00 8F [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 0E 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 0E 00 AF 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 74 [08:20:20]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:20:20]wFMCommunicate OK [08:20:20]SAM_PROTO_GetShiftState done [08:20:20]FM_GetShiftState done [08:20:20]opened in 1710288279 [08:20:20]opened+sec_in_day 1710374679 [08:20:20]quantity*price = 40004 [08:20:20]sum+1 = 40005 [08:20:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 25 13.03.2024 08:20 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95330 ФПД: 201886987428647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T082029&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95330&fm=201886987428647&tin=02508201610067®Number=0000000000090555&sum=40000 [08:20:21]StoreToDocumentArchive [08:20:21]shift 328 fd 95330 [08:20:21]save to /storage/0328/doc_00095330 [08:20:21]save last doc name /storage/0328/doc_00095330 to /storage/kkm_last_doc_name [08:20:21]save OK [08:20:21]Clear old archive folders... [08:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:21]tlvbuf is 01C1D480 [08:20:21]SAM_PROTO_ClearQueue [08:20:21]wFMCommunicate request_size=4 [08:20:21]MH_SAM_APDU [08:20:21]CAPDU: 80 09 00 00 [08:20:21]Write to MH i2c: E2 08 00 BC 63 80 09 00 00 00 00 00 00 91 [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:21]Read from MH i2c: E2 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 03 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 03 00 BC 63 00 90 00 93 [08:20:21]RAPDU: 90 00 [08:20:21]wFMCommunicate OK [08:20:21]SAM_PROTO_ClearQueue done [08:20:21]KKMCreateOFDPacket [08:20:21]OFDProtocolAddRootSTLVToBuf [08:20:21]FM_MakeSignedData [08:20:21]FM_MakeSignedData [08:20:21]SAM_PROTO_SignData [08:20:21]wFMCommunicate request_size=4 [08:20:21]MH_SAM_APDU [08:20:21]CAPDU: 80 0D 01 02 [08:20:21]Write to MH i2c: E2 08 00 BD 63 80 0D 01 02 00 00 00 00 99 [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:21]Read from MH i2c: E2 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 03 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 03 00 BD 63 00 90 00 94 [08:20:21]RAPDU: 90 00 [08:20:21]wFMCommunicate OK [08:20:21]wFMCommunicate request_size=255 [08:20:21]MH_SAM_APDU [08:20:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD 61 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 74 01 00 35 04 06 00 B7 [08:20:21]Write to MH i2c: E2 02 01 BE 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD 61 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 74 01 00 35 04 06 00 B7 00 00 50 [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:21]Read from MH i2c: E2 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 03 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 03 00 BE 63 00 90 00 95 [08:20:21]RAPDU: 90 00 [08:20:21]wFMCommunicate OK [08:20:21]wFMCommunicate request_size=10 [08:20:21]MH_SAM_APDU [08:20:21]CAPDU: 80 0D 02 02 05 9D 7A 2B A3 27 [08:20:21]Write to MH i2c: E2 0D 00 BF 63 80 0D 02 02 05 00 9D 7A 2B A3 27 00 00 B2 [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:21]Read from MH i2c: E2 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 03 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 03 00 BF 63 00 90 00 96 [08:20:21]RAPDU: 90 00 [08:20:21]wFMCommunicate OK [08:20:21]wFMCommunicate request_size=4 [08:20:21]MH_SAM_APDU [08:20:21]CAPDU: 80 0D 03 02 [08:20:21]Write to MH i2c: E2 08 00 C0 63 80 0D 03 02 00 00 00 00 9E [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:21]Read from MH i2c: E2 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 0B 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 0B 00 C0 63 00 7B 84 88 BE AC 0C DF 76 90 00 F1 [08:20:21]RAPDU: 7B 84 88 BE AC 0C DF 76 90 00 [08:20:21]wFMCommunicate OK [08:20:21]SAM_PROTO_SignData done [08:20:21]FM_MakeSignedData done [08:20:21]CreateOFDProtocolMessage [08:20:21]wFMCommunicate request_size=4 [08:20:21]MH_SAM_APDU [08:20:21]CAPDU: 80 11 00 00 [08:20:21]Write to MH i2c: E2 08 00 C1 63 80 11 00 00 00 00 00 00 9E [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:21]Read from MH i2c: E2 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 17 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: E2 17 00 C1 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EE [08:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:20:21]wFMCommunicate OK [08:20:21]CreateOFDProtocolMessage done [08:20:21]OFDSenderStorePacket 95330 [08:20:21]StoreOFDPacket docnum=95330 [08:20:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B2 A3 07 01 23 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD 61 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 74 01 00 35 04 06 00 B7 9D 7A 2B A3 27 7B 84 88 BE AC 0C DF 76 [08:20:21]CheckFolder [08:20:21]dirname=/storage/ofd_packets [08:20:21]CheckFolder done [08:20:21]ProducePacketName [08:20:21]name=ofd_packets/00095330 [08:20:21]NVStorageSaveData ofd_packets/00095330 [08:20:21]File name is /storage/ofd_packets/00095330 [08:20:21]Write 301 bytes [08:20:21]NVStorageSaveData done [08:20:21]OFDSenderStorePacket done [08:20:21]KKMCreateOFDPacket done [08:20:21]NVStorageSaveData kkm_last_timestamp [08:20:21]File name is /storage/kkm_last_timestamp [08:20:21]Write 4 bytes [08:20:21]NVStorageSaveData done [08:20:21]ExternCall_PrintAddStr [08:20:21]wPrintStart [08:20:21]Write to MH i2c: 01 00 00 C2 63 25 [08:20:21]Write i2c OK [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: 01 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: 01 07 00 [08:20:21]MH_I2C_Read... [08:20:21]Read from MH i2c: 01 07 00 C2 63 00 80 00 00 00 FF 0F BA [08:20:21]RasterBufferAndPrint [08:20:21]line Счет N : (1)196308 [08:20:21]line ИНН: 02508201610067 [08:20:21]line Контрольно-Кассовый Чек [08:20:21]line ПРОДАЖА [08:20:21]line ТРК (МРК, ГНК) : 22 [08:20:21]line Товар: 2710124130 [08:20:21]line Аи-92-К-5 [08:20:21]line 6.360 * 62.90 [08:20:21]line = 400.04 [08:20:21]line НДС 12% НСП 1% [08:20:21]line > о реализуемом товаре [08:20:21]line ОКРУГЛЕНИЕ: -0.04 [08:20:21]line ИТОГО: 400.00 [08:20:21]line Внесено: 400.00 [08:20:21]line СДАЧА: 0.00 [08:20:21]line НСП 1% : 3.54 [08:20:21]line НДС 12% : 42.48 [08:20:21]line Наличными: 400.00 [08:20:21]line Безнал.: 0.00 [08:20:21]line Место: АЗС № 6 "Партнер Нефть" [08:20:21]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:20:21]line СНО: Общий режим [08:20:21]line Чек 25 13.03.2024 08:20 [08:20:21]line Смена: 328 ФФД: 1.0 [08:20:21]line ЗНМ: 0300000009 [08:20:21]line РНМ: 0000000000090555 [08:20:21]line Версия ККМ: 001 [08:20:21]line ФМ: 0000000000874811 [08:20:21]line ФД: 95330 [08:20:21]line ФПД: 201886987428647 [08:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T082029&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95330&fm=201886987428647&tin=02508201610067®Number=0000000000090555&sum=40000 [08:20:22]OFD Sender: Processing packet 95330 [packets to send 30, broken 29] [08:20:22]ProducePacketName [08:20:22]name=ofd_packets/00095330 [08:20:22]OFD Sender: To server: pG, [08:20:22]CommunicateWithHost lk.salyk.kg:30040 [08:20:22]ConnectInit lk.salyk.kg [08:20:22]written 0, free lines is 4095 [08:20:22]Connected sock=10 [08:20:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B2 A3 07 01 23 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CD 61 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 74 01 00 35 04 06 00 B7 9D 7A 2B A3 27 7B 84 88 BE AC 0C DF 76 [08:20:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 86 DF 47 00 2C 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 62 74 01 00 F4 03 04 00 21 0D F1 65 B6 04 01 00 00 CA 98 30 97 32 07 8F E3 [08:20:22]CommunicateWithHost err = 0 [08:20:22]CheckOFDResponse [08:20:22]1017 (14) - 77093643461234 [08:20:22]1041 (16) - 0000000000874811 [08:20:22]1040 (4) - 95330 [08:20:22]1012 (4) - 13.03.2024 02:19 [08:20:22]1206 (1) - 0 [08:20:22]OFD Sender: Remove packet 95330 [08:20:22]ProducePacketName [08:20:22]name=ofd_packets/00095330 [08:20:22]NVStorageDeleteData [08:20:22]Write to MH i2c: 01 00 00 ED 63 50 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: 01 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: 01 07 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: 01 07 00 ED 63 00 80 00 00 00 4B 0D 2F [08:20:22]RasterBufferAndPrint [08:20:22]line [08:20:22]line [08:20:22]line [08:20:22]line [08:20:22]line [08:20:22]written 0, free lines is 3409 [08:20:22]process_action close_receipt done [08:20:22]requested_data is exist [08:20:22]produce_requested_data [08:20:22]requested_item fm.sn is exist - process it [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 11 00 00 [08:20:22]Write to MH i2c: E2 08 00 F4 63 80 11 00 00 00 00 00 00 D1 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 17 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 17 00 F4 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 21 [08:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:20:22]wFMCommunicate OK [08:20:22]requested_item fd.num is exist - process it [08:20:22]SAM_PROTO_GetFieldsCounters [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 00 00 [08:20:22]Write to MH i2c: E2 08 00 F5 63 80 13 00 00 00 00 00 00 D4 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 62 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 62 00 F5 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 62 74 01 00 0E 04 04 00 48 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 5C [08:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 62 74 01 00 0E 04 04 00 48 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:20:22]wFMCommunicate OK [08:20:22]SAM_PROTO_GetFieldsCounters done [08:20:22]requested_item shift.num is exist - process it [08:20:22]requested_item shift.opened is exist - process it [08:20:22]req_shift_opened [08:20:22]FM_GetShiftState [08:20:22]SAM_PROTO_GetShiftState [08:20:22]wFMCommunicate request_size=4 [08:20:22]MH_SAM_APDU [08:20:22]CAPDU: 80 13 01 00 [08:20:22]Write to MH i2c: E2 08 00 F6 63 80 13 01 00 00 00 00 00 D6 [08:20:22]Write i2c OK [08:20:22]MH_I2C_Read... [08:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:22]Read from MH i2c: E2 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 0E 00 [08:20:22]MH_I2C_Read... [08:20:22]Read from MH i2c: E2 0E 00 F6 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BB [08:20:22]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:20:22]wFMCommunicate OK [08:20:22]SAM_PROTO_GetShiftState done [08:20:22]FM_GetShiftState done [08:20:22]req_shift_opened done [08:20:22]requested_item shift.open_date is exist - process it [08:20:22]req_shift_open_date [08:20:22]req_shift_open_date done [08:20:22]produce_requested_data done [08:20:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95330,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:20:22]process_action_free close_receipt [08:20:22]json_value_free [08:20:22]json_value_free done [08:20:22]process_json_proto returns [08:20:22]Send response to host [08:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95330,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:20:22]free response buf [08:20:22]execute_script done [08:20:22]execute_script returns [08:20:22]free content buf [08:20:22]Sock 9.Close socket [08:20:22]Sock 9.Thread stoped [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:37]accept exits with 8 [08:21:37]New connection [08:21:37]New thread 3066813796 created [08:21:37]Thread 3066957156 joined [08:21:37]Waiting for new connection... [08:21:37] Sock 8.Parse request [08:21:37]Sock 8.Check first char [08:21:37]Sock 8.First char is OK [08:21:37]request: POST /json_proto HTTP/1.0 [08:21:37]Method: POST [08:21:37]URL: /json_proto [08:21:37]Method is POST - this is cgi request [08:21:37]url: /json_proto [08:21:37]query_string will be loaded in cgi processing [08:21:37]execute_cgi json_proto POST (null) [08:21:37]execute_cgi path=json_proto method=POST [08:21:37]POST find Content-Length [08:21:37]Host: 172.17.62.67:8080 [08:21:37]Content-Length: 816 [08:21:37]Content-Type: application/json [08:21:37] [08:21:37]POST finish read [08:21:37]Found Content-Length = 816 [08:21:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196309", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:37]execute_script... [08:21:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196309", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:37]POST & json_proto [08:21:37]process_json_proto [08:21:37]json parsed OK: [08:21:37]protocol is kg_v1.0 [08:21:37]action value=close_receipt [08:21:37]process_action close_receipt [08:21:37]cmd_close_receipt [08:21:37]MH_GetDate [08:21:37]Write to MH i2c: F0 00 00 F7 63 49 [08:21:37]Write i2c OK [08:21:37]MH_I2C_Read... [08:21:37]Read from MH i2c: F0 [08:21:37]MH_I2C_Read... [08:21:37]Read from MH i2c: F0 05 00 [08:21:37]MH_I2C_Read... [08:21:37]Read from MH i2c: F0 05 00 F7 63 00 1B 62 F1 65 21 [08:21:37]GetLastDocTimeStamp 1710318029 [08:21:37]current date 1710318107 [08:21:37]FM_GetShiftState [08:21:37]SAM_PROTO_GetShiftState [08:21:37]wFMCommunicate request_size=4 [08:21:37]MH_SAM_APDU [08:21:37]CAPDU: 80 13 01 00 [08:21:37]Write to MH i2c: E2 08 00 F8 63 80 13 01 00 00 00 00 00 D8 [08:21:37]Write i2c OK [08:21:37]MH_I2C_Read... [08:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:37]Read from MH i2c: E2 [08:21:37]MH_I2C_Read... [08:21:37]Read from MH i2c: E2 0E 00 [08:21:37]MH_I2C_Read... [08:21:37]Read from MH i2c: E2 0E 00 F8 63 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BD [08:21:37]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:21:37]wFMCommunicate OK [08:21:37]SAM_PROTO_GetShiftState done [08:21:37]FM_GetShiftState done [08:21:37]opened in 1710288279 [08:21:37]opened+sec_in_day 1710374679 [08:21:37]quantity*price = 50005 [08:21:37]sum+1 = 50007 [08:21:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 26 13.03.2024 08:21 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95331 ФПД: 135417524794459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T082147&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95331&fm=135417524794459&tin=02508201610067®Number=0000000000090555&sum=50006 [08:21:38]StoreToDocumentArchive [08:21:38]shift 328 fd 95331 [08:21:38]save to /storage/0328/doc_00095331 [08:21:38]save last doc name /storage/0328/doc_00095331 to /storage/kkm_last_doc_name [08:21:38]save OK [08:21:38]Clear old archive folders... [08:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:38]tlvbuf is 01AF2830 [08:21:38]SAM_PROTO_ClearQueue [08:21:38]wFMCommunicate request_size=4 [08:21:38]MH_SAM_APDU [08:21:38]CAPDU: 80 09 00 00 [08:21:38]Write to MH i2c: E2 08 00 05 64 80 09 00 00 00 00 00 00 DB [08:21:38]Write i2c OK [08:21:38]MH_I2C_Read... [08:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:39]Read from MH i2c: E2 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 03 00 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 03 00 05 64 00 90 00 DD [08:21:39]RAPDU: 90 00 [08:21:39]wFMCommunicate OK [08:21:39]SAM_PROTO_ClearQueue done [08:21:39]KKMCreateOFDPacket [08:21:39]OFDProtocolAddRootSTLVToBuf [08:21:39]FM_MakeSignedData [08:21:39]FM_MakeSignedData [08:21:39]SAM_PROTO_SignData [08:21:39]wFMCommunicate request_size=4 [08:21:39]MH_SAM_APDU [08:21:39]CAPDU: 80 0D 01 02 [08:21:39]Write to MH i2c: E2 08 00 06 64 80 0D 01 02 00 00 00 00 E3 [08:21:39]Write i2c OK [08:21:39]MH_I2C_Read... [08:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:39]Read from MH i2c: E2 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 03 00 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 03 00 06 64 00 90 00 DE [08:21:39]RAPDU: 90 00 [08:21:39]wFMCommunicate OK [08:21:39]wFMCommunicate request_size=255 [08:21:39]MH_SAM_APDU [08:21:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1B 62 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 74 01 00 35 04 06 00 7B [08:21:39]Write to MH i2c: E2 02 01 07 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1B 62 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 74 01 00 35 04 06 00 7B 00 00 21 [08:21:39]Write i2c OK [08:21:39]MH_I2C_Read... [08:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:39]Read from MH i2c: E2 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 03 00 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 03 00 07 64 00 90 00 DF [08:21:39]RAPDU: 90 00 [08:21:39]wFMCommunicate OK [08:21:39]wFMCommunicate request_size=10 [08:21:39]MH_SAM_APDU [08:21:39]CAPDU: 80 0D 02 02 05 29 59 76 34 5B [08:21:39]Write to MH i2c: E2 0D 00 08 64 80 0D 02 02 05 00 29 59 76 34 5B 00 00 77 [08:21:39]Write i2c OK [08:21:39]MH_I2C_Read... [08:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:39]Read from MH i2c: E2 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 03 00 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 03 00 08 64 00 90 00 E0 [08:21:39]RAPDU: 90 00 [08:21:39]wFMCommunicate OK [08:21:39]wFMCommunicate request_size=4 [08:21:39]MH_SAM_APDU [08:21:39]CAPDU: 80 0D 03 02 [08:21:39]Write to MH i2c: E2 08 00 09 64 80 0D 03 02 00 00 00 00 E8 [08:21:39]Write i2c OK [08:21:39]MH_I2C_Read... [08:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:39]Read from MH i2c: E2 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 0B 00 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 0B 00 09 64 00 C4 23 38 84 26 84 CD 52 90 00 55 [08:21:39]RAPDU: C4 23 38 84 26 84 CD 52 90 00 [08:21:39]wFMCommunicate OK [08:21:39]SAM_PROTO_SignData done [08:21:39]FM_MakeSignedData done [08:21:39]CreateOFDProtocolMessage [08:21:39]wFMCommunicate request_size=4 [08:21:39]MH_SAM_APDU [08:21:39]CAPDU: 80 11 00 00 [08:21:39]Write to MH i2c: E2 08 00 0A 64 80 11 00 00 00 00 00 00 E8 [08:21:39]Write i2c OK [08:21:39]MH_I2C_Read... [08:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:39]Read from MH i2c: E2 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 17 00 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: E2 17 00 0A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 38 [08:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:21:39]wFMCommunicate OK [08:21:39]CreateOFDProtocolMessage done [08:21:39]OFDSenderStorePacket 95331 [08:21:39]StoreOFDPacket docnum=95331 [08:21:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1B 53 07 01 65 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1B 62 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 74 01 00 35 04 06 00 7B 29 59 76 34 5B C4 23 38 84 26 84 CD 52 [08:21:39]CheckFolder [08:21:39]dirname=/storage/ofd_packets [08:21:39]CheckFolder done [08:21:39]ProducePacketName [08:21:39]name=ofd_packets/00095331 [08:21:39]NVStorageSaveData ofd_packets/00095331 [08:21:39]File name is /storage/ofd_packets/00095331 [08:21:39]Write 301 bytes [08:21:39]NVStorageSaveData done [08:21:39]OFDSenderStorePacket done [08:21:39]KKMCreateOFDPacket done [08:21:39]NVStorageSaveData kkm_last_timestamp [08:21:39]File name is /storage/kkm_last_timestamp [08:21:39]Write 4 bytes [08:21:39]NVStorageSaveData done [08:21:39]ExternCall_PrintAddStr [08:21:39]wPrintStart [08:21:39]Write to MH i2c: 01 00 00 0B 64 6F [08:21:39]Write i2c OK [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: 01 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: 01 07 00 [08:21:39]MH_I2C_Read... [08:21:39]Read from MH i2c: 01 07 00 0B 64 00 80 00 00 00 FF 0F 04 [08:21:39]RasterBufferAndPrint [08:21:39]line Счет N : (1)196309 [08:21:39]line ИНН: 02508201610067 [08:21:39]line Контрольно-Кассовый Чек [08:21:39]line ПРОДАЖА [08:21:39]line ТРК (МРК, ГНК) : 12 [08:21:39]line Товар: 2710124130 [08:21:39]line Аи-92-К-5 [08:21:39]line 7.950 * 62.90 [08:21:39]line = 500.06 [08:21:39]line НДС 12% НСП 1% [08:21:39]line > о реализуемом товаре [08:21:39]line ИТОГО: 500.06 [08:21:39]line НСП 1% : 4.42 [08:21:39]line НДС 12% : 53.10 [08:21:39]line Наличными: 0.00 [08:21:39]line Безнал.: 500.06 [08:21:39]line Место: АЗС № 6 "Партнер Нефть" [08:21:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:21:39]line СНО: Общий режим [08:21:39]line Чек 26 13.03.2024 08:21 [08:21:39]line Смена: 328 ФФД: 1.0 [08:21:39]line ЗНМ: 0300000009 [08:21:39]line РНМ: 0000000000090555 [08:21:39]line Версия ККМ: 001 [08:21:39]line Платежная система: Бакай Банк [08:21:39]line ФМ: 0000000000874811 [08:21:39]line ФД: 95331 [08:21:39]line ФПД: 135417524794459 [08:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T082147&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95331&fm=135417524794459&tin=02508201610067®Number=0000000000090555&sum=50006 [08:21:39]OFD Sender: Processing packet 95331 [packets to send 30, broken 29] [08:21:39]ProducePacketName [08:21:39]name=ofd_packets/00095331 [08:21:39]OFD Sender: To server: pG, [08:21:39]CommunicateWithHost lk.salyk.kg:30040 [08:21:39]ConnectInit lk.salyk.kg [08:21:39]written 0, free lines is 4095 [08:21:40]Write to MH i2c: 01 00 00 35 64 99 [08:21:40]Write i2c OK [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: 01 [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: 01 07 00 [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: 01 07 00 35 64 00 80 00 00 00 57 0D 84 [08:21:40]RasterBufferAndPrint [08:21:40]line [08:21:40]line [08:21:40]line [08:21:40]line [08:21:40]line [08:21:40]written 0, free lines is 3421 [08:21:40]process_action close_receipt done [08:21:40]requested_data is exist [08:21:40]produce_requested_data [08:21:40]requested_item fm.sn is exist - process it [08:21:40]wFMCommunicate request_size=4 [08:21:40]MH_SAM_APDU [08:21:40]CAPDU: 80 11 00 00 [08:21:40]Write to MH i2c: E2 08 00 3C 64 80 11 00 00 00 00 00 00 1A [08:21:40]Write i2c OK [08:21:40]MH_I2C_Read... [08:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:40]Read from MH i2c: E2 [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: E2 17 00 [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: E2 17 00 3C 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6A [08:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:21:40]wFMCommunicate OK [08:21:40]requested_item fd.num is exist - process it [08:21:40]SAM_PROTO_GetFieldsCounters [08:21:40]wFMCommunicate request_size=4 [08:21:40]MH_SAM_APDU [08:21:40]CAPDU: 80 13 00 00 [08:21:40]Write to MH i2c: E2 08 00 3D 64 80 13 00 00 00 00 00 00 1D [08:21:40]Write i2c OK [08:21:40]MH_I2C_Read... [08:21:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:40]Read from MH i2c: E2 [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: E2 62 00 [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: E2 62 00 3D 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 63 74 01 00 0E 04 04 00 48 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 A9 [08:21:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 63 74 01 00 0E 04 04 00 48 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:21:40]wFMCommunicate OK [08:21:40]SAM_PROTO_GetFieldsCounters done [08:21:40]requested_item shift.num is exist - process it [08:21:40]requested_item shift.opened is exist - process it [08:21:40]req_shift_opened [08:21:40]FM_GetShiftState [08:21:40]SAM_PROTO_GetShiftState [08:21:40]wFMCommunicate request_size=4 [08:21:40]MH_SAM_APDU [08:21:40]CAPDU: 80 13 01 00 [08:21:40]Write to MH i2c: E2 08 00 3E 64 80 13 01 00 00 00 00 00 1F [08:21:40]Write i2c OK [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: E2 [08:21:40]MH_I2C_Read... [08:21:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:40]Read from MH i2c: E2 0E 00 [08:21:40]MH_I2C_Read... [08:21:40]Read from MH i2c: E2 0E 00 3E 64 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 04 [08:21:40]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:21:40]wFMCommunicate OK [08:21:40]SAM_PROTO_GetShiftState done [08:21:40]FM_GetShiftState done [08:21:40]req_shift_opened done [08:21:40]requested_item shift.open_date is exist - process it [08:21:40]req_shift_open_date [08:21:40]req_shift_open_date done [08:21:40]produce_requested_data done [08:21:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95331,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:21:40]process_action_free close_receipt [08:21:40]json_value_free [08:21:40]json_value_free done [08:21:40]process_json_proto returns [08:21:40]Send response to host [08:21:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95331,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:21:40]free response buf [08:21:40]execute_script done [08:21:40]execute_script returns [08:21:40]free content buf [08:21:40]Sock 8.Close socket [08:21:40]Sock 8.Thread stoped [08:21:44]ConnectInit Can't take IP for lk.salyk.kg [08:21:44]CommunicateWithHost connect error [08:21:44]CommunicateWithHost err = -1 [08:21:44]OFD Sender: Server communicate error [08:21:49]OFD Sender: Processing packet 95331 [packets to send 30, broken 29] [08:21:49]ProducePacketName [08:21:49]name=ofd_packets/00095331 [08:21:49]OFD Sender: To server: pG, [08:21:49]CommunicateWithHost lk.salyk.kg:30040 [08:21:49]ConnectInit lk.salyk.kg [08:21:52]Connected sock=8 [08:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1B 53 07 01 65 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1B 62 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 74 01 00 35 04 06 00 7B 29 59 76 34 5B C4 23 38 84 26 84 CD 52 [08:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 FA B2 47 00 44 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 63 74 01 00 F4 03 04 00 7B 0D F1 65 B6 04 01 00 00 51 87 F0 78 87 5F 30 EB [08:21:52]CommunicateWithHost err = 0 [08:21:52]CheckOFDResponse [08:21:52]1017 (14) - 77093643461234 [08:21:52]1041 (16) - 0000000000874811 [08:21:52]1040 (4) - 95331 [08:21:52]1012 (4) - 13.03.2024 02:20 [08:21:52]1206 (1) - 0 [08:21:52]OFD Sender: Remove packet 95331 [08:21:52]ProducePacketName [08:21:52]name=ofd_packets/00095331 [08:21:52]NVStorageDeleteData [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:22:58]accept exits with 10 [08:22:58]New connection [08:22:58]New thread 3066957156 created [08:22:58]Thread 3066813796 joined [08:22:58]Waiting for new connection... [08:22:58] Sock 10.Parse request [08:22:58]Sock 10.Check first char [08:22:58]Sock 10.First char is OK [08:22:58]request: POST /json_proto HTTP/1.0 [08:22:58]Method: POST [08:22:58]URL: /json_proto [08:22:58]Method is POST - this is cgi request [08:22:58]url: /json_proto [08:22:58]query_string will be loaded in cgi processing [08:22:58]execute_cgi json_proto POST (null) [08:22:58]execute_cgi path=json_proto method=POST [08:22:58]POST find Content-Length [08:22:58]Host: 172.17.62.67:8080 [08:22:58]Content-Length: 677 [08:22:58]Content-Type: application/json [08:22:58] [08:22:58]POST finish read [08:22:58]Found Content-Length = 677 [08:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196311", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:58]execute_script... [08:22:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196311", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:58]POST & json_proto [08:22:58]process_json_proto [08:22:58]json parsed OK: [08:22:58]protocol is kg_v1.0 [08:22:58]action value=close_receipt [08:22:58]process_action close_receipt [08:22:58]cmd_close_receipt [08:22:58]MH_GetDate [08:22:58]Write to MH i2c: F0 00 00 3F 64 92 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: F0 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: F0 05 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: F0 05 00 3F 64 00 6C 62 F1 65 BB [08:22:58]GetLastDocTimeStamp 1710318107 [08:22:58]current date 1710318188 [08:22:58]FM_GetShiftState [08:22:58]SAM_PROTO_GetShiftState [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 13 01 00 [08:22:58]Write to MH i2c: E2 08 00 40 64 80 13 01 00 00 00 00 00 21 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0E 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0E 00 40 64 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 06 [08:22:58]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:22:58]wFMCommunicate OK [08:22:58]SAM_PROTO_GetShiftState done [08:22:58]FM_GetShiftState done [08:22:58]opened in 1710288279 [08:22:58]opened+sec_in_day 1710374679 [08:22:58]quantity*price = 40004 [08:22:58]sum+1 = 40005 [08:22:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 27 13.03.2024 08:23 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95332 ФПД: 244433499581041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T082308&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95332&fm=244433499581041&tin=02508201610067®Number=0000000000090555&sum=40000 [08:22:59]StoreToDocumentArchive [08:22:59]shift 328 fd 95332 [08:22:59]save to /storage/0328/doc_00095332 [08:22:59]save last doc name /storage/0328/doc_00095332 to /storage/kkm_last_doc_name [08:22:59]save OK [08:22:59]Clear old archive folders... [08:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:59]tlvbuf is 01A38CF0 [08:22:59]SAM_PROTO_ClearQueue [08:22:59]wFMCommunicate request_size=4 [08:22:59]MH_SAM_APDU [08:22:59]CAPDU: 80 09 00 00 [08:22:59]Write to MH i2c: E2 08 00 4D 64 80 09 00 00 00 00 00 00 23 [08:22:59]Write i2c OK [08:22:59]MH_I2C_Read... [08:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:59]Read from MH i2c: E2 [08:22:59]MH_I2C_Read... [08:22:59]Read from MH i2c: E2 03 00 [08:22:59]MH_I2C_Read... [08:22:59]Read from MH i2c: E2 03 00 4D 64 00 90 00 25 [08:22:59]RAPDU: 90 00 [08:22:59]wFMCommunicate OK [08:22:59]SAM_PROTO_ClearQueue done [08:22:59]KKMCreateOFDPacket [08:22:59]OFDProtocolAddRootSTLVToBuf [08:22:59]FM_MakeSignedData [08:22:59]FM_MakeSignedData [08:22:59]SAM_PROTO_SignData [08:22:59]wFMCommunicate request_size=4 [08:22:59]MH_SAM_APDU [08:22:59]CAPDU: 80 0D 01 02 [08:22:59]Write to MH i2c: E2 08 00 4E 64 80 0D 01 02 00 00 00 00 2B [08:22:59]Write i2c OK [08:22:59]MH_I2C_Read... [08:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:59]Read from MH i2c: E2 [08:22:59]MH_I2C_Read... [08:22:59]Read from MH i2c: E2 03 00 [08:22:59]MH_I2C_Read... [08:22:59]Read from MH i2c: E2 03 00 4E 64 00 90 00 26 [08:22:59]RAPDU: 90 00 [08:22:59]wFMCommunicate OK [08:22:59]wFMCommunicate request_size=255 [08:22:59]MH_SAM_APDU [08:22:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6C 62 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 74 01 00 35 04 06 00 DE [08:22:59]Write to MH i2c: E2 02 01 4F 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6C 62 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 74 01 00 35 04 06 00 DE 00 00 AD [08:23:00]ConnectInit Can't connect to host [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 03 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 03 00 4F 64 00 90 00 27 [08:23:00]RAPDU: 90 00 [08:23:00]wFMCommunicate OK [08:23:00]wFMCommunicate request_size=10 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 0D 02 02 05 4F 9B E9 EA 71 [08:23:00]Write to MH i2c: E2 0D 00 50 64 80 0D 02 02 05 00 4F 9B E9 EA 71 00 00 66 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 03 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 03 00 50 64 00 90 00 28 [08:23:00]RAPDU: 90 00 [08:23:00]wFMCommunicate OK [08:23:00]wFMCommunicate request_size=4 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 0D 03 02 [08:23:00]Write to MH i2c: E2 08 00 51 64 80 0D 03 02 00 00 00 00 30 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 0B 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 0B 00 51 64 00 B0 3D 1F A2 EA 53 12 EC 90 00 1A [08:23:00]RAPDU: B0 3D 1F A2 EA 53 12 EC 90 00 [08:23:00]wFMCommunicate OK [08:23:00]SAM_PROTO_SignData done [08:23:00]FM_MakeSignedData done [08:23:00]CreateOFDProtocolMessage [08:23:00]wFMCommunicate request_size=4 [08:23:00]MH_SAM_APDU [08:23:00]CAPDU: 80 11 00 00 [08:23:00]Write to MH i2c: E2 08 00 52 64 80 11 00 00 00 00 00 00 30 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:00]Read from MH i2c: E2 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 17 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: E2 17 00 52 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 80 [08:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:23:00]wFMCommunicate OK [08:23:00]CreateOFDProtocolMessage done [08:23:00]OFDSenderStorePacket 95332 [08:23:00]StoreOFDPacket docnum=95332 [08:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 48 30 07 01 20 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6C 62 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 74 01 00 35 04 06 00 DE 4F 9B E9 EA 71 B0 3D 1F A2 EA 53 12 EC [08:23:00]CheckFolder [08:23:00]dirname=/storage/ofd_packets [08:23:00]CheckFolder done [08:23:00]ProducePacketName [08:23:00]name=ofd_packets/00095332 [08:23:00]NVStorageSaveData ofd_packets/00095332 [08:23:00]File name is /storage/ofd_packets/00095332 [08:23:00]Write 301 bytes [08:23:00]NVStorageSaveData done [08:23:00]OFDSenderStorePacket done [08:23:00]KKMCreateOFDPacket done [08:23:00]NVStorageSaveData kkm_last_timestamp [08:23:00]File name is /storage/kkm_last_timestamp [08:23:00]Write 4 bytes [08:23:00]NVStorageSaveData done [08:23:00]ExternCall_PrintAddStr [08:23:00]wPrintStart [08:23:00]Write to MH i2c: 01 00 00 53 64 B7 [08:23:00]Write i2c OK [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 07 00 [08:23:00]MH_I2C_Read... [08:23:00]Read from MH i2c: 01 07 00 53 64 00 80 00 00 00 FF 0F 4C [08:23:00]RasterBufferAndPrint [08:23:00]line Счет N : (1)196311 [08:23:00]line ИНН: 02508201610067 [08:23:00]line Контрольно-Кассовый Чек [08:23:00]line ПРОДАЖА [08:23:00]line ТРК (МРК, ГНК) : 32 [08:23:00]line Товар: 2710124130 [08:23:00]line Аи-92-К-5 [08:23:00]line 6.360 * 62.90 [08:23:00]line = 400.04 [08:23:00]line НДС 12% НСП 1% [08:23:00]line > о реализуемом товаре [08:23:00]line ОКРУГЛЕНИЕ: -0.04 [08:23:00]line ИТОГО: 400.00 [08:23:00]line Внесено: 400.00 [08:23:00]line СДАЧА: 0.00 [08:23:00]line НСП 1% : 3.54 [08:23:00]line НДС 12% : 42.48 [08:23:00]line Наличными: 400.00 [08:23:00]line Безнал.: 0.00 [08:23:00]line Место: АЗС № 6 "Партнер Нефть" [08:23:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:23:00]line СНО: Общий режим [08:23:00]line Чек 27 13.03.2024 08:23 [08:23:00]line Смена: 328 ФФД: 1.0 [08:23:00]line ЗНМ: 0300000009 [08:23:00]line РНМ: 0000000000090555 [08:23:00]line Версия ККМ: 001 [08:23:00]line ФМ: 0000000000874811 [08:23:00]line ФД: 95332 [08:23:00]line ФПД: 244433499581041 [08:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T082308&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95332&fm=244433499581041&tin=02508201610067®Number=0000000000090555&sum=40000 [08:23:00]written 0, free lines is 4095 [08:23:00]OFD Sender: Processing packet 95332 [packets to send 30, broken 29] [08:23:00]ProducePacketName [08:23:00]name=ofd_packets/00095332 [08:23:00]OFD Sender: To server: pG, [08:23:00]CommunicateWithHost lk.salyk.kg:30040 [08:23:00]ConnectInit lk.salyk.kg [08:23:00]Connected sock=9 [08:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 48 30 07 01 20 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 6C 62 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 74 01 00 35 04 06 00 DE 4F 9B E9 EA 71 B0 3D 1F A2 EA 53 12 EC [08:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1E 96 47 00 58 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 64 74 01 00 F4 03 04 00 BF 0D F1 65 B6 04 01 00 00 E8 9C 28 DE 4F F8 D6 91 [08:23:00]CommunicateWithHost err = 0 [08:23:00]CheckOFDResponse [08:23:00]1017 (14) - 77093643461234 [08:23:00]1041 (16) - 0000000000874811 [08:23:00]1040 (4) - 95332 [08:23:00]1012 (4) - 13.03.2024 02:21 [08:23:00]1206 (1) - 0 [08:23:00]OFD Sender: Remove packet 95332 [08:23:00]ProducePacketName [08:23:00]name=ofd_packets/00095332 [08:23:00]NVStorageDeleteData [08:23:01]Write to MH i2c: 01 00 00 7E 64 E2 [08:23:01]Write i2c OK [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: 01 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: 01 07 00 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: 01 07 00 7E 64 00 80 00 00 00 5E 0D D4 [08:23:01]RasterBufferAndPrint [08:23:01]line [08:23:01]line [08:23:01]line [08:23:01]line [08:23:01]line [08:23:01]written 0, free lines is 3440 [08:23:01]process_action close_receipt done [08:23:01]requested_data is exist [08:23:01]produce_requested_data [08:23:01]requested_item fm.sn is exist - process it [08:23:01]wFMCommunicate request_size=4 [08:23:01]MH_SAM_APDU [08:23:01]CAPDU: 80 11 00 00 [08:23:01]Write to MH i2c: E2 08 00 85 64 80 11 00 00 00 00 00 00 63 [08:23:01]Write i2c OK [08:23:01]MH_I2C_Read... [08:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:01]Read from MH i2c: E2 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: E2 17 00 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: E2 17 00 85 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B3 [08:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:23:01]wFMCommunicate OK [08:23:01]requested_item fd.num is exist - process it [08:23:01]SAM_PROTO_GetFieldsCounters [08:23:01]wFMCommunicate request_size=4 [08:23:01]MH_SAM_APDU [08:23:01]CAPDU: 80 13 00 00 [08:23:01]Write to MH i2c: E2 08 00 86 64 80 13 00 00 00 00 00 00 66 [08:23:01]Write i2c OK [08:23:01]MH_I2C_Read... [08:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:01]Read from MH i2c: E2 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: E2 62 00 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: E2 62 00 86 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 64 74 01 00 0E 04 04 00 48 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 F6 [08:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 64 74 01 00 0E 04 04 00 48 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:23:01]wFMCommunicate OK [08:23:01]SAM_PROTO_GetFieldsCounters done [08:23:01]requested_item shift.num is exist - process it [08:23:01]requested_item shift.opened is exist - process it [08:23:01]req_shift_opened [08:23:01]FM_GetShiftState [08:23:01]SAM_PROTO_GetShiftState [08:23:01]wFMCommunicate request_size=4 [08:23:01]MH_SAM_APDU [08:23:01]CAPDU: 80 13 01 00 [08:23:01]Write to MH i2c: E2 08 00 87 64 80 13 01 00 00 00 00 00 68 [08:23:01]Write i2c OK [08:23:01]MH_I2C_Read... [08:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:01]Read from MH i2c: E2 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: E2 0E 00 [08:23:01]MH_I2C_Read... [08:23:01]Read from MH i2c: E2 0E 00 87 64 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4D [08:23:01]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:23:01]wFMCommunicate OK [08:23:01]SAM_PROTO_GetShiftState done [08:23:01]FM_GetShiftState done [08:23:01]req_shift_opened done [08:23:01]requested_item shift.open_date is exist - process it [08:23:01]req_shift_open_date [08:23:01]req_shift_open_date done [08:23:01]produce_requested_data done [08:23:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95332,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:23:01]process_action_free close_receipt [08:23:01]json_value_free [08:23:01]json_value_free done [08:23:01]process_json_proto returns [08:23:01]Send response to host [08:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95332,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:23:01]free response buf [08:23:01]execute_script done [08:23:01]execute_script returns [08:23:01]free content buf [08:23:01]Sock 10.Close socket [08:23:01]Sock 10.Thread stoped [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:08]accept exits with 8 [08:23:08]New connection [08:23:08]New thread 3066813796 created [08:23:08]Thread 3066957156 joined [08:23:08]Waiting for new connection... [08:23:08] Sock 8.Parse request [08:23:08]Sock 8.Check first char [08:23:08]Sock 8.First char is OK [08:23:08]request: POST /json_proto HTTP/1.0 [08:23:08]Method: POST [08:23:08]URL: /json_proto [08:23:08]Method is POST - this is cgi request [08:23:08]url: /json_proto [08:23:08]query_string will be loaded in cgi processing [08:23:08]execute_cgi json_proto POST (null) [08:23:08]execute_cgi path=json_proto method=POST [08:23:08]POST find Content-Length [08:23:08]Host: 172.17.62.67:8080 [08:23:08]Content-Length: 1191 [08:23:08]Content-Type: application/json [08:23:08] [08:23:08]POST finish read [08:23:08]Found Content-Length = 1191 [08:23:08]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196310\u000A13.03.2024 08:17\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689318.19\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:08]execute_script... [08:23:08]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196310\u000A13.03.2024 08:17\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3689318.19\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:08]POST & json_proto [08:23:08]process_json_proto [08:23:08]json parsed OK: [08:23:08]protocol is kg_v1.0 [08:23:08]action value=print_text [08:23:08]process_action print_text [08:23:08]cmd_print_text [08:23:08]ExternCall_PrintAddStr [08:23:08]wPrintStart [08:23:08]Write to MH i2c: 01 00 00 88 64 EC [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: 01 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: 01 07 00 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: 01 07 00 88 64 00 80 00 00 00 FF 0F 81 [08:23:08]RasterBufferAndPrint [08:23:08]line *****ТОВАРНЫЙ ЧЕК***** [08:23:08]line АЗС 6 [08:23:08]line Партнер нефть [08:23:08]line 02508201610067 [08:23:08]line Кассир : Сабырбек у. М. [08:23:08]line Счет N : (1)196310 [08:23:08]line 13.03.2024 08:17 [08:23:08]line ПРОДАЖА [08:23:08]line ТРК (МРК, ГНК): 51 [08:23:08]line Вид ГСМ : 2710194210 [08:23:08]line ДТ-К-5 [08:23:08]line 20.000 x 70.90 [08:23:08]line ИТОГ: 1418.00 [08:23:08]line Тип оплаты: Талоны: Партнер нефть [08:23:08]line 3689318.19 [08:23:08]line ______________________ [08:23:08]line (подпись) [08:23:08]written 0, free lines is 4095 [08:23:08]Write to MH i2c: 01 00 00 9C 64 00 [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: 01 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: 01 07 00 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: 01 07 00 9C 64 00 80 00 00 00 6B 0E 00 [08:23:08]RasterBufferAndPrint [08:23:08]line [08:23:08]line [08:23:08]line [08:23:08]line [08:23:08]line [08:23:08]written 0, free lines is 3709 [08:23:08]process_action print_text done [08:23:08]requested_data is exist [08:23:08]produce_requested_data [08:23:08]requested_item fm.sn is exist - process it [08:23:08]wFMCommunicate request_size=4 [08:23:08]MH_SAM_APDU [08:23:08]CAPDU: 80 11 00 00 [08:23:08]Write to MH i2c: E2 08 00 A3 64 80 11 00 00 00 00 00 00 81 [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:08]Read from MH i2c: E2 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: E2 17 00 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: E2 17 00 A3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D1 [08:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:23:08]wFMCommunicate OK [08:23:08]requested_item fd.num is exist - process it [08:23:08]SAM_PROTO_GetFieldsCounters [08:23:08]wFMCommunicate request_size=4 [08:23:08]MH_SAM_APDU [08:23:08]CAPDU: 80 13 00 00 [08:23:08]Write to MH i2c: E2 08 00 A4 64 80 13 00 00 00 00 00 00 84 [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:08]Read from MH i2c: E2 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: E2 62 00 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: E2 62 00 A4 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 64 74 01 00 0E 04 04 00 48 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 14 [08:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 64 74 01 00 0E 04 04 00 48 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:23:08]wFMCommunicate OK [08:23:08]SAM_PROTO_GetFieldsCounters done [08:23:08]requested_item shift.num is exist - process it [08:23:08]requested_item shift.opened is exist - process it [08:23:08]req_shift_opened [08:23:08]FM_GetShiftState [08:23:08]SAM_PROTO_GetShiftState [08:23:08]wFMCommunicate request_size=4 [08:23:08]MH_SAM_APDU [08:23:08]CAPDU: 80 13 01 00 [08:23:08]Write to MH i2c: E2 08 00 A5 64 80 13 01 00 00 00 00 00 86 [08:23:08]Write i2c OK [08:23:08]MH_I2C_Read... [08:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:08]Read from MH i2c: E2 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: E2 0E 00 [08:23:08]MH_I2C_Read... [08:23:08]Read from MH i2c: E2 0E 00 A5 64 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 6B [08:23:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:23:08]wFMCommunicate OK [08:23:08]SAM_PROTO_GetShiftState done [08:23:08]FM_GetShiftState done [08:23:08]req_shift_opened done [08:23:08]requested_item shift.open_date is exist - process it [08:23:08]req_shift_open_date [08:23:08]req_shift_open_date done [08:23:08]produce_requested_data done [08:23:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95332,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:23:08]process_action_free print_text [08:23:08]json_value_free [08:23:08]json_value_free done [08:23:08]process_json_proto returns [08:23:08]Send response to host [08:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95332,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:23:08]free response buf [08:23:08]execute_script done [08:23:08]execute_script returns [08:23:08]free content buf [08:23:08]Sock 8.Close socket [08:23:08]Sock 8.Thread stoped [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:10]accept exits with 9 [08:30:10]New connection [08:30:10]New thread 3066957156 created [08:30:10]Thread 3066813796 joined [08:30:10]Waiting for new connection... [08:30:10] Sock 9.Parse request [08:30:10]Sock 9.Check first char [08:30:10]Sock 9.First char is OK [08:30:10]request: POST /json_proto HTTP/1.0 [08:30:10]Method: POST [08:30:10]URL: /json_proto [08:30:10]Method is POST - this is cgi request [08:30:10]url: /json_proto [08:30:10]query_string will be loaded in cgi processing [08:30:10]execute_cgi json_proto POST (null) [08:30:10]execute_cgi path=json_proto method=POST [08:30:10]POST find Content-Length [08:30:10]Host: 172.17.62.67:8080 [08:30:10]Content-Length: 819 [08:30:10]Content-Type: application/json [08:30:10] [08:30:10]POST finish read [08:30:10]Found Content-Length = 819 [08:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196312", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:10]execute_script... [08:30: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)196312", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:10]POST & json_proto [08:30:10]process_json_proto [08:30:10]json parsed OK: [08:30:10]protocol is kg_v1.0 [08:30:10]action value=close_receipt [08:30:10]process_action close_receipt [08:30:10]cmd_close_receipt [08:30:10]MH_GetDate [08:30:10]Write to MH i2c: F0 00 00 A6 64 F9 [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: F0 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: F0 05 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: F0 05 00 A6 64 00 1C 64 F1 65 D4 [08:30:10]GetLastDocTimeStamp 1710318188 [08:30:10]current date 1710318620 [08:30:10]FM_GetShiftState [08:30:10]SAM_PROTO_GetShiftState [08:30:10]wFMCommunicate request_size=4 [08:30:10]MH_SAM_APDU [08:30:10]CAPDU: 80 13 01 00 [08:30:10]Write to MH i2c: E2 08 00 A7 64 80 13 01 00 00 00 00 00 88 [08:30:10]Write i2c OK [08:30:10]MH_I2C_Read... [08:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:10]Read from MH i2c: E2 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 0E 00 [08:30:10]MH_I2C_Read... [08:30:10]Read from MH i2c: E2 0E 00 A7 64 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 6D [08:30:10]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:30:10]wFMCommunicate OK [08:30:10]SAM_PROTO_GetShiftState done [08:30:10]FM_GetShiftState done [08:30:10]opened in 1710288279 [08:30:10]opened+sec_in_day 1710374679 [08:30:10]quantity*price = 100011 [08:30:10]sum+1 = 100012 [08:30:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 28 13.03.2024 08:30 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95333 ФПД: 214138672898904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T083020&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95333&fm=214138672898904&tin=02508201610067®Number=0000000000090555&sum=100011 [08:30:11]StoreToDocumentArchive [08:30:11]shift 328 fd 95333 [08:30:11]save to /storage/0328/doc_00095333 [08:30:11]save last doc name /storage/0328/doc_00095333 to /storage/kkm_last_doc_name [08:30:11]save OK [08:30:11]Clear old archive folders... [08:30:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:11]tlvbuf is 01AC8F50 [08:30:11]SAM_PROTO_ClearQueue [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 09 00 00 [08:30:11]Write to MH i2c: E2 08 00 B4 64 80 09 00 00 00 00 00 00 8A [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 03 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 03 00 B4 64 00 90 00 8C [08:30:11]RAPDU: 90 00 [08:30:11]wFMCommunicate OK [08:30:11]SAM_PROTO_ClearQueue done [08:30:11]KKMCreateOFDPacket [08:30:11]OFDProtocolAddRootSTLVToBuf [08:30:11]FM_MakeSignedData [08:30:11]FM_MakeSignedData [08:30:11]SAM_PROTO_SignData [08:30:11]wFMCommunicate request_size=4 [08:30:11]MH_SAM_APDU [08:30:11]CAPDU: 80 0D 01 02 [08:30:11]Write to MH i2c: E2 08 00 B5 64 80 0D 01 02 00 00 00 00 92 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:11]Read from MH i2c: E2 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 03 00 [08:30:11]MH_I2C_Read... [08:30:11]Read from MH i2c: E2 03 00 B5 64 00 90 00 8D [08:30:11]RAPDU: 90 00 [08:30:11]wFMCommunicate OK [08:30:11]wFMCommunicate request_size=255 [08:30:11]MH_SAM_APDU [08:30: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 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1C 64 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 74 01 00 35 04 06 00 C2 [08:30:11]Write to MH i2c: E2 02 01 B6 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1C 64 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 74 01 00 35 04 06 00 C2 00 00 27 [08:30:11]Write i2c OK [08:30:11]MH_I2C_Read... [08:30:11]OFD Sender: No OFD packet to send [08:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 B6 64 00 90 00 8E [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=10 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 02 02 05 C2 0B 87 E3 58 [08:30:12]Write to MH i2c: E2 0D 00 B7 64 80 0D 02 02 05 00 C2 0B 87 E3 58 00 00 2E [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 03 00 B7 64 00 90 00 8F [08:30:12]RAPDU: 90 00 [08:30:12]wFMCommunicate OK [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 0D 03 02 [08:30:12]Write to MH i2c: E2 08 00 B8 64 80 0D 03 02 00 00 00 00 97 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 0B 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 0B 00 B8 64 00 D3 C2 44 22 53 58 CB F9 90 00 02 [08:30:12]RAPDU: D3 C2 44 22 53 58 CB F9 90 00 [08:30:12]wFMCommunicate OK [08:30:12]SAM_PROTO_SignData done [08:30:12]FM_MakeSignedData done [08:30:12]CreateOFDProtocolMessage [08:30:12]wFMCommunicate request_size=4 [08:30:12]MH_SAM_APDU [08:30:12]CAPDU: 80 11 00 00 [08:30:12]Write to MH i2c: E2 08 00 B9 64 80 11 00 00 00 00 00 00 97 [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:12]Read from MH i2c: E2 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 17 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: E2 17 00 B9 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E7 [08:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:30:12]wFMCommunicate OK [08:30:12]CreateOFDProtocolMessage done [08:30:12]OFDSenderStorePacket 95333 [08:30:12]StoreOFDPacket docnum=95333 [08:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 91 F7 07 01 34 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1C 64 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 74 01 00 35 04 06 00 C2 C2 0B 87 E3 58 D3 C2 44 22 53 58 CB F9 [08:30:12]CheckFolder [08:30:12]dirname=/storage/ofd_packets [08:30:12]CheckFolder done [08:30:12]ProducePacketName [08:30:12]name=ofd_packets/00095333 [08:30:12]NVStorageSaveData ofd_packets/00095333 [08:30:12]File name is /storage/ofd_packets/00095333 [08:30:12]Write 301 bytes [08:30:12]NVStorageSaveData done [08:30:12]OFDSenderStorePacket done [08:30:12]KKMCreateOFDPacket done [08:30:12]NVStorageSaveData kkm_last_timestamp [08:30:12]File name is /storage/kkm_last_timestamp [08:30:12]Write 4 bytes [08:30:12]NVStorageSaveData done [08:30:12]ExternCall_PrintAddStr [08:30:12]wPrintStart [08:30:12]Write to MH i2c: 01 00 00 BA 64 1E [08:30:12]Write i2c OK [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 07 00 [08:30:12]MH_I2C_Read... [08:30:12]Read from MH i2c: 01 07 00 BA 64 00 80 00 00 00 FF 0F B3 [08:30:12]RasterBufferAndPrint [08:30:12]line Счет N : (1)196312 [08:30:12]line ИНН: 02508201610067 [08:30:12]line Контрольно-Кассовый Чек [08:30:12]line ПРОДАЖА [08:30:12]line ТРК (МРК, ГНК) : 12 [08:30:12]line Товар: 2710124130 [08:30:12]line Аи-92-К-5 [08:30:12]line 15.900 * 62.90 [08:30:12]line = 1000.11 [08:30:12]line НДС 12% НСП 1% [08:30:12]line > о реализуемом товаре [08:30:12]line ИТОГО: 1000.11 [08:30:12]line НСП 1% : 8.85 [08:30:12]line НДС 12% : 106.21 [08:30:12]line Наличными: 0.00 [08:30:12]line Безнал.: 1000.11 [08:30:12]line Место: АЗС № 6 "Партнер Нефть" [08:30:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:30:12]line СНО: Общий режим [08:30:12]line Чек 28 13.03.2024 08:30 [08:30:12]line Смена: 328 ФФД: 1.0 [08:30:12]line ЗНМ: 0300000009 [08:30:12]line РНМ: 0000000000090555 [08:30:12]line Версия ККМ: 001 [08:30:12]line Платежная система: Бакай Банк [08:30:12]line ФМ: 0000000000874811 [08:30:12]line ФД: 95333 [08:30:12]line ФПД: 214138672898904 [08:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T083020&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95333&fm=214138672898904&tin=02508201610067®Number=0000000000090555&sum=100011 [08:30:12]OFD Sender: Processing packet 95333 [packets to send 30, broken 29] [08:30:12]ProducePacketName [08:30:12]name=ofd_packets/00095333 [08:30:12]OFD Sender: To server: pG, [08:30:12]CommunicateWithHost lk.salyk.kg:30040 [08:30:12]ConnectInit lk.salyk.kg [08:30:12]written 0, free lines is 4095 [08:30:12]Connected sock=10 [08:30:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 91 F7 07 01 34 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1C 64 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 74 01 00 35 04 06 00 C2 C2 0B 87 E3 58 D3 C2 44 22 53 58 CB F9 [08:30:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2A 25 47 00 31 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 65 74 01 00 F4 03 04 00 6F 0F F1 65 B6 04 01 00 00 4C 21 42 66 68 B4 C4 E2 [08:30:12]CommunicateWithHost err = 0 [08:30:12]CheckOFDResponse [08:30:12]1017 (14) - 77093643461234 [08:30:12]1041 (16) - 0000000000874811 [08:30:12]1040 (4) - 95333 [08:30:12]1012 (4) - 13.03.2024 02:29 [08:30:12]1206 (1) - 0 [08:30:12]OFD Sender: Remove packet 95333 [08:30:12]ProducePacketName [08:30:12]name=ofd_packets/00095333 [08:30:12]NVStorageDeleteData [08:30:13]Write to MH i2c: 01 00 00 E4 64 48 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: 01 07 00 E4 64 00 80 00 00 00 5D 0D 39 [08:30:13]RasterBufferAndPrint [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]line [08:30:13]written 0, free lines is 3425 [08:30:13]process_action close_receipt done [08:30:13]requested_data is exist [08:30:13]produce_requested_data [08:30:13]requested_item fm.sn is exist - process it [08:30:13]wFMCommunicate request_size=4 [08:30:13]MH_SAM_APDU [08:30:13]CAPDU: 80 11 00 00 [08:30:13]Write to MH i2c: E2 08 00 EB 64 80 11 00 00 00 00 00 00 C9 [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:13]Read from MH i2c: E2 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 17 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 17 00 EB 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 19 [08:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:30:13]wFMCommunicate OK [08:30:13]requested_item fd.num is exist - process it [08:30:13]SAM_PROTO_GetFieldsCounters [08:30:13]wFMCommunicate request_size=4 [08:30:13]MH_SAM_APDU [08:30:13]CAPDU: 80 13 00 00 [08:30:13]Write to MH i2c: E2 08 00 EC 64 80 13 00 00 00 00 00 00 CC [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:13]Read from MH i2c: E2 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 62 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 62 00 EC 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 65 74 01 00 0E 04 04 00 48 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 60 [08:30:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 65 74 01 00 0E 04 04 00 48 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 [08:30:13]wFMCommunicate OK [08:30:13]SAM_PROTO_GetFieldsCounters done [08:30:13]requested_item shift.num is exist - process it [08:30:13]requested_item shift.opened is exist - process it [08:30:13]req_shift_opened [08:30:13]FM_GetShiftState [08:30:13]SAM_PROTO_GetShiftState [08:30:13]wFMCommunicate request_size=4 [08:30:13]MH_SAM_APDU [08:30:13]CAPDU: 80 13 01 00 [08:30:13]Write to MH i2c: E2 08 00 ED 64 80 13 01 00 00 00 00 00 CE [08:30:13]Write i2c OK [08:30:13]MH_I2C_Read... [08:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:13]Read from MH i2c: E2 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 0E 00 [08:30:13]MH_I2C_Read... [08:30:13]Read from MH i2c: E2 0E 00 ED 64 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B3 [08:30:13]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:30:13]wFMCommunicate OK [08:30:13]SAM_PROTO_GetShiftState done [08:30:13]FM_GetShiftState done [08:30:13]req_shift_opened done [08:30:13]requested_item shift.open_date is exist - process it [08:30:13]req_shift_open_date [08:30:13]req_shift_open_date done [08:30:13]produce_requested_data done [08:30:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95333,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:30:13]process_action_free close_receipt [08:30:13]json_value_free [08:30:13]json_value_free done [08:30:13]process_json_proto returns [08:30:13]Send response to host [08:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95333,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:30:13]free response buf [08:30:13]execute_script done [08:30:13]execute_script returns [08:30:13]free content buf [08:30:13]Sock 9.Close socket [08:30:13]Sock 9.Thread stoped [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:37]accept exits with 8 [08:31:37]New connection [08:31:37]New thread 3066813796 created [08:31:37]Thread 3066957156 joined [08:31:37]Waiting for new connection... [08:31:37] Sock 8.Parse request [08:31:37]Sock 8.Check first char [08:31:37]Sock 8.First char is OK [08:31:37]request: POST /json_proto HTTP/1.0 [08:31:37]Method: POST [08:31:37]URL: /json_proto [08:31:37]Method is POST - this is cgi request [08:31:37]url: /json_proto [08:31:37]query_string will be loaded in cgi processing [08:31:37]execute_cgi json_proto POST (null) [08:31:37]execute_cgi path=json_proto method=POST [08:31:37]POST find Content-Length [08:31:37]Host: 172.17.62.67:8080 [08:31:37]Content-Length: 1197 [08:31:37]Content-Type: application/json [08:31:37] [08:31:37]POST finish read [08:31:37]Found Content-Length = 1197 [08:31:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196313\u000A13.03.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A3821836.35.34\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:37]execute_script... [08:31:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196313\u000A13.03.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A3821836.35.34\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:37]POST & json_proto [08:31:37]process_json_proto [08:31:37]json parsed OK: [08:31:37]protocol is kg_v1.0 [08:31:37]action value=print_text [08:31:37]process_action print_text [08:31:37]cmd_print_text [08:31:37]ExternCall_PrintAddStr [08:31:37]wPrintStart [08:31:37]Write to MH i2c: 01 00 00 EE 64 52 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 EE 64 00 80 00 00 00 FF 0F E7 [08:31:37]RasterBufferAndPrint [08:31:37]line *****ТОВАРНЫЙ ЧЕК***** [08:31:37]line АЗС 6 [08:31:37]line Партнер нефть [08:31:37]line 02508201610067 [08:31:37]line Кассир : Сабырбек у. М. [08:31:37]line Счет N : (1)196313 [08:31:37]line 13.03.2024 08:25 [08:31:37]line ПРОДАЖА [08:31:37]line ТРК (МРК, ГНК): 32 [08:31:37]line Вид ГСМ : 2710124130 [08:31:37]line Аи-92-К-5 [08:31:37]line 30.000 x 62.90 [08:31:37]line ИТОГ: 1887.00 [08:31:37]line Тип оплаты: Талоны: Партнер нефть [08:31:37]line 3821836.35.34 [08:31:37]line ______________________ [08:31:37]line (подпись) [08:31:37]written 0, free lines is 4095 [08:31:37]Write to MH i2c: 01 00 00 02 65 67 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 02 65 00 80 00 00 00 73 0E 6F [08:31:37]RasterBufferAndPrint [08:31:37]line [08:31:37]line [08:31:37]line [08:31:37]line [08:31:37]line [08:31:37]written 0, free lines is 3704 [08:31:37]process_action print_text done [08:31:37]requested_data is exist [08:31:37]produce_requested_data [08:31:37]requested_item fm.sn is exist - process it [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 11 00 00 [08:31:37]Write to MH i2c: E2 08 00 09 65 80 11 00 00 00 00 00 00 E8 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:37]Read from MH i2c: E2 17 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 17 00 09 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 38 [08:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:31:37]wFMCommunicate OK [08:31:37]requested_item fd.num is exist - process it [08:31:37]SAM_PROTO_GetFieldsCounters [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 13 00 00 [08:31:37]Write to MH i2c: E2 08 00 0A 65 80 13 00 00 00 00 00 00 EB [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 62 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 62 00 0A 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 65 74 01 00 0E 04 04 00 48 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 7F [08:31:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 65 74 01 00 0E 04 04 00 48 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 [08:31:37]wFMCommunicate OK [08:31:37]SAM_PROTO_GetFieldsCounters done [08:31:37]requested_item shift.num is exist - process it [08:31:37]requested_item shift.opened is exist - process it [08:31:37]req_shift_opened [08:31:37]FM_GetShiftState [08:31:37]SAM_PROTO_GetShiftState [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 13 01 00 [08:31:37]Write to MH i2c: E2 08 00 0B 65 80 13 01 00 00 00 00 00 ED [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0E 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0E 00 0B 65 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 D2 [08:31:37]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:31:37]wFMCommunicate OK [08:31:37]SAM_PROTO_GetShiftState done [08:31:37]FM_GetShiftState done [08:31:37]req_shift_opened done [08:31:37]requested_item shift.open_date is exist - process it [08:31:37]req_shift_open_date [08:31:37]req_shift_open_date done [08:31:37]produce_requested_data done [08:31:37]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95333,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:31:37]process_action_free print_text [08:31:37]json_value_free [08:31:37]json_value_free done [08:31:37]process_json_proto returns [08:31:37]Send response to host [08:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95333,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:31:37]free response buf [08:31:37]execute_script done [08:31:37]execute_script returns [08:31:37]free content buf [08:31:37]Sock 8.Close socket [08:31:37]Sock 8.Thread stoped [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:41]accept exits with 9 [08:34:41]New connection [08:34:41]New thread 3066957156 created [08:34:41]Thread 3066813796 joined [08:34:41]Waiting for new connection... [08:34:41] Sock 9.Parse request [08:34:41]Sock 9.Check first char [08:34:41]Sock 9.First char is OK [08:34:41]request: POST /json_proto HTTP/1.0 [08:34:41]Method: POST [08:34:41]URL: /json_proto [08:34:41]Method is POST - this is cgi request [08:34:41]url: /json_proto [08:34:41]query_string will be loaded in cgi processing [08:34:41]execute_cgi json_proto POST (null) [08:34:41]execute_cgi path=json_proto method=POST [08:34:41]POST find Content-Length [08:34:41]Host: 172.17.62.67:8080 [08:34:41]Content-Length: 1200 [08:34:41]Content-Type: application/json [08:34:41] [08:34:41]POST finish read [08:34:41]Found Content-Length = 1200 [08:34:41]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196314\u000A13.03.2024 08:28\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 15.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 943.50\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\u000A53283\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:41]execute_script... [08:34:41]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196314\u000A13.03.2024 08:28\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 15.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 943.50\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\u000A53283\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:41]POST & json_proto [08:34:41]process_json_proto [08:34:41]json parsed OK: [08:34:41]protocol is kg_v1.0 [08:34:41]action value=print_text [08:34:41]process_action print_text [08:34:41]cmd_print_text [08:34:41]ExternCall_PrintAddStr [08:34:41]wPrintStart [08:34:41]Write to MH i2c: 01 00 00 0C 65 71 [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 07 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 07 00 0C 65 00 80 00 00 00 FF 0F 06 [08:34:41]RasterBufferAndPrint [08:34:41]line *****ТОВАРНЫЙ ЧЕК***** [08:34:41]line АЗС 6 [08:34:41]line Партнер нефть [08:34:41]line 02508201610067 [08:34:41]line Кассир : Сабырбек у. М. [08:34:41]line Счет N : (1)196314 [08:34:41]line 13.03.2024 08:28 [08:34:41]line ПРОДАЖА [08:34:41]line ТРК (МРК, ГНК): 22 [08:34:41]line Вид ГСМ : 2710124130 [08:34:41]line Аи-92-К-5 [08:34:41]line 15.000 x 62.90 [08:34:41]line ИТОГ: 943.50 [08:34:41]line Тип оплаты: Талоны: Топливная Карта [08:34:41]line 53283 [08:34:41]line ______________________ [08:34:41]line (подпись) [08:34:41]written 0, free lines is 4095 [08:34:41]Write to MH i2c: 01 00 00 20 65 85 [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 07 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 07 00 20 65 00 80 00 00 00 69 0E 83 [08:34:41]RasterBufferAndPrint [08:34:41]line [08:34:41]line [08:34:41]line [08:34:41]line [08:34:41]line [08:34:41]written 0, free lines is 3693 [08:34:41]process_action print_text done [08:34:41]requested_data is exist [08:34:41]produce_requested_data [08:34:41]requested_item fm.sn is exist - process it [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 11 00 00 [08:34:41]Write to MH i2c: E2 08 00 27 65 80 11 00 00 00 00 00 00 06 [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 17 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 17 00 27 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 56 [08:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:34:41]wFMCommunicate OK [08:34:41]requested_item fd.num is exist - process it [08:34:41]SAM_PROTO_GetFieldsCounters [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 13 00 00 [08:34:41]Write to MH i2c: E2 08 00 28 65 80 13 00 00 00 00 00 00 09 [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:42]Read from MH i2c: E2 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: E2 62 00 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: E2 62 00 28 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 65 74 01 00 0E 04 04 00 48 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 9D [08:34:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 65 74 01 00 0E 04 04 00 48 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 [08:34:42]wFMCommunicate OK [08:34:42]SAM_PROTO_GetFieldsCounters done [08:34:42]requested_item shift.num is exist - process it [08:34:42]requested_item shift.opened is exist - process it [08:34:42]req_shift_opened [08:34:42]FM_GetShiftState [08:34:42]SAM_PROTO_GetShiftState [08:34:42]wFMCommunicate request_size=4 [08:34:42]MH_SAM_APDU [08:34:42]CAPDU: 80 13 01 00 [08:34:42]Write to MH i2c: E2 08 00 29 65 80 13 01 00 00 00 00 00 0B [08:34:42]Write i2c OK [08:34:42]MH_I2C_Read... [08:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:42]Read from MH i2c: E2 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: E2 0E 00 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: E2 0E 00 29 65 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F0 [08:34:42]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:34:42]wFMCommunicate OK [08:34:42]SAM_PROTO_GetShiftState done [08:34:42]FM_GetShiftState done [08:34:42]req_shift_opened done [08:34:42]requested_item shift.open_date is exist - process it [08:34:42]req_shift_open_date [08:34:42]req_shift_open_date done [08:34:42]produce_requested_data done [08:34:42]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95333,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:34:42]process_action_free print_text [08:34:42]json_value_free [08:34:42]json_value_free done [08:34:42]process_json_proto returns [08:34:42]Send response to host [08:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95333,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:34:42]free response buf [08:34:42]execute_script done [08:34:42]execute_script returns [08:34:42]free content buf [08:34:42]Sock 9.Close socket [08:34:42]Sock 9.Thread stoped [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:04]accept exits with 8 [08:36:04]New connection [08:36:04]New thread 3066813796 created [08:36:04]Thread 3066957156 joined [08:36:04]Waiting for new connection... [08:36:04] Sock 8.Parse request [08:36:04]Sock 8.Check first char [08:36:04]Sock 8.First char is OK [08:36:04]request: POST /json_proto HTTP/1.0 [08:36:04]Method: POST [08:36:04]URL: /json_proto [08:36:04]Method is POST - this is cgi request [08:36:04]url: /json_proto [08:36:04]query_string will be loaded in cgi processing [08:36:04]execute_cgi json_proto POST (null) [08:36:04]execute_cgi path=json_proto method=POST [08:36:04]POST find Content-Length [08:36:04]Host: 172.17.62.67:8080 [08:36:04]Content-Length: 677 [08:36:04]Content-Type: application/json [08:36:04] [08:36:04]POST finish read [08:36:04]Found Content-Length = 677 [08:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196315", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:04]execute_script... [08:36:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196315", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:04]POST & json_proto [08:36:04]process_json_proto [08:36:04]json parsed OK: [08:36:04]protocol is kg_v1.0 [08:36:04]action value=close_receipt [08:36:04]process_action close_receipt [08:36:04]cmd_close_receipt [08:36:04]MH_GetDate [08:36:04]Write to MH i2c: F0 00 00 2A 65 7E [08:36:04]Write i2c OK [08:36:04]MH_I2C_Read... [08:36:04]Read from MH i2c: F0 [08:36:04]MH_I2C_Read... [08:36:04]Read from MH i2c: F0 05 00 [08:36:04]MH_I2C_Read... [08:36:04]Read from MH i2c: F0 05 00 2A 65 00 7E 65 F1 65 BC [08:36:04]GetLastDocTimeStamp 1710318620 [08:36:04]current date 1710318974 [08:36:04]FM_GetShiftState [08:36:04]SAM_PROTO_GetShiftState [08:36:04]wFMCommunicate request_size=4 [08:36:04]MH_SAM_APDU [08:36:04]CAPDU: 80 13 01 00 [08:36:04]Write to MH i2c: E2 08 00 2B 65 80 13 01 00 00 00 00 00 0D [08:36:04]Write i2c OK [08:36:04]MH_I2C_Read... [08:36:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:05]Read from MH i2c: E2 [08:36:05]MH_I2C_Read... [08:36:05]Read from MH i2c: E2 0E 00 [08:36:05]MH_I2C_Read... [08:36:05]Read from MH i2c: E2 0E 00 2B 65 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F2 [08:36:05]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:36:05]wFMCommunicate OK [08:36:05]SAM_PROTO_GetShiftState done [08:36:05]FM_GetShiftState done [08:36:05]opened in 1710288279 [08:36:05]opened+sec_in_day 1710374679 [08:36:05]quantity*price = 30003 [08:36:05]sum+1 = 30004 [08:36:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 29 13.03.2024 08:36 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95334 ФПД: 100445768462319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T083614&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95334&fm=100445768462319&tin=02508201610067®Number=0000000000090555&sum=30000 [08:36:06]StoreToDocumentArchive [08:36:06]shift 328 fd 95334 [08:36:06]save to /storage/0328/doc_00095334 [08:36:06]save last doc name /storage/0328/doc_00095334 to /storage/kkm_last_doc_name [08:36:06]save OK [08:36:06]Clear old archive folders... [08:36:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:06]tlvbuf is 01B54030 [08:36:06]SAM_PROTO_ClearQueue [08:36:06]wFMCommunicate request_size=4 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 09 00 00 [08:36:06]Write to MH i2c: E2 08 00 38 65 80 09 00 00 00 00 00 00 0F [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 03 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 03 00 38 65 00 90 00 11 [08:36:06]RAPDU: 90 00 [08:36:06]wFMCommunicate OK [08:36:06]SAM_PROTO_ClearQueue done [08:36:06]KKMCreateOFDPacket [08:36:06]OFDProtocolAddRootSTLVToBuf [08:36:06]FM_MakeSignedData [08:36:06]FM_MakeSignedData [08:36:06]SAM_PROTO_SignData [08:36:06]wFMCommunicate request_size=4 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 0D 01 02 [08:36:06]Write to MH i2c: E2 08 00 39 65 80 0D 01 02 00 00 00 00 17 [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 03 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 03 00 39 65 00 90 00 12 [08:36:06]RAPDU: 90 00 [08:36:06]wFMCommunicate OK [08:36:06]wFMCommunicate request_size=255 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 7E 65 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 74 01 00 35 04 06 00 5B [08:36:06]Write to MH i2c: E2 02 01 3A 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 7E 65 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 74 01 00 35 04 06 00 5B 00 00 CA [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 03 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 03 00 3A 65 00 90 00 13 [08:36:06]RAPDU: 90 00 [08:36:06]wFMCommunicate OK [08:36:06]wFMCommunicate request_size=10 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 0D 02 02 05 5A DA 59 2F EF [08:36:06]Write to MH i2c: E2 0D 00 3B 65 80 0D 02 02 05 00 5A DA 59 2F EF 00 00 CF [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 03 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 03 00 3B 65 00 90 00 14 [08:36:06]RAPDU: 90 00 [08:36:06]wFMCommunicate OK [08:36:06]wFMCommunicate request_size=4 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 0D 03 02 [08:36:06]Write to MH i2c: E2 08 00 3C 65 80 0D 03 02 00 00 00 00 1C [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 0B 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 0B 00 3C 65 00 CA CC 6A C5 0F 00 15 02 90 00 08 [08:36:06]RAPDU: CA CC 6A C5 0F 00 15 02 90 00 [08:36:06]wFMCommunicate OK [08:36:06]SAM_PROTO_SignData done [08:36:06]FM_MakeSignedData done [08:36:06]CreateOFDProtocolMessage [08:36:06]wFMCommunicate request_size=4 [08:36:06]MH_SAM_APDU [08:36:06]CAPDU: 80 11 00 00 [08:36:06]Write to MH i2c: E2 08 00 3D 65 80 11 00 00 00 00 00 00 1C [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:06]Read from MH i2c: E2 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 17 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: E2 17 00 3D 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6C [08:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:36:06]wFMCommunicate OK [08:36:06]CreateOFDProtocolMessage done [08:36:06]OFDSenderStorePacket 95334 [08:36:06]StoreOFDPacket docnum=95334 [08:36:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B7 F9 07 01 F2 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 7E 65 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 74 01 00 35 04 06 00 5B 5A DA 59 2F EF CA CC 6A C5 0F 00 15 02 [08:36:06]CheckFolder [08:36:06]dirname=/storage/ofd_packets [08:36:06]CheckFolder done [08:36:06]ProducePacketName [08:36:06]name=ofd_packets/00095334 [08:36:06]NVStorageSaveData ofd_packets/00095334 [08:36:06]File name is /storage/ofd_packets/00095334 [08:36:06]Write 301 bytes [08:36:06]NVStorageSaveData done [08:36:06]OFDSenderStorePacket done [08:36:06]KKMCreateOFDPacket done [08:36:06]NVStorageSaveData kkm_last_timestamp [08:36:06]File name is /storage/kkm_last_timestamp [08:36:06]Write 4 bytes [08:36:06]NVStorageSaveData done [08:36:06]ExternCall_PrintAddStr [08:36:06]wPrintStart [08:36:06]Write to MH i2c: 01 00 00 3E 65 A3 [08:36:06]Write i2c OK [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: 01 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: 01 07 00 [08:36:06]MH_I2C_Read... [08:36:06]Read from MH i2c: 01 07 00 3E 65 00 80 00 00 00 FF 0F 38 [08:36:06]RasterBufferAndPrint [08:36:06]line Счет N : (1)196315 [08:36:06]line ИНН: 02508201610067 [08:36:06]line Контрольно-Кассовый Чек [08:36:06]line ПРОДАЖА [08:36:06]line ТРК (МРК, ГНК) : 12 [08:36:06]line Товар: 2710124130 [08:36:06]line Аи-92-К-5 [08:36:06]line 4.770 * 62.90 [08:36:06]line = 300.03 [08:36:06]line НДС 12% НСП 1% [08:36:06]line > о реализуемом товаре [08:36:06]line ОКРУГЛЕНИЕ: -0.03 [08:36:06]line ИТОГО: 300.00 [08:36:06]line Внесено: 300.00 [08:36:06]line СДАЧА: 0.00 [08:36:06]line НСП 1% : 2.65 [08:36:06]line НДС 12% : 31.86 [08:36:06]line Наличными: 300.00 [08:36:06]line Безнал.: 0.00 [08:36:06]line Место: АЗС № 6 "Партнер Нефть" [08:36:06]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:36:06]line СНО: Общий режим [08:36:06]line Чек 29 13.03.2024 08:36 [08:36:06]line Смена: 328 ФФД: 1.0 [08:36:06]line ЗНМ: 0300000009 [08:36:06]line РНМ: 0000000000090555 [08:36:06]line Версия ККМ: 001 [08:36:06]line ФМ: 0000000000874811 [08:36:06]line ФД: 95334 [08:36:06]line ФПД: 100445768462319 [08:36:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T083614&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95334&fm=100445768462319&tin=02508201610067®Number=0000000000090555&sum=30000 [08:36:07]OFD Sender: Processing packet 95334 [packets to send 30, broken 29] [08:36:07]ProducePacketName [08:36:07]name=ofd_packets/00095334 [08:36:07]OFD Sender: To server: pG, [08:36:07]CommunicateWithHost lk.salyk.kg:30040 [08:36:07]ConnectInit lk.salyk.kg [08:36:07]written 0, free lines is 4095 [08:36:07]Connected sock=9 [08:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B7 F9 07 01 F2 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 7E 65 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 66 74 01 00 35 04 06 00 5B 5A DA 59 2F EF CA CC 6A C5 0F 00 15 02 [08:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 8D C5 47 00 07 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 34 38 31 31 10 04 04 00 66 74 01 00 F4 03 04 00 D2 10 F1 65 B6 04 01 00 00 20 8C D7 07 4C 06 47 E0 [08:36:07]CommunicateWithHost err = 0 [08:36:07]CheckOFDResponse [08:36:07]1017 (14) - 77093643461234 [08:36:07]1041 (16) - 0000000000874811 [08:36:07]1040 (4) - 95334 [08:36:07]1012 (4) - 13.03.2024 02:34 [08:36:07]1206 (1) - 0 [08:36:07]OFD Sender: Remove packet 95334 [08:36:07]ProducePacketName [08:36:07]name=ofd_packets/00095334 [08:36:07]NVStorageDeleteData [08:36:07]Write to MH i2c: 01 00 00 69 65 CE [08:36:07]Write i2c OK [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: 01 [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: 01 07 00 [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: 01 07 00 69 65 00 80 00 00 00 5E 0D C0 [08:36:07]RasterBufferAndPrint [08:36:07]line [08:36:07]line [08:36:07]line [08:36:07]line [08:36:07]line [08:36:07]written 0, free lines is 3428 [08:36:07]process_action close_receipt done [08:36:07]requested_data is exist [08:36:07]produce_requested_data [08:36:07]requested_item fm.sn is exist - process it [08:36:07]wFMCommunicate request_size=4 [08:36:07]MH_SAM_APDU [08:36:07]CAPDU: 80 11 00 00 [08:36:07]Write to MH i2c: E2 08 00 70 65 80 11 00 00 00 00 00 00 4F [08:36:07]Write i2c OK [08:36:07]MH_I2C_Read... [08:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:07]Read from MH i2c: E2 [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: E2 17 00 [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: E2 17 00 70 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9F [08:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:36:07]wFMCommunicate OK [08:36:07]requested_item fd.num is exist - process it [08:36:07]SAM_PROTO_GetFieldsCounters [08:36:07]wFMCommunicate request_size=4 [08:36:07]MH_SAM_APDU [08:36:07]CAPDU: 80 13 00 00 [08:36:07]Write to MH i2c: E2 08 00 71 65 80 13 00 00 00 00 00 00 52 [08:36:07]Write i2c OK [08:36:07]MH_I2C_Read... [08:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:07]Read from MH i2c: E2 [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: E2 62 00 [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: E2 62 00 71 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 66 74 01 00 0E 04 04 00 48 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 EA [08:36:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 66 74 01 00 0E 04 04 00 48 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 [08:36:07]wFMCommunicate OK [08:36:07]SAM_PROTO_GetFieldsCounters done [08:36:07]requested_item shift.num is exist - process it [08:36:07]requested_item shift.opened is exist - process it [08:36:07]req_shift_opened [08:36:07]FM_GetShiftState [08:36:07]SAM_PROTO_GetShiftState [08:36:07]wFMCommunicate request_size=4 [08:36:07]MH_SAM_APDU [08:36:07]CAPDU: 80 13 01 00 [08:36:07]Write to MH i2c: E2 08 00 72 65 80 13 01 00 00 00 00 00 54 [08:36:07]Write i2c OK [08:36:07]MH_I2C_Read... [08:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:07]OFD Sender: No OFD packet to send [08:36:07]Read from MH i2c: E2 [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: E2 0E 00 [08:36:07]MH_I2C_Read... [08:36:07]Read from MH i2c: E2 0E 00 72 65 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 39 [08:36:07]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:36:07]wFMCommunicate OK [08:36:07]SAM_PROTO_GetShiftState done [08:36:07]FM_GetShiftState done [08:36:07]req_shift_opened done [08:36:07]requested_item shift.open_date is exist - process it [08:36:07]req_shift_open_date [08:36:07]req_shift_open_date done [08:36:07]produce_requested_data done [08:36:07]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95334,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:36:07]process_action_free close_receipt [08:36:07]json_value_free [08:36:07]json_value_free done [08:36:07]process_json_proto returns [08:36:07]Send response to host [08:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95334,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:36:07]free response buf [08:36:07]execute_script done [08:36:07]execute_script returns [08:36:07]free content buf [08:36:07]Sock 8.Close socket [08:36:07]Sock 8.Thread stoped [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:28]OFD Sender: No OFD packet to send [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:28]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [08:41:38]OFD Sender: No OFD packet to send [08:41:43]OFD Sender: No OFD packet to send [08:41:46]accept exits with 10 [08:41:46]New connection [08:41:46]New thread 3066957156 created [08:41:46]Thread 3066813796 joined [08:41:46]Waiting for new connection... [08:41:46] Sock 10.Parse request [08:41:46]Sock 10.Check first char [08:41:46]Sock 10.First char is OK [08:41:46]request: POST /json_proto HTTP/1.0 [08:41:46]Method: POST [08:41:46]URL: /json_proto [08:41:46]Method is POST - this is cgi request [08:41:46]url: /json_proto [08:41:46]query_string will be loaded in cgi processing [08:41:46]execute_cgi json_proto POST (null) [08:41:46]execute_cgi path=json_proto method=POST [08:41:46]POST find Content-Length [08:41:46]Host: 172.17.62.67:8080 [08:41:46]Content-Length: 682 [08:41:46]Content-Type: application/json [08:41:46] [08:41:46]POST finish read [08:41:46]Found Content-Length = 682 [08:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196316", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:46]execute_script... [08:41:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196316", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:46]POST & json_proto [08:41:46]process_json_proto [08:41:46]json parsed OK: [08:41:46]protocol is kg_v1.0 [08:41:46]action value=close_receipt [08:41:46]process_action close_receipt [08:41:46]cmd_close_receipt [08:41:46]MH_GetDate [08:41:46]Write to MH i2c: F0 00 00 73 65 C7 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: F0 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: F0 05 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: F0 05 00 73 65 00 D4 66 F1 65 5C [08:41:46]GetLastDocTimeStamp 1710318974 [08:41:46]current date 1710319316 [08:41:46]FM_GetShiftState [08:41:46]SAM_PROTO_GetShiftState [08:41:46]wFMCommunicate request_size=4 [08:41:46]MH_SAM_APDU [08:41:46]CAPDU: 80 13 01 00 [08:41:46]Write to MH i2c: E2 08 00 74 65 80 13 01 00 00 00 00 00 56 [08:41:46]Write i2c OK [08:41:46]MH_I2C_Read... [08:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:46]Read from MH i2c: E2 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 0E 00 [08:41:46]MH_I2C_Read... [08:41:46]Read from MH i2c: E2 0E 00 74 65 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3B [08:41:46]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:41:46]wFMCommunicate OK [08:41:46]SAM_PROTO_GetShiftState done [08:41:46]FM_GetShiftState done [08:41:46]opened in 1710288279 [08:41:46]opened+sec_in_day 1710374679 [08:41:46]quantity*price = 100011 [08:41:46]sum+1 = 100012 [08:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 30 13.03.2024 08:41 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95335 ФПД: 200316547457091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T084156&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95335&fm=200316547457091&tin=02508201610067®Number=0000000000090555&sum=100000 [08:41:47]StoreToDocumentArchive [08:41:47]shift 328 fd 95335 [08:41:47]save to /storage/0328/doc_00095335 [08:41:47]save last doc name /storage/0328/doc_00095335 to /storage/kkm_last_doc_name [08:41:47]save OK [08:41:47]Clear old archive folders... [08:41:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:47]tlvbuf is 01AFA250 [08:41:47]SAM_PROTO_ClearQueue [08:41:47]wFMCommunicate request_size=4 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 09 00 00 [08:41:47]Write to MH i2c: E2 08 00 81 65 80 09 00 00 00 00 00 00 58 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 81 65 00 90 00 5A [08:41:47]RAPDU: 90 00 [08:41:47]wFMCommunicate OK [08:41:47]SAM_PROTO_ClearQueue done [08:41:47]KKMCreateOFDPacket [08:41:47]OFDProtocolAddRootSTLVToBuf [08:41:47]FM_MakeSignedData [08:41:47]FM_MakeSignedData [08:41:47]SAM_PROTO_SignData [08:41:47]wFMCommunicate request_size=4 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 0D 01 02 [08:41:47]Write to MH i2c: E2 08 00 82 65 80 0D 01 02 00 00 00 00 60 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:47]Read from MH i2c: E2 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 [08:41:47]MH_I2C_Read... [08:41:47]Read from MH i2c: E2 03 00 82 65 00 90 00 5B [08:41:47]RAPDU: 90 00 [08:41:47]wFMCommunicate OK [08:41:47]wFMCommunicate request_size=255 [08:41:47]MH_SAM_APDU [08:41:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 D4 66 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 74 01 00 35 04 06 00 B6 [08:41:47]Write to MH i2c: E2 02 01 83 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 D4 66 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 74 01 00 35 04 06 00 B6 00 00 91 [08:41:47]Write i2c OK [08:41:47]MH_I2C_Read... [08:41:48]OFD Sender: No OFD packet to send [08:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 83 65 00 90 00 5C [08:41:48]RAPDU: 90 00 [08:41:48]wFMCommunicate OK [08:41:48]wFMCommunicate request_size=10 [08:41:48]MH_SAM_APDU [08:41:48]CAPDU: 80 0D 02 02 05 2F D4 A7 60 43 [08:41:48]Write to MH i2c: E2 0D 00 84 65 80 0D 02 02 05 00 2F D4 A7 60 43 00 00 BA [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 03 00 84 65 00 90 00 5D [08:41:48]RAPDU: 90 00 [08:41:48]wFMCommunicate OK [08:41:48]wFMCommunicate request_size=4 [08:41:48]MH_SAM_APDU [08:41:48]CAPDU: 80 0D 03 02 [08:41:48]Write to MH i2c: E2 08 00 85 65 80 0D 03 02 00 00 00 00 65 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 0B 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 0B 00 85 65 00 8B D9 50 12 2C 53 52 95 90 00 92 [08:41:48]RAPDU: 8B D9 50 12 2C 53 52 95 90 00 [08:41:48]wFMCommunicate OK [08:41:48]SAM_PROTO_SignData done [08:41:48]FM_MakeSignedData done [08:41:48]CreateOFDProtocolMessage [08:41:48]wFMCommunicate request_size=4 [08:41:48]MH_SAM_APDU [08:41:48]CAPDU: 80 11 00 00 [08:41:48]Write to MH i2c: E2 08 00 86 65 80 11 00 00 00 00 00 00 65 [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:48]Read from MH i2c: E2 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 17 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: E2 17 00 86 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B5 [08:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:41:48]wFMCommunicate OK [08:41:48]CreateOFDProtocolMessage done [08:41:48]OFDSenderStorePacket 95335 [08:41:48]StoreOFDPacket docnum=95335 [08:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AF A9 07 01 3D F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 D4 66 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 74 01 00 35 04 06 00 B6 2F D4 A7 60 43 8B D9 50 12 2C 53 52 95 [08:41:48]CheckFolder [08:41:48]dirname=/storage/ofd_packets [08:41:48]CheckFolder done [08:41:48]ProducePacketName [08:41:48]name=ofd_packets/00095335 [08:41:48]NVStorageSaveData ofd_packets/00095335 [08:41:48]File name is /storage/ofd_packets/00095335 [08:41:48]Write 301 bytes [08:41:48]NVStorageSaveData done [08:41:48]OFDSenderStorePacket done [08:41:48]KKMCreateOFDPacket done [08:41:48]NVStorageSaveData kkm_last_timestamp [08:41:48]File name is /storage/kkm_last_timestamp [08:41:48]Write 4 bytes [08:41:48]NVStorageSaveData done [08:41:48]ExternCall_PrintAddStr [08:41:48]wPrintStart [08:41:48]Write to MH i2c: 01 00 00 87 65 EC [08:41:48]Write i2c OK [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 07 00 [08:41:48]MH_I2C_Read... [08:41:48]Read from MH i2c: 01 07 00 87 65 00 80 00 00 00 FF 0F 81 [08:41:48]RasterBufferAndPrint [08:41:48]line Счет N : (1)196316 [08:41:48]line ИНН: 02508201610067 [08:41:48]line Контрольно-Кассовый Чек [08:41:48]line ПРОДАЖА [08:41:48]line ТРК (МРК, ГНК) : 42 [08:41:48]line Товар: 2710124130 [08:41:48]line Аи-92-К-5 [08:41:48]line 15.900 * 62.90 [08:41:48]line = 1000.11 [08:41:48]line НДС 12% НСП 1% [08:41:48]line > о реализуемом товаре [08:41:48]line ОКРУГЛЕНИЕ: -0.11 [08:41:48]line ИТОГО: 1000.00 [08:41:48]line Внесено: 1000.00 [08:41:48]line СДАЧА: 0.00 [08:41:48]line НСП 1% : 8.85 [08:41:48]line НДС 12% : 106.21 [08:41:48]line Наличными: 1000.00 [08:41:48]line Безнал.: 0.00 [08:41:48]line Место: АЗС № 6 "Партнер Нефть" [08:41:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:41:48]line СНО: Общий режим [08:41:48]line Чек 30 13.03.2024 08:41 [08:41:48]line Смена: 328 ФФД: 1.0 [08:41:48]line ЗНМ: 0300000009 [08:41:48]line РНМ: 0000000000090555 [08:41:48]line Версия ККМ: 001 [08:41:48]line ФМ: 0000000000874811 [08:41:48]line ФД: 95335 [08:41:48]line ФПД: 200316547457091 [08:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T084156&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95335&fm=200316547457091&tin=02508201610067®Number=0000000000090555&sum=100000 [08:41:48]OFD Sender: Processing packet 95335 [packets to send 30, broken 29] [08:41:48]ProducePacketName [08:41:48]name=ofd_packets/00095335 [08:41:48]OFD Sender: To server: pG, [08:41:48]CommunicateWithHost lk.salyk.kg:30040 [08:41:48]ConnectInit lk.salyk.kg [08:41:48]written 0, free lines is 4095 [08:41:48]Connected sock=9 [08:41:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AF A9 07 01 3D F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1E 00 00 00 F4 03 04 00 D4 66 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 74 01 00 35 04 06 00 B6 2F D4 A7 60 43 8B D9 50 12 2C 53 52 95 [08:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 59 9C 47 00 B7 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 67 74 01 00 F4 03 04 00 27 12 F1 65 B6 04 01 00 00 2A 53 54 EE 10 1D B1 BA [08:41:48]CommunicateWithHost err = 0 [08:41:48]CheckOFDResponse [08:41:48]1017 (14) - 77093643461234 [08:41:48]1041 (16) - 0000000000874811 [08:41:48]1040 (4) - 95335 [08:41:48]1012 (4) - 13.03.2024 02:40 [08:41:48]1206 (1) - 0 [08:41:48]OFD Sender: Remove packet 95335 [08:41:48]ProducePacketName [08:41:48]name=ofd_packets/00095335 [08:41:48]NVStorageDeleteData [08:41:49]Write to MH i2c: 01 00 00 B2 65 17 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 07 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: 01 07 00 B2 65 00 80 00 00 00 4C 0D F7 [08:41:49]RasterBufferAndPrint [08:41:49]line [08:41:49]line [08:41:49]line [08:41:49]line [08:41:49]line [08:41:49]written 0, free lines is 3410 [08:41:49]process_action close_receipt done [08:41:49]requested_data is exist [08:41:49]produce_requested_data [08:41:49]requested_item fm.sn is exist - process it [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 11 00 00 [08:41:49]Write to MH i2c: E2 08 00 B9 65 80 11 00 00 00 00 00 00 98 [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:49]Read from MH i2c: E2 17 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 17 00 B9 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E8 [08:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:41:49]wFMCommunicate OK [08:41:49]requested_item fd.num is exist - process it [08:41:49]SAM_PROTO_GetFieldsCounters [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 13 00 00 [08:41:49]Write to MH i2c: E2 08 00 BA 65 80 13 00 00 00 00 00 00 9B [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 62 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 62 00 BA 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 67 74 01 00 0E 04 04 00 48 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 37 [08:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 67 74 01 00 0E 04 04 00 48 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 [08:41:49]wFMCommunicate OK [08:41:49]SAM_PROTO_GetFieldsCounters done [08:41:49]requested_item shift.num is exist - process it [08:41:49]requested_item shift.opened is exist - process it [08:41:49]req_shift_opened [08:41:49]FM_GetShiftState [08:41:49]SAM_PROTO_GetShiftState [08:41:49]wFMCommunicate request_size=4 [08:41:49]MH_SAM_APDU [08:41:49]CAPDU: 80 13 01 00 [08:41:49]Write to MH i2c: E2 08 00 BB 65 80 13 01 00 00 00 00 00 9D [08:41:49]Write i2c OK [08:41:49]MH_I2C_Read... [08:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:49]Read from MH i2c: E2 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 0E 00 [08:41:49]MH_I2C_Read... [08:41:49]Read from MH i2c: E2 0E 00 BB 65 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 82 [08:41:49]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:41:49]wFMCommunicate OK [08:41:49]SAM_PROTO_GetShiftState done [08:41:49]FM_GetShiftState done [08:41:49]req_shift_opened done [08:41:49]requested_item shift.open_date is exist - process it [08:41:49]req_shift_open_date [08:41:49]req_shift_open_date done [08:41:49]produce_requested_data done [08:41:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95335,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:41:49]process_action_free close_receipt [08:41:49]json_value_free [08:41:49]json_value_free done [08:41:49]process_json_proto returns [08:41:49]Send response to host [08:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95335,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:41:49]free response buf [08:41:49]execute_script done [08:41:49]execute_script returns [08:41:49]free content buf [08:41:49]Sock 10.Close socket [08:41:49]Sock 10.Thread stoped [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:57]accept exits with 8 [08:42:57]New connection [08:42:57]New thread 3066813796 created [08:42:57]Thread 3066957156 joined [08:42:57]Waiting for new connection... [08:42:57] Sock 8.Parse request [08:42:57]Sock 8.Check first char [08:42:57]Sock 8.First char is OK [08:42:57]request: POST /json_proto HTTP/1.0 [08:42:57]Method: POST [08:42:57]URL: /json_proto [08:42:57]Method is POST - this is cgi request [08:42:57]url: /json_proto [08:42:57]query_string will be loaded in cgi processing [08:42:57]execute_cgi json_proto POST (null) [08:42:57]execute_cgi path=json_proto method=POST [08:42:57]POST find Content-Length [08:42:57]Host: 172.17.62.67:8080 [08:42:57]Content-Length: 678 [08:42:57]Content-Type: application/json [08:42:57] [08:42:57]POST finish read [08:42:57]Found Content-Length = 678 [08:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196317", "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" : 62.90, "quantity" : 14.310, "sum" : 900.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:57]execute_script... [08:42:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196317", "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" : 62.90, "quantity" : 14.310, "sum" : 900.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:57]POST & json_proto [08:42:57]process_json_proto [08:42:57]json parsed OK: [08:42:57]protocol is kg_v1.0 [08:42:57]action value=close_receipt [08:42:57]process_action close_receipt [08:42:57]cmd_close_receipt [08:42:57]MH_GetDate [08:42:57]Write to MH i2c: F0 00 00 BC 65 10 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: F0 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: F0 05 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: F0 05 00 BC 65 00 1B 67 F1 65 ED [08:42:57]GetLastDocTimeStamp 1710319316 [08:42:57]current date 1710319387 [08:42:57]FM_GetShiftState [08:42:57]SAM_PROTO_GetShiftState [08:42:57]wFMCommunicate request_size=4 [08:42:57]MH_SAM_APDU [08:42:57]CAPDU: 80 13 01 00 [08:42:57]Write to MH i2c: E2 08 00 BD 65 80 13 01 00 00 00 00 00 9F [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:57]Read from MH i2c: E2 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 0E 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 0E 00 BD 65 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 84 [08:42:57]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:42:57]wFMCommunicate OK [08:42:57]SAM_PROTO_GetShiftState done [08:42:57]FM_GetShiftState done [08:42:57]opened in 1710288279 [08:42:57]opened+sec_in_day 1710374679 [08:42:57]quantity*price = 90009 [08:42:57]sum+1 = 90011 [08:42:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 31 13.03.2024 08:43 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95336 ФПД: 63455576388328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T084307&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95336&fm=63455576388328&tin=02508201610067®Number=0000000000090555&sum=90000 [08:42:58]StoreToDocumentArchive [08:42:58]shift 328 fd 95336 [08:42:58]save to /storage/0328/doc_00095336 [08:42:58]save last doc name /storage/0328/doc_00095336 to /storage/kkm_last_doc_name [08:42:58]save OK [08:42:58]Clear old archive folders... [08:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:58]tlvbuf is 01B61D20 [08:42:58]SAM_PROTO_ClearQueue [08:42:58]wFMCommunicate request_size=4 [08:42:58]MH_SAM_APDU [08:42:58]CAPDU: 80 09 00 00 [08:42:58]Write to MH i2c: E2 08 00 CA 65 80 09 00 00 00 00 00 00 A1 [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:58]Read from MH i2c: E2 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 CA 65 00 90 00 A3 [08:42:58]RAPDU: 90 00 [08:42:58]wFMCommunicate OK [08:42:58]SAM_PROTO_ClearQueue done [08:42:58]KKMCreateOFDPacket [08:42:58]OFDProtocolAddRootSTLVToBuf [08:42:58]FM_MakeSignedData [08:42:58]FM_MakeSignedData [08:42:58]SAM_PROTO_SignData [08:42:58]wFMCommunicate request_size=4 [08:42:58]MH_SAM_APDU [08:42:58]CAPDU: 80 0D 01 02 [08:42:58]Write to MH i2c: E2 08 00 CB 65 80 0D 01 02 00 00 00 00 A9 [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:58]Read from MH i2c: E2 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 CB 65 00 90 00 A4 [08:42:58]RAPDU: 90 00 [08:42:58]wFMCommunicate OK [08:42:58]wFMCommunicate request_size=255 [08:42:58]MH_SAM_APDU [08:42: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 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1B 67 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 74 01 00 35 04 06 00 39 [08:42:58]Write to MH i2c: E2 02 01 CC 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1B 67 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 74 01 00 35 04 06 00 39 00 00 41 [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:58]Read from MH i2c: E2 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 CC 65 00 90 00 A5 [08:42:58]RAPDU: 90 00 [08:42:58]wFMCommunicate OK [08:42:58]wFMCommunicate request_size=10 [08:42:58]MH_SAM_APDU [08:42:58]CAPDU: 80 0D 02 02 05 B6 67 16 F2 E8 [08:42:58]Write to MH i2c: E2 0D 00 CD 65 80 0D 02 02 05 00 B6 67 16 F2 E8 00 00 C3 [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:58]Read from MH i2c: E2 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 03 00 CD 65 00 90 00 A6 [08:42:58]RAPDU: 90 00 [08:42:58]wFMCommunicate OK [08:42:58]wFMCommunicate request_size=4 [08:42:58]MH_SAM_APDU [08:42:58]CAPDU: 80 0D 03 02 [08:42:58]Write to MH i2c: E2 08 00 CE 65 80 0D 03 02 00 00 00 00 AE [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:58]Read from MH i2c: E2 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 0B 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 0B 00 CE 65 00 F5 6F 3F DF 2C 5E 44 A2 90 00 A1 [08:42:58]RAPDU: F5 6F 3F DF 2C 5E 44 A2 90 00 [08:42:58]wFMCommunicate OK [08:42:58]SAM_PROTO_SignData done [08:42:58]FM_MakeSignedData done [08:42:58]CreateOFDProtocolMessage [08:42:58]wFMCommunicate request_size=4 [08:42:58]MH_SAM_APDU [08:42:58]CAPDU: 80 11 00 00 [08:42:58]Write to MH i2c: E2 08 00 CF 65 80 11 00 00 00 00 00 00 AE [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:58]Read from MH i2c: E2 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 17 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: E2 17 00 CF 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FE [08:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:42:58]wFMCommunicate OK [08:42:58]CreateOFDProtocolMessage done [08:42:58]OFDSenderStorePacket 95336 [08:42:58]StoreOFDPacket docnum=95336 [08:42:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 57 F7 07 01 19 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1B 67 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 74 01 00 35 04 06 00 39 B6 67 16 F2 E8 F5 6F 3F DF 2C 5E 44 A2 [08:42:58]CheckFolder [08:42:58]dirname=/storage/ofd_packets [08:42:58]CheckFolder done [08:42:58]ProducePacketName [08:42:58]name=ofd_packets/00095336 [08:42:58]NVStorageSaveData ofd_packets/00095336 [08:42:58]File name is /storage/ofd_packets/00095336 [08:42:58]Write 301 bytes [08:42:58]NVStorageSaveData done [08:42:58]OFDSenderStorePacket done [08:42:58]KKMCreateOFDPacket done [08:42:58]NVStorageSaveData kkm_last_timestamp [08:42:58]File name is /storage/kkm_last_timestamp [08:42:58]Write 4 bytes [08:42:58]NVStorageSaveData done [08:42:58]ExternCall_PrintAddStr [08:42:58]wPrintStart [08:42:58]Write to MH i2c: 01 00 00 D0 65 35 [08:42:58]OFD Sender: Processing packet 95336 [packets to send 30, broken 29] [08:42:58]ProducePacketName [08:42:58]name=ofd_packets/00095336 [08:42:58]OFD Sender: To server: pG, [08:42:58]CommunicateWithHost lk.salyk.kg:30040 [08:42:58]Write i2c OK [08:42:58]MH_I2C_Read... [08:42:58]ConnectInit lk.salyk.kg [08:42:58]Read from MH i2c: 01 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: 01 07 00 [08:42:58]MH_I2C_Read... [08:42:58]Read from MH i2c: 01 07 00 D0 65 00 80 00 00 00 FF 0F CA [08:42:58]RasterBufferAndPrint [08:42:58]line Счет N : (1)196317 [08:42:58]line ИНН: 02508201610067 [08:42:58]line Контрольно-Кассовый Чек [08:42:58]line ПРОДАЖА [08:42:58]line ТРК (МРК, ГНК) : 22 [08:42:58]line Товар: 2710124130 [08:42:58]line Аи-92-К-5 [08:42:58]line 14.310 * 62.90 [08:42:58]line = 900.10 [08:42:58]line НДС 12% НСП 1% [08:42:58]line > о реализуемом товаре [08:42:58]line ОКРУГЛЕНИЕ: -0.10 [08:42:58]line ИТОГО: 900.00 [08:42:58]line Внесено: 900.00 [08:42:58]line СДАЧА: 0.00 [08:42:58]line НСП 1% : 7.96 [08:42:58]line НДС 12% : 95.59 [08:42:58]line Наличными: 900.00 [08:42:58]line Безнал.: 0.00 [08:42:58]line Место: АЗС № 6 "Партнер Нефть" [08:42:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:42:58]line СНО: Общий режим [08:42:58]line Чек 31 13.03.2024 08:43 [08:42:58]line Смена: 328 ФФД: 1.0 [08:42:58]line ЗНМ: 0300000009 [08:42:58]line РНМ: 0000000000090555 [08:42:58]line Версия ККМ: 001 [08:42:58]line ФМ: 0000000000874811 [08:42:58]line ФД: 95336 [08:42:58]line ФПД: 63455576388328 [08:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T084307&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95336&fm=63455576388328&tin=02508201610067®Number=0000000000090555&sum=90000 [08:42:59]Connected sock=10 [08:42:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 57 F7 07 01 written 0, free lines is 4095 [08:42:59]19 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 9A 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1B 67 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 74 01 00 35 04 06 00 39 B6 67 16 F2 E8 F5 6F 3F DF 2C 5E 44 A2 [08:42:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F4 7F 47 00 AC CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 68 74 01 00 F4 03 04 00 6E 12 F1 65 B6 04 01 00 00 9E 25 17 6D A1 D9 C6 81 [08:42:59]CommunicateWithHost err = 0 [08:42:59]CheckOFDResponse [08:42:59]1017 (14) - 77093643461234 [08:42:59]1041 (16) - 0000000000874811 [08:42:59]1040 (4) - 95336 [08:42:59]1012 (4) - 13.03.2024 02:41 [08:42:59]1206 (1) - 0 [08:42:59]OFD Sender: Remove packet 95336 [08:42:59]ProducePacketName [08:42:59]name=ofd_packets/00095336 [08:42:59]NVStorageDeleteData [08:42:59]Write to MH i2c: 01 00 00 FB 65 60 [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 07 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: 01 07 00 FB 65 00 80 00 00 00 53 0D 47 [08:42:59]RasterBufferAndPrint [08:42:59]line [08:42:59]line [08:42:59]line [08:42:59]line [08:42:59]line [08:42:59]written 0, free lines is 3417 [08:42:59]process_action close_receipt done [08:42:59]requested_data is exist [08:42:59]produce_requested_data [08:42:59]requested_item fm.sn is exist - process it [08:42:59]wFMCommunicate request_size=4 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 11 00 00 [08:42:59]Write to MH i2c: E2 08 00 02 66 80 11 00 00 00 00 00 00 E2 [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 17 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 17 00 02 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 32 [08:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:42:59]wFMCommunicate OK [08:42:59]requested_item fd.num is exist - process it [08:42:59]SAM_PROTO_GetFieldsCounters [08:42:59]wFMCommunicate request_size=4 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 13 00 00 [08:42:59]Write to MH i2c: E2 08 00 03 66 80 13 00 00 00 00 00 00 E5 [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:59]OFD Sender: No OFD packet to send [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 62 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 62 00 03 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 68 74 01 00 0E 04 04 00 48 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 85 [08:42:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 68 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:59]wFMCommunicate OK [08:42:59]SAM_PROTO_GetFieldsCounters done [08:42:59]requested_item shift.num is exist - process it [08:42:59]requested_item shift.opened is exist - process it [08:42:59]req_shift_opened [08:42:59]FM_GetShiftState [08:42:59]SAM_PROTO_GetShiftState [08:42:59]wFMCommunicate request_size=4 [08:42:59]MH_SAM_APDU [08:42:59]CAPDU: 80 13 01 00 [08:42:59]Write to MH i2c: E2 08 00 04 66 80 13 01 00 00 00 00 00 E7 [08:42:59]Write i2c OK [08:42:59]MH_I2C_Read... [08:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:59]Read from MH i2c: E2 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 0E 00 [08:42:59]MH_I2C_Read... [08:42:59]Read from MH i2c: E2 0E 00 04 66 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CC [08:42:59]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:42:59]wFMCommunicate OK [08:42:59]SAM_PROTO_GetShiftState done [08:42:59]FM_GetShiftState done [08:42:59]req_shift_opened done [08:42:59]requested_item shift.open_date is exist - process it [08:42:59]req_shift_open_date [08:42:59]req_shift_open_date done [08:42:59]produce_requested_data done [08:42:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95336,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:42:59]process_action_free close_receipt [08:42:59]json_value_free [08:42:59]json_value_free done [08:42:59]process_json_proto returns [08:42:59]Send response to host [08:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95336,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:42:59]free response buf [08:42:59]execute_script done [08:42:59]execute_script returns [08:42:59]free content buf [08:42:59]Sock 8.Close socket [08:42:59]Sock 8.Thread stoped [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:03]recv_with_timeout no data received [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08: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:13]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:30]recv_with_timeout no data received [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: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:07]ConnectInit Can't connect to host [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:51:00]OFD Sender: No OFD packet to send [08:51:05]OFD Sender: No OFD packet to send [08:51:10]OFD Sender: No OFD packet to send [08:51:15]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:38]accept exits with 9 [08:53:38]New connection [08:53:38]New thread 3066957156 created [08:53:38]Thread 3066813796 joined [08:53:38]Waiting for new connection... [08:53:38] Sock 9.Parse request [08:53:38]Sock 9.Check first char [08:53:38]Sock 9.First char is OK [08:53:38]request: POST /json_proto HTTP/1.0 [08:53:38]Method: POST [08:53:38]URL: /json_proto [08:53:38]Method is POST - this is cgi request [08:53:38]url: /json_proto [08:53:38]query_string will be loaded in cgi processing [08:53:38]execute_cgi json_proto POST (null) [08:53:38]execute_cgi path=json_proto method=POST [08:53:38]POST find Content-Length [08:53:38]Host: 172.17.62.67:8080 [08:53:38]Content-Length: 678 [08:53:38]Content-Type: application/json [08:53:38] [08:53:38]POST finish read [08:53:38]Found Content-Length = 678 [08:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196318", "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" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:38]execute_script... [08:53:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196318", "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" : 62.90, "quantity" : 10.180, "sum" : 640.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:38]POST & json_proto [08:53:38]process_json_proto [08:53:38]json parsed OK: [08:53:38]protocol is kg_v1.0 [08:53:38]action value=close_receipt [08:53:38]process_action close_receipt [08:53:38]cmd_close_receipt [08:53:38]MH_GetDate [08:53:38]Write to MH i2c: F0 00 00 05 66 5A [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: F0 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: F0 05 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: F0 05 00 05 66 00 9C 69 F1 65 BA [08:53:38]GetLastDocTimeStamp 1710319387 [08:53:38]current date 1710320028 [08:53:38]FM_GetShiftState [08:53:38]SAM_PROTO_GetShiftState [08:53:38]wFMCommunicate request_size=4 [08:53:38]MH_SAM_APDU [08:53:38]CAPDU: 80 13 01 00 [08:53:38]Write to MH i2c: E2 08 00 06 66 80 13 01 00 00 00 00 00 E9 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:38]Read from MH i2c: E2 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 0E 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: E2 0E 00 06 66 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CE [08:53:38]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:53:38]wFMCommunicate OK [08:53:38]SAM_PROTO_GetShiftState done [08:53:38]FM_GetShiftState done [08:53:38]opened in 1710288279 [08:53:38]opened+sec_in_day 1710374679 [08:53:38]quantity*price = 64032 [08:53:38]sum+1 = 64033 [08:53:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 68.00 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 32 13.03.2024 08:53 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95337 ФПД: 193186807419436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T085348&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95337&fm=193186807419436&tin=02508201610067®Number=0000000000090555&sum=64000 [08:53:39]StoreToDocumentArchive [08:53:39]shift 328 fd 95337 [08:53:39]save to /storage/0328/doc_00095337 [08:53:39]save last doc name /storage/0328/doc_00095337 to /storage/kkm_last_doc_name [08:53:39]save OK [08:53:39]Clear old archive folders... [08:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:39]tlvbuf is 01AD4590 [08:53:39]SAM_PROTO_ClearQueue [08:53:39]wFMCommunicate request_size=4 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 09 00 00 [08:53:39]Write to MH i2c: E2 08 00 13 66 80 09 00 00 00 00 00 00 EB [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 13 66 00 90 00 ED [08:53:39]RAPDU: 90 00 [08:53:39]wFMCommunicate OK [08:53:39]SAM_PROTO_ClearQueue done [08:53:39]KKMCreateOFDPacket [08:53:39]OFDProtocolAddRootSTLVToBuf [08:53:39]FM_MakeSignedData [08:53:39]FM_MakeSignedData [08:53:39]SAM_PROTO_SignData [08:53:39]wFMCommunicate request_size=4 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 0D 01 02 [08:53:39]Write to MH i2c: E2 08 00 14 66 80 0D 01 02 00 00 00 00 F3 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 14 66 00 90 00 EE [08:53:39]RAPDU: 90 00 [08:53:39]wFMCommunicate OK [08:53:39]wFMCommunicate request_size=255 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9C 69 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 74 01 00 35 04 06 00 AF [08:53:39]Write to MH i2c: E2 02 01 15 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9C 69 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 74 01 00 35 04 06 00 AF 00 00 D0 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 15 66 00 90 00 EF [08:53:39]RAPDU: 90 00 [08:53:39]wFMCommunicate OK [08:53:39]wFMCommunicate request_size=10 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 0D 02 02 05 B3 CF 08 12 2C [08:53:39]Write to MH i2c: E2 0D 00 16 66 80 0D 02 02 05 00 B3 CF 08 12 2C 00 00 C8 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 03 00 16 66 00 90 00 F0 [08:53:39]RAPDU: 90 00 [08:53:39]wFMCommunicate OK [08:53:39]wFMCommunicate request_size=4 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 0D 03 02 [08:53:39]Write to MH i2c: E2 08 00 17 66 80 0D 03 02 00 00 00 00 F8 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 0B 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 0B 00 17 66 00 9B A3 A4 5D 37 DB 35 CA 90 00 49 [08:53:39]RAPDU: 9B A3 A4 5D 37 DB 35 CA 90 00 [08:53:39]wFMCommunicate OK [08:53:39]SAM_PROTO_SignData done [08:53:39]FM_MakeSignedData done [08:53:39]CreateOFDProtocolMessage [08:53:39]wFMCommunicate request_size=4 [08:53:39]MH_SAM_APDU [08:53:39]CAPDU: 80 11 00 00 [08:53:39]Write to MH i2c: E2 08 00 18 66 80 11 00 00 00 00 00 00 F8 [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:39]Read from MH i2c: E2 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 17 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: E2 17 00 18 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 48 [08:53:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:53:39]wFMCommunicate OK [08:53:39]CreateOFDProtocolMessage done [08:53:39]OFDSenderStorePacket 95337 [08:53:39]StoreOFDPacket docnum=95337 [08:53:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CD E3 07 01 D9 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9C 69 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 74 01 00 35 04 06 00 AF B3 CF 08 12 2C 9B A3 A4 5D 37 DB 35 CA [08:53:39]CheckFolder [08:53:39]dirname=/storage/ofd_packets [08:53:39]CheckFolder done [08:53:39]ProducePacketName [08:53:39]name=ofd_packets/00095337 [08:53:39]NVStorageSaveData ofd_packets/00095337 [08:53:39]File name is /storage/ofd_packets/00095337 [08:53:39]Write 301 bytes [08:53:39]NVStorageSaveData done [08:53:39]OFDSenderStorePacket done [08:53:39]KKMCreateOFDPacket done [08:53:39]NVStorageSaveData kkm_last_timestamp [08:53:39]File name is /storage/kkm_last_timestamp [08:53:39]Write 4 bytes [08:53:39]NVStorageSaveData done [08:53:39]ExternCall_PrintAddStr [08:53:39]wPrintStart [08:53:39]Write to MH i2c: 01 00 00 19 66 7F [08:53:39]Write i2c OK [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 07 00 [08:53:39]MH_I2C_Read... [08:53:39]Read from MH i2c: 01 07 00 19 66 00 80 00 00 00 FF 0F 14 [08:53:39]RasterBufferAndPrint [08:53:39]line Счет N : (1)196318 [08:53:39]line ИНН: 02508201610067 [08:53:39]line Контрольно-Кассовый Чек [08:53:39]line ПРОДАЖА [08:53:39]line ТРК (МРК, ГНК) : 32 [08:53:39]line Товар: 2710124130 [08:53:39]line Аи-92-К-5 [08:53:39]line 10.180 * 62.90 [08:53:39]line = 640.32 [08:53:39]line НДС 12% НСП 1% [08:53:39]line > о реализуемом товаре [08:53:39]line ОКРУГЛЕНИЕ: -0.32 [08:53:39]line ИТОГО: 640.00 [08:53:39]line Внесено: 640.00 [08:53:39]line СДАЧА: 0.00 [08:53:39]line НСП 1% : 5.67 [08:53:39]line НДС 12% : 68.00 [08:53:39]line Наличными: 640.00 [08:53:39]line Безнал.: 0.00 [08:53:39]line Место: АЗС № 6 "Партнер Нефть" [08:53:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:53:39]line СНО: Общий режим [08:53:39]line Чек 32 13.03.2024 08:53 [08:53:39]line Смена: 328 ФФД: 1.0 [08:53:39]line ЗНМ: 0300000009 [08:53:39]line РНМ: 0000000000090555 [08:53:39]line Версия ККМ: 001 [08:53:39]line ФМ: 0000000000874811 [08:53:39]line ФД: 95337 [08:53:39]line ФПД: 193186807419436 [08:53:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T085348&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95337&fm=193186807419436&tin=02508201610067®Number=0000000000090555&sum=64000 [08:53:40]OFD Sender: Processing packet 95337 [packets to send 30, broken 29] [08:53:40]ProducePacketName [08:53:40]name=ofd_packets/00095337 [08:53:40]OFD Sender: To server: pG, [08:53:40]CommunicateWithHost lk.salyk.kg:30040 [08:53:40]ConnectInit lk.salyk.kg [08:53:40]written 0, free lines is 4095 [08:53:40]Connected sock=10 [08:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CD E3 07 01 D9 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9C 69 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 74 01 00 35 04 06 00 AF B3 CF 08 12 2C 9B A3 A4 5D 37 DB 35 CA [08:53:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 51 A1 47 00 AE EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 69 74 01 00 F4 03 04 00 EF 14 F1 65 B6 04 01 00 00 EC DF 35 18 87 A6 42 3A [08:53:40]CommunicateWithHost err = 0 [08:53:40]CheckOFDResponse [08:53:40]1017 (14) - 77093643461234 [08:53:40]1041 (16) - 0000000000874811 [08:53:40]1040 (4) - 95337 [08:53:40]1012 (4) - 13.03.2024 02:52 [08:53:40]1206 (1) - 0 [08:53:40]OFD Sender: Remove packet 95337 [08:53:40]ProducePacketName [08:53:40]name=ofd_packets/00095337 [08:53:40]NVStorageDeleteData [08:53:40]Write to MH i2c: 01 00 00 44 66 AA [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: 01 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: 01 07 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: 01 07 00 44 66 00 80 00 00 00 51 0D 8F [08:53:40]RasterBufferAndPrint [08:53:40]line [08:53:40]line [08:53:40]line [08:53:40]line [08:53:40]line [08:53:40]written 0, free lines is 3415 [08:53:40]process_action close_receipt done [08:53:40]requested_data is exist [08:53:40]produce_requested_data [08:53:40]requested_item fm.sn is exist - process it [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 11 00 00 [08:53:40]Write to MH i2c: E2 08 00 4B 66 80 11 00 00 00 00 00 00 2B [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 17 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 17 00 4B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7B [08:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:53:40]wFMCommunicate OK [08:53:40]requested_item fd.num is exist - process it [08:53:40]SAM_PROTO_GetFieldsCounters [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 13 00 00 [08:53:40]Write to MH i2c: E2 08 00 4C 66 80 13 00 00 00 00 00 00 2E [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 62 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 62 00 4C 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 69 74 01 00 0E 04 04 00 48 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 D2 [08:53:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 69 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:40]wFMCommunicate OK [08:53:40]SAM_PROTO_GetFieldsCounters done [08:53:40]requested_item shift.num is exist - process it [08:53:40]requested_item shift.opened is exist - process it [08:53:40]req_shift_opened [08:53:40]FM_GetShiftState [08:53:40]SAM_PROTO_GetShiftState [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 13 01 00 [08:53:40]Write to MH i2c: E2 08 00 4D 66 80 13 01 00 00 00 00 00 30 [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:41]Read from MH i2c: E2 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 0E 00 [08:53:41]MH_I2C_Read... [08:53:41]Read from MH i2c: E2 0E 00 4D 66 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 15 [08:53:41]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:53:41]wFMCommunicate OK [08:53:41]SAM_PROTO_GetShiftState done [08:53:41]FM_GetShiftState done [08:53:41]req_shift_opened done [08:53:41]requested_item shift.open_date is exist - process it [08:53:41]req_shift_open_date [08:53:41]req_shift_open_date done [08:53:41]produce_requested_data done [08:53:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95337,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:53:41]process_action_free close_receipt [08:53:41]json_value_free [08:53:41]json_value_free done [08:53:41]process_json_proto returns [08:53:41]Send response to host [08:53:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95337,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:53:41]free response buf [08:53:41]execute_script done [08:53:41]execute_script returns [08:53:41]free content buf [08:53:41]Sock 9.Close socket [08:53:41]Sock 9.Thread stoped [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:07]accept exits with 8 [08:54:07]New connection [08:54:07]New thread 3066813796 created [08:54:07]Thread 3066957156 joined [08:54:07]Waiting for new connection... [08:54:07] Sock 8.Parse request [08:54:07]Sock 8.Check first char [08:54:07]Sock 8.First char is OK [08:54:07]request: POST /json_proto HTTP/1.0 [08:54:07]Method: POST [08:54:07]URL: /json_proto [08:54:07]Method is POST - this is cgi request [08:54:07]url: /json_proto [08:54:07]query_string will be loaded in cgi processing [08:54:07]execute_cgi json_proto POST (null) [08:54:07]execute_cgi path=json_proto method=POST [08:54:07]POST find Content-Length [08:54:07]Host: 172.17.62.67:8080 [08:54:07]Content-Length: 677 [08:54:07]Content-Type: application/json [08:54:07] [08:54:07]POST finish read [08:54:07]Found Content-Length = 677 [08:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196319", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:07]execute_script... [08:54:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196319", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:07]POST & json_proto [08:54:07]process_json_proto [08:54:07]json parsed OK: [08:54:07]protocol is kg_v1.0 [08:54:07]action value=close_receipt [08:54:07]process_action close_receipt [08:54:07]cmd_close_receipt [08:54:07]MH_GetDate [08:54:07]Write to MH i2c: F0 00 00 4E 66 A3 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: F0 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: F0 05 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: F0 05 00 4E 66 00 B9 69 F1 65 20 [08:54:07]GetLastDocTimeStamp 1710320028 [08:54:07]current date 1710320057 [08:54:07]FM_GetShiftState [08:54:07]SAM_PROTO_GetShiftState [08:54:07]wFMCommunicate request_size=4 [08:54:07]MH_SAM_APDU [08:54:07]CAPDU: 80 13 01 00 [08:54:07]Write to MH i2c: E2 08 00 4F 66 80 13 01 00 00 00 00 00 32 [08:54:07]Write i2c OK [08:54:07]MH_I2C_Read... [08:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:07]Read from MH i2c: E2 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 0E 00 [08:54:07]MH_I2C_Read... [08:54:07]Read from MH i2c: E2 0E 00 4F 66 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 17 [08:54:07]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:54:07]wFMCommunicate OK [08:54:07]SAM_PROTO_GetShiftState done [08:54:07]FM_GetShiftState done [08:54:07]opened in 1710288279 [08:54:07]opened+sec_in_day 1710374679 [08:54:07]quantity*price = 50005 [08:54:07]sum+1 = 50007 [08:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 33 13.03.2024 08:54 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95338 ФПД: 225068534987450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T085417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95338&fm=225068534987450&tin=02508201610067®Number=0000000000090555&sum=50000 [08:54:08]StoreToDocumentArchive [08:54:08]shift 328 fd 95338 [08:54:08]save to /storage/0328/doc_00095338 [08:54:08]save last doc name /storage/0328/doc_00095338 to /storage/kkm_last_doc_name [08:54:08]save OK [08:54:08]Clear old archive folders... [08:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:08]tlvbuf is 01B3CF90 [08:54:08]SAM_PROTO_ClearQueue [08:54:08]wFMCommunicate request_size=4 [08:54:08]MH_SAM_APDU [08:54:08]CAPDU: 80 09 00 00 [08:54:08]Write to MH i2c: E2 08 00 5C 66 80 09 00 00 00 00 00 00 34 [08:54:08]Write i2c OK [08:54:08]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 5C 66 00 90 00 36 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]SAM_PROTO_ClearQueue done [08:54:09]KKMCreateOFDPacket [08:54:09]OFDProtocolAddRootSTLVToBuf [08:54:09]FM_MakeSignedData [08:54:09]FM_MakeSignedData [08:54:09]SAM_PROTO_SignData [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 01 02 [08:54:09]Write to MH i2c: E2 08 00 5D 66 80 0D 01 02 00 00 00 00 3C [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 5D 66 00 90 00 37 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]wFMCommunicate request_size=255 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 21 00 00 00 F4 03 04 00 B9 69 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 74 01 00 35 04 06 00 CC [08:54:09]Write to MH i2c: E2 02 01 5E 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 21 00 00 00 F4 03 04 00 B9 69 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 74 01 00 35 04 06 00 CC 00 00 72 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 5E 66 00 90 00 38 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]wFMCommunicate request_size=10 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 02 02 05 B2 DA 13 FA BA [08:54:09]Write to MH i2c: E2 0D 00 5F 66 80 0D 02 02 05 00 B2 DA 13 FA BA 00 00 9C [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 03 00 5F 66 00 90 00 39 [08:54:09]RAPDU: 90 00 [08:54:09]wFMCommunicate OK [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 0D 03 02 [08:54:09]Write to MH i2c: E2 08 00 60 66 80 0D 03 02 00 00 00 00 41 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 0B 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 0B 00 60 66 00 48 2C 0E B5 69 0F 92 8B 90 00 0E [08:54:09]RAPDU: 48 2C 0E B5 69 0F 92 8B 90 00 [08:54:09]wFMCommunicate OK [08:54:09]SAM_PROTO_SignData done [08:54:09]FM_MakeSignedData done [08:54:09]CreateOFDProtocolMessage [08:54:09]wFMCommunicate request_size=4 [08:54:09]MH_SAM_APDU [08:54:09]CAPDU: 80 11 00 00 [08:54:09]Write to MH i2c: E2 08 00 61 66 80 11 00 00 00 00 00 00 41 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:09]Read from MH i2c: E2 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 17 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: E2 17 00 61 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 91 [08:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:54:09]wFMCommunicate OK [08:54:09]CreateOFDProtocolMessage done [08:54:09]OFDSenderStorePacket 95338 [08:54:09]StoreOFDPacket docnum=95338 [08:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DA 80 07 01 7F FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 21 00 00 00 F4 03 04 00 B9 69 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 74 01 00 35 04 06 00 CC B2 DA 13 FA BA 48 2C 0E B5 69 0F 92 8B [08:54:09]CheckFolder [08:54:09]dirname=/storage/ofd_packets [08:54:09]CheckFolder done [08:54:09]ProducePacketName [08:54:09]name=ofd_packets/00095338 [08:54:09]NVStorageSaveData ofd_packets/00095338 [08:54:09]File name is /storage/ofd_packets/00095338 [08:54:09]Write 301 bytes [08:54:09]NVStorageSaveData done [08:54:09]OFDSenderStorePacket done [08:54:09]KKMCreateOFDPacket done [08:54:09]NVStorageSaveData kkm_last_timestamp [08:54:09]File name is /storage/kkm_last_timestamp [08:54:09]Write 4 bytes [08:54:09]NVStorageSaveData done [08:54:09]ExternCall_PrintAddStr [08:54:09]wPrintStart [08:54:09]Write to MH i2c: 01 00 00 62 66 C8 [08:54:09]Write i2c OK [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 07 00 [08:54:09]MH_I2C_Read... [08:54:09]Read from MH i2c: 01 07 00 62 66 00 80 00 00 00 FF 0F 5D [08:54:09]RasterBufferAndPrint [08:54:09]line Счет N : (1)196319 [08:54:09]line ИНН: 02508201610067 [08:54:09]line Контрольно-Кассовый Чек [08:54:09]line ПРОДАЖА [08:54:09]line ТРК (МРК, ГНК) : 12 [08:54:09]line Товар: 2710124130 [08:54:09]line Аи-92-К-5 [08:54:09]line 7.950 * 62.90 [08:54:09]line = 500.06 [08:54:09]line НДС 12% НСП 1% [08:54:09]line > о реализуемом товаре [08:54:09]line ОКРУГЛЕНИЕ: -0.06 [08:54:09]line ИТОГО: 500.00 [08:54:09]line Внесено: 500.00 [08:54:09]line СДАЧА: 0.00 [08:54:09]line НСП 1% : 4.42 [08:54:09]line НДС 12% : 53.10 [08:54:09]line Наличными: 500.00 [08:54:09]line Безнал.: 0.00 [08:54:09]line Место: АЗС № 6 "Партнер Нефть" [08:54:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [08:54:09]line СНО: Общий режим [08:54:09]line Чек 33 13.03.2024 08:54 [08:54:09]line Смена: 328 ФФД: 1.0 [08:54:09]line ЗНМ: 0300000009 [08:54:09]line РНМ: 0000000000090555 [08:54:09]line Версия ККМ: 001 [08:54:09]line ФМ: 0000000000874811 [08:54:09]line ФД: 95338 [08:54:09]line ФПД: 225068534987450 [08:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T085417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95338&fm=225068534987450&tin=02508201610067®Number=0000000000090555&sum=50000 [08:54:09]OFD Sender: Processing packet 95338 [packets to send 30, broken 29] [08:54:09]ProducePacketName [08:54:09]name=ofd_packets/00095338 [08:54:09]OFD Sender: To server: pG, [08:54:09]CommunicateWithHost lk.salyk.kg:30040 [08:54:09]ConnectInit lk.salyk.kg [08:54:09]written 0, free lines is 4095 [08:54:09]Connected sock=10 [08:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DA 80 07 01 7F FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 21 00 00 00 F4 03 04 00 B9 69 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 74 01 00 35 04 06 00 CC B2 DA 13 FA BA 48 2C 0E B5 69 0F 92 8B [08:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7B DD 47 00 39 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6A 74 01 00 F4 03 04 00 0D 15 F1 65 B6 04 01 00 00 AE FB A6 74 92 93 A2 C0 [08:54:10]CommunicateWithHost err = 0 [08:54:10]CheckOFDResponse [08:54:10]1017 (14) - 77093643461234 [08:54:10]1041 (16) - 0000000000874811 [08:54:10]1040 (4) - 95338 [08:54:10]1012 (4) - 13.03.2024 02:53 [08:54:10]1206 (1) - 0 [08:54:10]OFD Sender: Remove packet 95338 [08:54:10]ProducePacketName [08:54:10]name=ofd_packets/00095338 [08:54:10]NVStorageDeleteData [08:54:10]Write to MH i2c: 01 00 00 8D 66 F3 [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 07 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: 01 07 00 8D 66 00 80 00 00 00 46 0D CD [08:54:10]RasterBufferAndPrint [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]line [08:54:10]written 0, free lines is 3404 [08:54:10]process_action close_receipt done [08:54:10]requested_data is exist [08:54:10]produce_requested_data [08:54:10]requested_item fm.sn is exist - process it [08:54:10]wFMCommunicate request_size=4 [08:54:10]MH_SAM_APDU [08:54:10]CAPDU: 80 11 00 00 [08:54:10]Write to MH i2c: E2 08 00 94 66 80 11 00 00 00 00 00 00 74 [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 17 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 17 00 94 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C4 [08:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:54:10]wFMCommunicate OK [08:54:10]requested_item fd.num is exist - process it [08:54:10]SAM_PROTO_GetFieldsCounters [08:54:10]wFMCommunicate request_size=4 [08:54:10]MH_SAM_APDU [08:54:10]CAPDU: 80 13 00 00 [08:54:10]Write to MH i2c: E2 08 00 95 66 80 13 00 00 00 00 00 00 77 [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 62 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 62 00 95 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6A 74 01 00 0E 04 04 00 48 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 1F [08:54:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6A 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:10]wFMCommunicate OK [08:54:10]SAM_PROTO_GetFieldsCounters done [08:54:10]requested_item shift.num is exist - process it [08:54:10]requested_item shift.opened is exist - process it [08:54:10]req_shift_opened [08:54:10]FM_GetShiftState [08:54:10]SAM_PROTO_GetShiftState [08:54:10]wFMCommunicate request_size=4 [08:54:10]MH_SAM_APDU [08:54:10]CAPDU: 80 13 01 00 [08:54:10]Write to MH i2c: E2 08 00 96 66 80 13 01 00 00 00 00 00 79 [08:54:10]Write i2c OK [08:54:10]MH_I2C_Read... [08:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:10]Read from MH i2c: E2 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 0E 00 [08:54:10]MH_I2C_Read... [08:54:10]Read from MH i2c: E2 0E 00 96 66 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 5E [08:54:10]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:54:10]wFMCommunicate OK [08:54:10]SAM_PROTO_GetShiftState done [08:54:10]FM_GetShiftState done [08:54:10]req_shift_opened done [08:54:10]requested_item shift.open_date is exist - process it [08:54:10]req_shift_open_date [08:54:10]req_shift_open_date done [08:54:10]produce_requested_data done [08:54:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95338,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:54:10]process_action_free close_receipt [08:54:10]json_value_free [08:54:10]json_value_free done [08:54:10]process_json_proto returns [08:54:10]Send response to host [08:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95338,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:54:10]free response buf [08:54:10]execute_script done [08:54:10]execute_script returns [08:54:10]free content buf [08:54:10]Sock 8.Close socket [08:54:10]Sock 8.Thread stoped [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:38]accept exits with 9 [08:57:38]New connection [08:57:38]New thread 3066957156 created [08:57:38]Thread 3066813796 joined [08:57:38]Waiting for new connection... [08:57:38] Sock 9.Parse request [08:57:38]Sock 9.Check first char [08:57:38]Sock 9.First char is OK [08:57:38]request: POST /json_proto HTTP/1.0 [08:57:38]Method: POST [08:57:38]URL: /json_proto [08:57:38]Method is POST - this is cgi request [08:57:38]url: /json_proto [08:57:38]query_string will be loaded in cgi processing [08:57:38]execute_cgi json_proto POST (null) [08:57:38]execute_cgi path=json_proto method=POST [08:57:38]POST find Content-Length [08:57:38]Host: 172.17.62.67:8080 [08:57:38]Content-Length: 1194 [08:57:38]Content-Type: application/json [08:57:38] [08:57:38]POST finish read [08:57:38]Found Content-Length = 1194 [08:57:38]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196320\u000A13.03.2024 08:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3827064.61\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:38]execute_script... [08:57:38]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196320\u000A13.03.2024 08:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A3827064.61\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:38]POST & json_proto [08:57:38]process_json_proto [08:57:38]json parsed OK: [08:57:38]protocol is kg_v1.0 [08:57:38]action value=print_text [08:57:38]process_action print_text [08:57:38]cmd_print_text [08:57:38]ExternCall_PrintAddStr [08:57:38]wPrintStart [08:57:38]Write to MH i2c: 01 00 00 97 66 FD [08:57:38]Write i2c OK [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 07 00 [08:57:38]MH_I2C_Read... [08:57:38]Read from MH i2c: 01 07 00 97 66 00 80 00 00 00 FF 0F 92 [08:57:38]RasterBufferAndPrint [08:57:38]line *****ТОВАРНЫЙ ЧЕК***** [08:57:38]line АЗС 6 [08:57:38]line Партнер нефть [08:57:38]line 02508201610067 [08:57:38]line Кассир : Сабырбек у. М. [08:57:38]line Счет N : (1)196320 [08:57:38]line 13.03.2024 08:51 [08:57:38]line ПРОДАЖА [08:57:38]line ТРК (МРК, ГНК): 12 [08:57:38]line Вид ГСМ : 2710124130 [08:57:38]line Аи-92-К-5 [08:57:38]line 20.000 x 62.90 [08:57:38]line ИТОГ: 1258.00 [08:57:38]line Тип оплаты: Талоны: Партнер нефть [08:57:38]line 3827064.61 [08:57:38]line ______________________ [08:57:38]line (подпись) [08:57:38]written 0, free lines is 4095 [08:57:39]Write to MH i2c: 01 00 00 AB 66 11 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 07 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: 01 07 00 AB 66 00 80 00 00 00 6B 0E 11 [08:57:39]RasterBufferAndPrint [08:57:39]line [08:57:39]line [08:57:39]line [08:57:39]line [08:57:39]line [08:57:39]written 0, free lines is 3695 [08:57:39]process_action print_text done [08:57:39]requested_data is exist [08:57:39]produce_requested_data [08:57:39]requested_item fm.sn is exist - process it [08:57:39]wFMCommunicate request_size=4 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 11 00 00 [08:57:39]Write to MH i2c: E2 08 00 B2 66 80 11 00 00 00 00 00 00 92 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 17 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 17 00 B2 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E2 [08:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [08:57:39]wFMCommunicate OK [08:57:39]requested_item fd.num is exist - process it [08:57:39]SAM_PROTO_GetFieldsCounters [08:57:39]wFMCommunicate request_size=4 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 13 00 00 [08:57:39]Write to MH i2c: E2 08 00 B3 66 80 13 00 00 00 00 00 00 95 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 62 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 62 00 B3 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6A 74 01 00 0E 04 04 00 48 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 3D [08:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6A 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:39]wFMCommunicate OK [08:57:39]SAM_PROTO_GetFieldsCounters done [08:57:39]requested_item shift.num is exist - process it [08:57:39]requested_item shift.opened is exist - process it [08:57:39]req_shift_opened [08:57:39]FM_GetShiftState [08:57:39]SAM_PROTO_GetShiftState [08:57:39]wFMCommunicate request_size=4 [08:57:39]MH_SAM_APDU [08:57:39]CAPDU: 80 13 01 00 [08:57:39]Write to MH i2c: E2 08 00 B4 66 80 13 01 00 00 00 00 00 97 [08:57:39]Write i2c OK [08:57:39]MH_I2C_Read... [08:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:39]Read from MH i2c: E2 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 0E 00 [08:57:39]MH_I2C_Read... [08:57:39]Read from MH i2c: E2 0E 00 B4 66 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 7C [08:57:39]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [08:57:39]wFMCommunicate OK [08:57:39]SAM_PROTO_GetShiftState done [08:57:39]FM_GetShiftState done [08:57:39]req_shift_opened done [08:57:39]requested_item shift.open_date is exist - process it [08:57:39]req_shift_open_date [08:57:39]req_shift_open_date done [08:57:39]produce_requested_data done [08:57:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95338,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [08:57:39]process_action_free print_text [08:57:39]json_value_free [08:57:39]json_value_free done [08:57:39]process_json_proto returns [08:57:39]Send response to host [08:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95338,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [08:57:39]free response buf [08:57:39]execute_script done [08:57:39]execute_script returns [08:57:39]free content buf [08:57:39]Sock 9.Close socket [08:57:39]Sock 9.Thread stoped [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:44]recv_with_timeout no data received [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]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:17]recv_with_timeout no data received [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:55]accept exits with 8 [09:06:55]New connection [09:06:55]New thread 3066813796 created [09:06:55]Thread 3066957156 joined [09:06:55]Waiting for new connection... [09:06:55] Sock 8.Parse request [09:06:55]Sock 8.Check first char [09:06:55]Sock 8.First char is OK [09:06:55]request: POST /json_proto HTTP/1.0 [09:06:55]Method: POST [09:06:55]URL: /json_proto [09:06:55]Method is POST - this is cgi request [09:06:55]url: /json_proto [09:06:55]query_string will be loaded in cgi processing [09:06:55]execute_cgi json_proto POST (null) [09:06:55]execute_cgi path=json_proto method=POST [09:06:55]POST find Content-Length [09:06:55]Host: 172.17.62.67:8080 [09:06:55]Content-Length: 677 [09:06:55]Content-Type: application/json [09:06:55] [09:06:55]POST finish read [09:06:55]Found Content-Length = 677 [09:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196322", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:55]execute_script... [09:06:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196322", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:55]POST & json_proto [09:06:55]process_json_proto [09:06:55]json parsed OK: [09:06:55]protocol is kg_v1.0 [09:06:55]action value=close_receipt [09:06:55]process_action close_receipt [09:06:55]cmd_close_receipt [09:06:55]MH_GetDate [09:06:55]Write to MH i2c: F0 00 00 B5 66 0A [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 05 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: F0 05 00 B5 66 00 B9 6C F1 65 8A [09:06:55]GetLastDocTimeStamp 1710320057 [09:06:55]current date 1710320825 [09:06:55]FM_GetShiftState [09:06:55]SAM_PROTO_GetShiftState [09:06:55]wFMCommunicate request_size=4 [09:06:55]MH_SAM_APDU [09:06:55]CAPDU: 80 13 01 00 [09:06:55]Write to MH i2c: E2 08 00 B6 66 80 13 01 00 00 00 00 00 99 [09:06:55]Write i2c OK [09:06:55]MH_I2C_Read... [09:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:55]Read from MH i2c: E2 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 0E 00 [09:06:55]MH_I2C_Read... [09:06:55]Read from MH i2c: E2 0E 00 B6 66 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 7E [09:06:55]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:06:55]wFMCommunicate OK [09:06:55]SAM_PROTO_GetShiftState done [09:06:55]FM_GetShiftState done [09:06:55]opened in 1710288279 [09:06:55]opened+sec_in_day 1710374679 [09:06:55]quantity*price = 50005 [09:06:55]sum+1 = 50007 [09:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 34 13.03.2024 09:07 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95339 ФПД: 38379682139083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T090705&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95339&fm=38379682139083&tin=02508201610067®Number=0000000000090555&sum=50000 [09:06:56]StoreToDocumentArchive [09:06:56]shift 328 fd 95339 [09:06:56]save to /storage/0328/doc_00095339 [09:06:56]save last doc name /storage/0328/doc_00095339 to /storage/kkm_last_doc_name [09:06:56]save OK [09:06:56]Clear old archive folders... [09:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:56]tlvbuf is 01A9B4A0 [09:06:56]SAM_PROTO_ClearQueue [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 09 00 00 [09:06:56]Write to MH i2c: E2 08 00 C3 66 80 09 00 00 00 00 00 00 9B [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 C3 66 00 90 00 9D [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]SAM_PROTO_ClearQueue done [09:06:56]KKMCreateOFDPacket [09:06:56]OFDProtocolAddRootSTLVToBuf [09:06:56]FM_MakeSignedData [09:06:56]FM_MakeSignedData [09:06:56]SAM_PROTO_SignData [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 01 02 [09:06:56]Write to MH i2c: E2 08 00 C4 66 80 0D 01 02 00 00 00 00 A3 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]OFD Sender: No OFD packet to send [09:06:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 C4 66 00 90 00 9E [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]wFMCommunicate request_size=255 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 22 00 00 00 F4 03 04 00 B9 6C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 74 01 00 35 04 06 00 22 [09:06:56]Write to MH i2c: E2 02 01 C5 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 22 00 00 00 F4 03 04 00 B9 6C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 74 01 00 35 04 06 00 22 00 00 34 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 C5 66 00 90 00 9F [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]wFMCommunicate request_size=10 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 02 02 05 E7 F7 52 0B CB [09:06:56]Write to MH i2c: E2 0D 00 C6 66 80 0D 02 02 05 00 E7 F7 52 0B CB 00 00 B6 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 03 00 C6 66 00 90 00 A0 [09:06:56]RAPDU: 90 00 [09:06:56]wFMCommunicate OK [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 0D 03 02 [09:06:56]Write to MH i2c: E2 08 00 C7 66 80 0D 03 02 00 00 00 00 A8 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 0B 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 0B 00 C7 66 00 C5 B8 DB 09 68 AF 29 07 90 00 51 [09:06:56]RAPDU: C5 B8 DB 09 68 AF 29 07 90 00 [09:06:56]wFMCommunicate OK [09:06:56]SAM_PROTO_SignData done [09:06:56]FM_MakeSignedData done [09:06:56]CreateOFDProtocolMessage [09:06:56]wFMCommunicate request_size=4 [09:06:56]MH_SAM_APDU [09:06:56]CAPDU: 80 11 00 00 [09:06:56]Write to MH i2c: E2 08 00 C8 66 80 11 00 00 00 00 00 00 A8 [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:56]Read from MH i2c: E2 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 17 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: E2 17 00 C8 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [09:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:06:56]wFMCommunicate OK [09:06:56]CreateOFDProtocolMessage done [09:06:56]OFDSenderStorePacket 95339 [09:06:56]StoreOFDPacket docnum=95339 [09:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1F E0 07 01 E6 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 22 00 00 00 F4 03 04 00 B9 6C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 74 01 00 35 04 06 00 22 E7 F7 52 0B CB C5 B8 DB 09 68 AF 29 07 [09:06:56]CheckFolder [09:06:56]dirname=/storage/ofd_packets [09:06:56]CheckFolder done [09:06:56]ProducePacketName [09:06:56]name=ofd_packets/00095339 [09:06:56]NVStorageSaveData ofd_packets/00095339 [09:06:56]File name is /storage/ofd_packets/00095339 [09:06:56]Write 301 bytes [09:06:56]NVStorageSaveData done [09:06:56]OFDSenderStorePacket done [09:06:56]KKMCreateOFDPacket done [09:06:56]NVStorageSaveData kkm_last_timestamp [09:06:56]File name is /storage/kkm_last_timestamp [09:06:56]Write 4 bytes [09:06:56]NVStorageSaveData done [09:06:56]ExternCall_PrintAddStr [09:06:56]wPrintStart [09:06:56]Write to MH i2c: 01 00 00 C9 66 2F [09:06:56]Write i2c OK [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 [09:06:56]MH_I2C_Read... [09:06:56]Read from MH i2c: 01 07 00 C9 66 00 80 00 00 00 FF 0F C4 [09:06:56]RasterBufferAndPrint [09:06:56]line Счет N : (1)196322 [09:06:56]line ИНН: 02508201610067 [09:06:56]line Контрольно-Кассовый Чек [09:06:56]line ПРОДАЖА [09:06:56]line ТРК (МРК, ГНК) : 12 [09:06:56]line Товар: 2710124130 [09:06:56]line Аи-92-К-5 [09:06:56]line 7.950 * 62.90 [09:06:56]line = 500.06 [09:06:56]line НДС 12% НСП 1% [09:06:56]line > о реализуемом товаре [09:06:56]line ОКРУГЛЕНИЕ: -0.06 [09:06:56]line ИТОГО: 500.00 [09:06:56]line Внесено: 500.00 [09:06:56]line СДАЧА: 0.00 [09:06:56]line НСП 1% : 4.42 [09:06:56]line НДС 12% : 53.10 [09:06:56]line Наличными: 500.00 [09:06:56]line Безнал.: 0.00 [09:06:56]line Место: АЗС № 6 "Партнер Нефть" [09:06:56]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:06:56]line СНО: Общий режим [09:06:56]line Чек 34 13.03.2024 09:07 [09:06:56]line Смена: 328 ФФД: 1.0 [09:06:56]line ЗНМ: 0300000009 [09:06:56]line РНМ: 0000000000090555 [09:06:56]line Версия ККМ: 001 [09:06:56]line ФМ: 0000000000874811 [09:06:56]line ФД: 95339 [09:06:56]line ФПД: 38379682139083 [09:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T090705&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95339&fm=38379682139083&tin=02508201610067®Number=0000000000090555&sum=50000 [09:06:57]OFD Sender: Processing packet 95339 [packets to send 30, broken 29] [09:06:57]ProducePacketName [09:06:57]name=ofd_packets/00095339 [09:06:57]OFD Sender: To server: pG, [09:06:57]CommunicateWithHost lk.salyk.kg:30040 [09:06:57]ConnectInit lk.salyk.kg [09:06:57]written 0, free lines is 4095 [09:06:57]Write to MH i2c: 01 00 00 F4 66 5A [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 07 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: 01 07 00 F4 66 00 80 00 00 00 48 0D 36 [09:06:57]RasterBufferAndPrint [09:06:57]line [09:06:57]line [09:06:57]line [09:06:57]line [09:06:57]line [09:06:57]written 0, free lines is 3406 [09:06:57]process_action close_receipt done [09:06:57]requested_data is exist [09:06:57]produce_requested_data [09:06:57]requested_item fm.sn is exist - process it [09:06:57]wFMCommunicate request_size=4 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 11 00 00 [09:06:57]Write to MH i2c: E2 08 00 FB 66 80 11 00 00 00 00 00 00 DB [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 17 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 17 00 FB 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2B [09:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:06:57]wFMCommunicate OK [09:06:57]requested_item fd.num is exist - process it [09:06:57]SAM_PROTO_GetFieldsCounters [09:06:57]wFMCommunicate request_size=4 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 13 00 00 [09:06:57]Write to MH i2c: E2 08 00 FC 66 80 13 00 00 00 00 00 00 DE [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 62 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 62 00 FC 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6B 74 01 00 0E 04 04 00 48 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 8A [09:06:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6B 74 01 00 0E 04 04 00 48 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:06:57]wFMCommunicate OK [09:06:57]SAM_PROTO_GetFieldsCounters done [09:06:57]requested_item shift.num is exist - process it [09:06:57]requested_item shift.opened is exist - process it [09:06:57]req_shift_opened [09:06:57]FM_GetShiftState [09:06:57]SAM_PROTO_GetShiftState [09:06:57]wFMCommunicate request_size=4 [09:06:57]MH_SAM_APDU [09:06:57]CAPDU: 80 13 01 00 [09:06:57]Write to MH i2c: E2 08 00 FD 66 80 13 01 00 00 00 00 00 E0 [09:06:57]Write i2c OK [09:06:57]MH_I2C_Read... [09:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:57]Read from MH i2c: E2 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 0E 00 [09:06:57]MH_I2C_Read... [09:06:57]Read from MH i2c: E2 0E 00 FD 66 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C5 [09:06:57]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:06:57]wFMCommunicate OK [09:06:57]SAM_PROTO_GetShiftState done [09:06:57]FM_GetShiftState done [09:06:57]req_shift_opened done [09:06:57]requested_item shift.open_date is exist - process it [09:06:57]req_shift_open_date [09:06:57]req_shift_open_date done [09:06:57]produce_requested_data done [09:06:57]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95339,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:06:57]process_action_free close_receipt [09:06:57]json_value_free [09:06:57]json_value_free done [09:06:57]process_json_proto returns [09:06:57]Send response to host [09:06:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95339,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:06:57]free response buf [09:06:57]execute_script done [09:06:57]execute_script returns [09:06:57]free content buf [09:06:57]Sock 8.Close socket [09:06:57]Sock 8.Thread stoped [09:06:59]Connected sock=11 [09:06:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1F E0 07 01 E6 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 22 00 00 00 F4 03 04 00 B9 6C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 74 01 00 35 04 06 00 22 E7 F7 52 0B CB C5 B8 DB 09 68 AF 29 07 [09:07:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AD 91 47 00 76 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6B 74 01 00 F4 03 04 00 0E 18 F1 65 B6 04 01 00 00 DF 9A BB D5 EA D6 97 D2 [09:07:00]CommunicateWithHost err = 0 [09:07:00]CheckOFDResponse [09:07:00]1017 (14) - 77093643461234 [09:07:00]1041 (16) - 0000000000874811 [09:07:00]1040 (4) - 95339 [09:07:00]1012 (4) - 13.03.2024 03:05 [09:07:00]1206 (1) - 0 [09:07:00]OFD Sender: Remove packet 95339 [09:07:00]ProducePacketName [09:07:00]name=ofd_packets/00095339 [09:07:00]NVStorageDeleteData [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:12]accept exits with 10 [09:07:12]New connection [09:07:12]New thread 3066957156 created [09:07:12]Thread 3066813796 joined [09:07:12]Waiting for new connection... [09:07:12] Sock 10.Parse request [09:07:12]Sock 10.Check first char [09:07:12]Sock 10.First char is OK [09:07:12]request: POST /json_proto HTTP/1.0 [09:07:12]Method: POST [09:07:12]URL: /json_proto [09:07:12]Method is POST - this is cgi request [09:07:12]url: /json_proto [09:07:12]query_string will be loaded in cgi processing [09:07:12]execute_cgi json_proto POST (null) [09:07:12]execute_cgi path=json_proto method=POST [09:07:12]POST find Content-Length [09:07:12]Host: 172.17.62.67:8080 [09:07:12]Content-Length: 1201 [09:07:12]Content-Type: application/json [09:07:12] [09:07:12]POST finish read [09:07:12]Found Content-Length = 1201 [09:07:12]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196321\u000A13.03.2024 09:01\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 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A53011\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:12]execute_script... [09:07:12]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196321\u000A13.03.2024 09:01\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 30.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1887.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\u000A53011\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:12]POST & json_proto [09:07:12]process_json_proto [09:07:12]json parsed OK: [09:07:12]protocol is kg_v1.0 [09:07:12]action value=print_text [09:07:12]process_action print_text [09:07:12]cmd_print_text [09:07:12]ExternCall_PrintAddStr [09:07:12]wPrintStart [09:07:12]Write to MH i2c: 01 00 00 FE 66 64 [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 07 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 07 00 FE 66 00 80 00 00 00 FF 0F F9 [09:07:12]RasterBufferAndPrint [09:07:12]line *****ТОВАРНЫЙ ЧЕК***** [09:07:12]line АЗС 6 [09:07:12]line Партнер нефть [09:07:12]line 02508201610067 [09:07:12]line Кассир : Сабырбек у. М. [09:07:12]line Счет N : (1)196321 [09:07:12]line 13.03.2024 09:01 [09:07:12]line ПРОДАЖА [09:07:12]line ТРК (МРК, ГНК): 22 [09:07:12]line Вид ГСМ : 2710124130 [09:07:12]line Аи-92-К-5 [09:07:12]line 30.000 x 62.90 [09:07:12]line ИТОГ: 1887.00 [09:07:12]line Тип оплаты: Талоны: Топливная Карта [09:07:12]line 53011 [09:07:12]line ______________________ [09:07:12]line (подпись) [09:07:12]written 0, free lines is 4095 [09:07:12]Write to MH i2c: 01 00 00 12 67 79 [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 07 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: 01 07 00 12 67 00 80 00 00 00 66 0E 74 [09:07:12]RasterBufferAndPrint [09:07:12]line [09:07:12]line [09:07:12]line [09:07:12]line [09:07:12]line [09:07:12]written 0, free lines is 3693 [09:07:12]process_action print_text done [09:07:12]requested_data is exist [09:07:12]produce_requested_data [09:07:12]requested_item fm.sn is exist - process it [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 11 00 00 [09:07:12]Write to MH i2c: E2 08 00 19 67 80 11 00 00 00 00 00 00 FA [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 17 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 17 00 19 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4A [09:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:07:12]wFMCommunicate OK [09:07:12]requested_item fd.num is exist - process it [09:07:12]SAM_PROTO_GetFieldsCounters [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 13 00 00 [09:07:12]Write to MH i2c: E2 08 00 1A 67 80 13 00 00 00 00 00 00 FD [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 62 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 62 00 1A 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6B 74 01 00 0E 04 04 00 48 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 A9 [09:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6B 74 01 00 0E 04 04 00 48 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:07:12]wFMCommunicate OK [09:07:12]SAM_PROTO_GetFieldsCounters done [09:07:12]requested_item shift.num is exist - process it [09:07:12]requested_item shift.opened is exist - process it [09:07:12]req_shift_opened [09:07:12]FM_GetShiftState [09:07:12]SAM_PROTO_GetShiftState [09:07:12]wFMCommunicate request_size=4 [09:07:12]MH_SAM_APDU [09:07:12]CAPDU: 80 13 01 00 [09:07:12]Write to MH i2c: E2 08 00 1B 67 80 13 01 00 00 00 00 00 FF [09:07:12]Write i2c OK [09:07:12]MH_I2C_Read... [09:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:12]Read from MH i2c: E2 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 0E 00 [09:07:12]MH_I2C_Read... [09:07:12]Read from MH i2c: E2 0E 00 1B 67 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E4 [09:07:12]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:07:12]wFMCommunicate OK [09:07:12]SAM_PROTO_GetShiftState done [09:07:12]FM_GetShiftState done [09:07:12]req_shift_opened done [09:07:12]requested_item shift.open_date is exist - process it [09:07:12]req_shift_open_date [09:07:12]req_shift_open_date done [09:07:12]produce_requested_data done [09:07:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95339,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:07:12]process_action_free print_text [09:07:12]json_value_free [09:07:12]json_value_free done [09:07:12]process_json_proto returns [09:07:12]Send response to host [09:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95339,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:07:12]free response buf [09:07:12]execute_script done [09:07:12]execute_script returns [09:07:12]free content buf [09:07:12]Sock 10.Close socket [09:07:12]Sock 10.Thread stoped [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:27]recv_with_timeout no data received [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10: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:10]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [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:14:58]accept exits with 8 [09:14:58]New connection [09:14:58]New thread 3066813796 created [09:14:58]Thread 3066957156 joined [09:14:58]Waiting for new connection... [09:14:58] Sock 8.Parse request [09:14:58]Sock 8.Check first char [09:14:58]Sock 8.First char is OK [09:14:58]request: POST /json_proto HTTP/1.0 [09:14:58]Method: POST [09:14:58]URL: /json_proto [09:14:58]Method is POST - this is cgi request [09:14:58]url: /json_proto [09:14:58]query_string will be loaded in cgi processing [09:14:58]execute_cgi json_proto POST (null) [09:14:58]execute_cgi path=json_proto method=POST [09:14:58]POST find Content-Length [09:14:58]Host: 172.17.62.67:8080 [09:14:58]Content-Length: 816 [09:14:58]Content-Type: application/json [09:14:58] [09:14:58]POST finish read [09:14:58]Found Content-Length = 816 [09:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196323", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:58]execute_script... [09:14:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196323", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:58]POST & json_proto [09:14:58]process_json_proto [09:14:58]json parsed OK: [09:14:58]protocol is kg_v1.0 [09:14:58]action value=close_receipt [09:14:58]process_action close_receipt [09:14:58]cmd_close_receipt [09:14:58]MH_GetDate [09:14:58]Write to MH i2c: F0 00 00 1C 67 72 [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: F0 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: F0 05 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: F0 05 00 1C 67 00 9C 6E F1 65 D7 [09:14:58]GetLastDocTimeStamp 1710320825 [09:14:58]current date 1710321308 [09:14:58]FM_GetShiftState [09:14:58]SAM_PROTO_GetShiftState [09:14:58]wFMCommunicate request_size=4 [09:14:58]MH_SAM_APDU [09:14:58]CAPDU: 80 13 01 00 [09:14:58]Write to MH i2c: E2 08 00 1D 67 80 13 01 00 00 00 00 00 01 [09:14:58]Write i2c OK [09:14:58]MH_I2C_Read... [09:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:58]Read from MH i2c: E2 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 0E 00 [09:14:58]MH_I2C_Read... [09:14:58]Read from MH i2c: E2 0E 00 1D 67 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E6 [09:14:58]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:14:58]wFMCommunicate OK [09:14:58]SAM_PROTO_GetShiftState done [09:14:58]FM_GetShiftState done [09:14:58]opened in 1710288279 [09:14:58]opened+sec_in_day 1710374679 [09:14:58]quantity*price = 50005 [09:14:58]sum+1 = 50007 [09:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 35 13.03.2024 09:15 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95340 ФПД: 174349530812293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T091508&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95340&fm=174349530812293&tin=02508201610067®Number=0000000000090555&sum=50006 [09:14:59]StoreToDocumentArchive [09:14:59]shift 328 fd 95340 [09:14:59]save to /storage/0328/doc_00095340 [09:14:59]save last doc name /storage/0328/doc_00095340 to /storage/kkm_last_doc_name [09:14:59]save OK [09:14:59]Clear old archive folders... [09:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:59]tlvbuf is 01AF9BB0 [09:14:59]SAM_PROTO_ClearQueue [09:14:59]wFMCommunicate request_size=4 [09:14:59]MH_SAM_APDU [09:14:59]CAPDU: 80 09 00 00 [09:14:59]Write to MH i2c: E2 08 00 2A 67 80 09 00 00 00 00 00 00 03 [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:59]Read from MH i2c: E2 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 03 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 03 00 2A 67 00 90 00 05 [09:14:59]RAPDU: 90 00 [09:14:59]wFMCommunicate OK [09:14:59]SAM_PROTO_ClearQueue done [09:14:59]KKMCreateOFDPacket [09:14:59]OFDProtocolAddRootSTLVToBuf [09:14:59]FM_MakeSignedData [09:14:59]FM_MakeSignedData [09:14:59]SAM_PROTO_SignData [09:14:59]wFMCommunicate request_size=4 [09:14:59]MH_SAM_APDU [09:14:59]CAPDU: 80 0D 01 02 [09:14:59]Write to MH i2c: E2 08 00 2B 67 80 0D 01 02 00 00 00 00 0B [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:59]Read from MH i2c: E2 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 03 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 03 00 2B 67 00 90 00 06 [09:14:59]RAPDU: 90 00 [09:14:59]wFMCommunicate OK [09:14:59]wFMCommunicate request_size=255 [09:14:59]MH_SAM_APDU [09:14:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9C 6E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 74 01 00 35 04 06 00 9E [09:14:59]Write to MH i2c: E2 02 01 2C 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9C 6E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 74 01 00 35 04 06 00 9E 00 00 0B [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:59]Read from MH i2c: E2 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 03 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 03 00 2C 67 00 90 00 07 [09:14:59]RAPDU: 90 00 [09:14:59]wFMCommunicate OK [09:14:59]wFMCommunicate request_size=10 [09:14:59]MH_SAM_APDU [09:14:59]CAPDU: 80 0D 02 02 05 91 E9 D9 CF 85 [09:14:59]Write to MH i2c: E2 0D 00 2D 67 80 0D 02 02 05 00 91 E9 D9 CF 85 00 00 BF [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:59]Read from MH i2c: E2 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 03 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 03 00 2D 67 00 90 00 08 [09:14:59]RAPDU: 90 00 [09:14:59]wFMCommunicate OK [09:14:59]wFMCommunicate request_size=4 [09:14:59]MH_SAM_APDU [09:14:59]CAPDU: 80 0D 03 02 [09:14:59]Write to MH i2c: E2 08 00 2E 67 80 0D 03 02 00 00 00 00 10 [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:59]Read from MH i2c: E2 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 0B 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 0B 00 2E 67 00 91 6C 84 CB 23 AD CC CE 90 00 C7 [09:14:59]RAPDU: 91 6C 84 CB 23 AD CC CE 90 00 [09:14:59]wFMCommunicate OK [09:14:59]SAM_PROTO_SignData done [09:14:59]FM_MakeSignedData done [09:14:59]CreateOFDProtocolMessage [09:14:59]wFMCommunicate request_size=4 [09:14:59]MH_SAM_APDU [09:14:59]CAPDU: 80 11 00 00 [09:14:59]Write to MH i2c: E2 08 00 2F 67 80 11 00 00 00 00 00 00 10 [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:59]Read from MH i2c: E2 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 17 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: E2 17 00 2F 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 60 [09:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:14:59]wFMCommunicate OK [09:14:59]CreateOFDProtocolMessage done [09:14:59]OFDSenderStorePacket 95340 [09:14:59]StoreOFDPacket docnum=95340 [09:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 36 71 07 01 67 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9C 6E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 74 01 00 35 04 06 00 9E 91 E9 D9 CF 85 91 6C 84 CB 23 AD CC CE [09:14:59]CheckFolder [09:14:59]dirname=/storage/ofd_packets [09:14:59]CheckFolder done [09:14:59]ProducePacketName [09:14:59]name=ofd_packets/00095340 [09:14:59]NVStorageSaveData ofd_packets/00095340 [09:14:59]File name is /storage/ofd_packets/00095340 [09:14:59]Write 301 bytes [09:14:59]NVStorageSaveData done [09:14:59]OFDSenderStorePacket done [09:14:59]KKMCreateOFDPacket done [09:14:59]NVStorageSaveData kkm_last_timestamp [09:14:59]File name is /storage/kkm_last_timestamp [09:14:59]Write 4 bytes [09:14:59]NVStorageSaveData done [09:14:59]ExternCall_PrintAddStr [09:14:59]wPrintStart [09:14:59]Write to MH i2c: 01 00 00 30 67 97 [09:14:59]Write i2c OK [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: 01 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: 01 07 00 [09:14:59]MH_I2C_Read... [09:14:59]Read from MH i2c: 01 07 00 30 67 00 80 00 00 00 FF 0F 2C [09:14:59]RasterBufferAndPrint [09:14:59]line Счет N : (1)196323 [09:14:59]line ИНН: 02508201610067 [09:14:59]line Контрольно-Кассовый Чек [09:14:59]line ПРОДАЖА [09:14:59]line ТРК (МРК, ГНК) : 32 [09:14:59]line Товар: 2710124130 [09:14:59]line Аи-92-К-5 [09:14:59]line 7.950 * 62.90 [09:14:59]line = 500.06 [09:14:59]line НДС 12% НСП 1% [09:14:59]line > о реализуемом товаре [09:14:59]line ИТОГО: 500.06 [09:14:59]line НСП 1% : 4.42 [09:14:59]line НДС 12% : 53.10 [09:14:59]line Наличными: 0.00 [09:14:59]line Безнал.: 500.06 [09:14:59]line Место: АЗС № 6 "Партнер Нефть" [09:14:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:14:59]line СНО: Общий режим [09:14:59]line Чек 35 13.03.2024 09:15 [09:14:59]line Смена: 328 ФФД: 1.0 [09:14:59]line ЗНМ: 0300000009 [09:14:59]line РНМ: 0000000000090555 [09:14:59]line Версия ККМ: 001 [09:14:59]line Платежная система: Бакай Банк [09:14:59]line ФМ: 0000000000874811 [09:14:59]line ФД: 95340 [09:14:59]line ФПД: 174349530812293 [09:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T091508&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95340&fm=174349530812293&tin=02508201610067®Number=0000000000090555&sum=50006 [09:15:00]OFD Sender: Processing packet 95340 [packets to send 30, broken 29] [09:15:00]ProducePacketName [09:15:00]name=ofd_packets/00095340 [09:15:00]OFD Sender: To server: pG, [09:15:00]CommunicateWithHost lk.salyk.kg:30040 [09:15:00]ConnectInit lk.salyk.kg [09:15:00]written 0, free lines is 4095 [09:15:00]Connected sock=10 [09:15:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 36 71 07 01 67 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 9C 6E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 74 01 00 35 04 06 00 9E 91 E9 D9 CF 85 91 6C 84 CB 23 AD CC CE [09:15:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AA 27 47 00 BF 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6C 74 01 00 F4 03 04 00 EF 19 F1 65 B6 04 01 00 00 A1 CA DC 5D CF F1 C5 1C [09:15:00]CommunicateWithHost err = 0 [09:15:00]CheckOFDResponse [09:15:00]1017 (14) - 77093643461234 [09:15:00]1041 (16) - 0000000000874811 [09:15:00]1040 (4) - 95340 [09:15:00]1012 (4) - 13.03.2024 03:13 [09:15:00]1206 (1) - 0 [09:15:00]OFD Sender: Remove packet 95340 [09:15:00]ProducePacketName [09:15:00]name=ofd_packets/00095340 [09:15:00]NVStorageDeleteData [09:15:00]Write to MH i2c: 01 00 00 5A 67 C1 [09:15:00]Write i2c OK [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: 01 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: 01 07 00 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: 01 07 00 5A 67 00 80 00 00 00 5F 0D B4 [09:15:00]RasterBufferAndPrint [09:15:00]line [09:15:00]line [09:15:00]line [09:15:00]line [09:15:00]line [09:15:00]written 0, free lines is 3429 [09:15:00]process_action close_receipt done [09:15:00]requested_data is exist [09:15:00]produce_requested_data [09:15:00]requested_item fm.sn is exist - process it [09:15:00]wFMCommunicate request_size=4 [09:15:00]MH_SAM_APDU [09:15:00]CAPDU: 80 11 00 00 [09:15:00]Write to MH i2c: E2 08 00 61 67 80 11 00 00 00 00 00 00 42 [09:15:00]Write i2c OK [09:15:00]MH_I2C_Read... [09:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:00]Read from MH i2c: E2 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: E2 17 00 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: E2 17 00 61 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 92 [09:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:15:00]wFMCommunicate OK [09:15:00]requested_item fd.num is exist - process it [09:15:00]SAM_PROTO_GetFieldsCounters [09:15:00]wFMCommunicate request_size=4 [09:15:00]MH_SAM_APDU [09:15:00]CAPDU: 80 13 00 00 [09:15:00]Write to MH i2c: E2 08 00 62 67 80 13 00 00 00 00 00 00 45 [09:15:00]Write i2c OK [09:15:00]MH_I2C_Read... [09:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:00]Read from MH i2c: E2 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: E2 62 00 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: E2 62 00 62 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6C 74 01 00 0E 04 04 00 48 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 F5 [09:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6C 74 01 00 0E 04 04 00 48 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:15:00]wFMCommunicate OK [09:15:00]SAM_PROTO_GetFieldsCounters done [09:15:00]requested_item shift.num is exist - process it [09:15:00]requested_item shift.opened is exist - process it [09:15:00]req_shift_opened [09:15:00]FM_GetShiftState [09:15:00]SAM_PROTO_GetShiftState [09:15:00]wFMCommunicate request_size=4 [09:15:00]MH_SAM_APDU [09:15:00]CAPDU: 80 13 01 00 [09:15:00]Write to MH i2c: E2 08 00 63 67 80 13 01 00 00 00 00 00 47 [09:15:00]Write i2c OK [09:15:00]MH_I2C_Read... [09:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:00]Read from MH i2c: E2 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: E2 0E 00 [09:15:00]MH_I2C_Read... [09:15:00]Read from MH i2c: E2 0E 00 63 67 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2C [09:15:00]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:15:00]wFMCommunicate OK [09:15:00]SAM_PROTO_GetShiftState done [09:15:00]FM_GetShiftState done [09:15:00]req_shift_opened done [09:15:00]requested_item shift.open_date is exist - process it [09:15:00]req_shift_open_date [09:15:00]req_shift_open_date done [09:15:00]produce_requested_data done [09:15:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95340,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:15:00]process_action_free close_receipt [09:15:00]json_value_free [09:15:00]json_value_free done [09:15:00]process_json_proto returns [09:15:00]Send response to host [09:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95340,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:15:00]free response buf [09:15:00]execute_script done [09:15:00]execute_script returns [09:15:00]free content buf [09:15:00]Sock 8.Close socket [09:15:00]Sock 8.Thread stoped [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:13]accept exits with 9 [09:16:13]New connection [09:16:13]New thread 3066957156 created [09:16:13]Thread 3066813796 joined [09:16:13]Waiting for new connection... [09:16:13] Sock 9.Parse request [09:16:13]Sock 9.Check first char [09:16:13]Sock 9.First char is OK [09:16:13]request: POST /json_proto HTTP/1.0 [09:16:13]Method: POST [09:16:13]URL: /json_proto [09:16:13]Method is POST - this is cgi request [09:16:13]url: /json_proto [09:16:13]query_string will be loaded in cgi processing [09:16:13]execute_cgi json_proto POST (null) [09:16:13]execute_cgi path=json_proto method=POST [09:16:13]POST find Content-Length [09:16:13]Host: 172.17.62.67:8080 [09:16:13]Content-Length: 677 [09:16:13]Content-Type: application/json [09:16:13] [09:16:13]POST finish read [09:16:13]Found Content-Length = 677 [09:16:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196324", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:13]execute_script... [09:16: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)196324", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:13]POST & json_proto [09:16:13]process_json_proto [09:16:13]json parsed OK: [09:16:13]protocol is kg_v1.0 [09:16:13]action value=close_receipt [09:16:13]process_action close_receipt [09:16:13]cmd_close_receipt [09:16:13]MH_GetDate [09:16:13]Write to MH i2c: F0 00 00 64 67 BA [09:16:13]Write i2c OK [09:16:13]MH_I2C_Read... [09:16:13]Read from MH i2c: F0 [09:16:13]MH_I2C_Read... [09:16:13]Read from MH i2c: F0 05 00 [09:16:13]MH_I2C_Read... [09:16:13]Read from MH i2c: F0 05 00 64 67 00 E7 6E F1 65 6A [09:16:13]GetLastDocTimeStamp 1710321308 [09:16:13]current date 1710321383 [09:16:13]FM_GetShiftState [09:16:13]SAM_PROTO_GetShiftState [09:16:13]wFMCommunicate request_size=4 [09:16:13]MH_SAM_APDU [09:16:13]CAPDU: 80 13 01 00 [09:16:13]Write to MH i2c: E2 08 00 65 67 80 13 01 00 00 00 00 00 49 [09:16:13]Write i2c OK [09:16:13]MH_I2C_Read... [09:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:13]Read from MH i2c: E2 [09:16:13]MH_I2C_Read... [09:16:13]Read from MH i2c: E2 0E 00 [09:16:13]MH_I2C_Read... [09:16:13]Read from MH i2c: E2 0E 00 65 67 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2E [09:16:13]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:16:13]wFMCommunicate OK [09:16:13]SAM_PROTO_GetShiftState done [09:16:13]FM_GetShiftState done [09:16:13]opened in 1710288279 [09:16:13]opened+sec_in_day 1710374679 [09:16:13]quantity*price = 40004 [09:16:13]sum+1 = 40005 [09:16:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 36 13.03.2024 09:16 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95341 ФПД: 62783494294276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T091623&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95341&fm=62783494294276&tin=02508201610067®Number=0000000000090555&sum=40000 [09:16:14]StoreToDocumentArchive [09:16:14]shift 328 fd 95341 [09:16:14]save to /storage/0328/doc_00095341 [09:16:14]save last doc name /storage/0328/doc_00095341 to /storage/kkm_last_doc_name [09:16:14]save OK [09:16:14]Clear old archive folders... [09:16:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:14]tlvbuf is 01BB6F00 [09:16:14]SAM_PROTO_ClearQueue [09:16:14]wFMCommunicate request_size=4 [09:16:14]MH_SAM_APDU [09:16:14]CAPDU: 80 09 00 00 [09:16:14]Write to MH i2c: E2 08 00 72 67 80 09 00 00 00 00 00 00 4B [09:16:14]Write i2c OK [09:16:14]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:15]Read from MH i2c: E2 03 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 72 67 00 90 00 4D [09:16:15]RAPDU: 90 00 [09:16:15]wFMCommunicate OK [09:16:15]SAM_PROTO_ClearQueue done [09:16:15]KKMCreateOFDPacket [09:16:15]OFDProtocolAddRootSTLVToBuf [09:16:15]FM_MakeSignedData [09:16:15]FM_MakeSignedData [09:16:15]SAM_PROTO_SignData [09:16:15]wFMCommunicate request_size=4 [09:16:15]MH_SAM_APDU [09:16:15]CAPDU: 80 0D 01 02 [09:16:15]Write to MH i2c: E2 08 00 73 67 80 0D 01 02 00 00 00 00 53 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 73 67 00 90 00 4E [09:16:15]RAPDU: 90 00 [09:16:15]wFMCommunicate OK [09:16:15]wFMCommunicate request_size=255 [09:16:15]MH_SAM_APDU [09:16:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E7 6E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 74 01 00 35 04 06 00 39 [09:16:15]Write to MH i2c: E2 02 01 74 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E7 6E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 74 01 00 35 04 06 00 39 00 00 C9 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 74 67 00 90 00 4F [09:16:15]RAPDU: 90 00 [09:16:15]wFMCommunicate OK [09:16:15]wFMCommunicate request_size=10 [09:16:15]MH_SAM_APDU [09:16:15]CAPDU: 80 0D 02 02 05 19 EB E0 0B 04 [09:16:15]Write to MH i2c: E2 0D 00 75 67 80 0D 02 02 05 00 19 EB E0 0B 04 00 00 53 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 03 00 75 67 00 90 00 50 [09:16:15]RAPDU: 90 00 [09:16:15]wFMCommunicate OK [09:16:15]wFMCommunicate request_size=4 [09:16:15]MH_SAM_APDU [09:16:15]CAPDU: 80 0D 03 02 [09:16:15]Write to MH i2c: E2 08 00 76 67 80 0D 03 02 00 00 00 00 58 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 0B 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 0B 00 76 67 00 7E 9E 6B 38 C5 38 F2 1A 90 00 21 [09:16:15]RAPDU: 7E 9E 6B 38 C5 38 F2 1A 90 00 [09:16:15]wFMCommunicate OK [09:16:15]SAM_PROTO_SignData done [09:16:15]FM_MakeSignedData done [09:16:15]CreateOFDProtocolMessage [09:16:15]wFMCommunicate request_size=4 [09:16:15]MH_SAM_APDU [09:16:15]CAPDU: 80 11 00 00 [09:16:15]Write to MH i2c: E2 08 00 77 67 80 11 00 00 00 00 00 00 58 [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:15]Read from MH i2c: E2 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 17 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: E2 17 00 77 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A8 [09:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:16:15]wFMCommunicate OK [09:16:15]CreateOFDProtocolMessage done [09:16:15]OFDSenderStorePacket 95341 [09:16:15]StoreOFDPacket docnum=95341 [09:16:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 68 E9 07 01 C9 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E7 6E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 74 01 00 35 04 06 00 39 19 EB E0 0B 04 7E 9E 6B 38 C5 38 F2 1A [09:16:15]CheckFolder [09:16:15]dirname=/storage/ofd_packets [09:16:15]CheckFolder done [09:16:15]ProducePacketName [09:16:15]name=ofd_packets/00095341 [09:16:15]NVStorageSaveData ofd_packets/00095341 [09:16:15]File name is /storage/ofd_packets/00095341 [09:16:15]Write 301 bytes [09:16:15]NVStorageSaveData done [09:16:15]OFDSenderStorePacket done [09:16:15]KKMCreateOFDPacket done [09:16:15]NVStorageSaveData kkm_last_timestamp [09:16:15]File name is /storage/kkm_last_timestamp [09:16:15]Write 4 bytes [09:16:15]NVStorageSaveData done [09:16:15]ExternCall_PrintAddStr [09:16:15]wPrintStart [09:16:15]Write to MH i2c: 01 00 00 78 67 DF [09:16:15]Write i2c OK [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: 01 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: 01 07 00 [09:16:15]MH_I2C_Read... [09:16:15]Read from MH i2c: 01 07 00 78 67 00 80 00 00 00 FF 0F 74 [09:16:15]RasterBufferAndPrint [09:16:15]line Счет N : (1)196324 [09:16:15]line ИНН: 02508201610067 [09:16:15]line Контрольно-Кассовый Чек [09:16:15]line ПРОДАЖА [09:16:15]line ТРК (МРК, ГНК) : 22 [09:16:15]line Товар: 2710124130 [09:16:15]line Аи-92-К-5 [09:16:15]line 6.360 * 62.90 [09:16:15]line = 400.04 [09:16:15]line НДС 12% НСП 1% [09:16:15]line > о реализуемом товаре [09:16:15]line ОКРУГЛЕНИЕ: -0.04 [09:16:15]line ИТОГО: 400.00 [09:16:15]line Внесено: 400.00 [09:16:15]line СДАЧА: 0.00 [09:16:15]line НСП 1% : 3.54 [09:16:15]line НДС 12% : 42.48 [09:16:15]line Наличными: 400.00 [09:16:15]line Безнал.: 0.00 [09:16:15]line Место: АЗС № 6 "Партнер Нефть" [09:16:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:16:15]line СНО: Общий режим [09:16:15]line Чек 36 13.03.2024 09:16 [09:16:15]line Смена: 328 ФФД: 1.0 [09:16:15]line ЗНМ: 0300000009 [09:16:15]line РНМ: 0000000000090555 [09:16:15]line Версия ККМ: 001 [09:16:15]line ФМ: 0000000000874811 [09:16:15]line ФД: 95341 [09:16:15]line ФПД: 62783494294276 [09:16:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T091623&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95341&fm=62783494294276&tin=02508201610067®Number=0000000000090555&sum=40000 [09:16:15]written 0, free lines is 4095 [09:16:15]OFD Sender: Processing packet 95341 [packets to send 30, broken 29] [09:16:15]ProducePacketName [09:16:15]name=ofd_packets/00095341 [09:16:15]OFD Sender: To server: pG, [09:16:15]CommunicateWithHost lk.salyk.kg:30040 [09:16:15]ConnectInit lk.salyk.kg [09:16:15]Connected sock=10 [09:16:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 68 E9 07 01 C9 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E7 6E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6D 74 01 00 35 04 06 00 39 19 EB E0 0B 04 7E 9E 6B 38 C5 38 F2 1A [09:16:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 40 8A 47 00 D2 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 34 38 31 31 10 04 04 00 6D 74 01 00 F4 03 04 00 3B 1A F1 65 B6 04 01 00 00 C1 FF E9 B3 1D A7 53 B4 [09:16:16]CommunicateWithHost err = 0 [09:16:16]CheckOFDResponse [09:16:16]1017 (14) - 77093643461234 [09:16:16]1041 (16) - 0000000000874811 [09:16:16]1040 (4) - 95341 [09:16:16]1012 (4) - 13.03.2024 03:15 [09:16:16]1206 (1) - 0 [09:16:16]OFD Sender: Remove packet 95341 [09:16:16]ProducePacketName [09:16:16]name=ofd_packets/00095341 [09:16:16]NVStorageDeleteData [09:16:16]Write to MH i2c: 01 00 00 A3 67 0A [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 07 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: 01 07 00 A3 67 00 80 00 00 00 48 0D E6 [09:16:16]RasterBufferAndPrint [09:16:16]line [09:16:16]line [09:16:16]line [09:16:16]line [09:16:16]line [09:16:16]written 0, free lines is 3406 [09:16:16]process_action close_receipt done [09:16:16]requested_data is exist [09:16:16]produce_requested_data [09:16:16]requested_item fm.sn is exist - process it [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 11 00 00 [09:16:16]Write to MH i2c: E2 08 00 AA 67 80 11 00 00 00 00 00 00 8B [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 17 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 17 00 AA 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DB [09:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:16:16]wFMCommunicate OK [09:16:16]requested_item fd.num is exist - process it [09:16:16]SAM_PROTO_GetFieldsCounters [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 13 00 00 [09:16:16]Write to MH i2c: E2 08 00 AB 67 80 13 00 00 00 00 00 00 8E [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 62 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 62 00 AB 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6D 74 01 00 0E 04 04 00 48 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 42 [09:16:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6D 74 01 00 0E 04 04 00 48 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:16:16]wFMCommunicate OK [09:16:16]SAM_PROTO_GetFieldsCounters done [09:16:16]requested_item shift.num is exist - process it [09:16:16]requested_item shift.opened is exist - process it [09:16:16]req_shift_opened [09:16:16]FM_GetShiftState [09:16:16]SAM_PROTO_GetShiftState [09:16:16]wFMCommunicate request_size=4 [09:16:16]MH_SAM_APDU [09:16:16]CAPDU: 80 13 01 00 [09:16:16]Write to MH i2c: E2 08 00 AC 67 80 13 01 00 00 00 00 00 90 [09:16:16]Write i2c OK [09:16:16]MH_I2C_Read... [09:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:16]Read from MH i2c: E2 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 0E 00 [09:16:16]MH_I2C_Read... [09:16:16]Read from MH i2c: E2 0E 00 AC 67 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 75 [09:16:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:16:16]wFMCommunicate OK [09:16:16]SAM_PROTO_GetShiftState done [09:16:16]FM_GetShiftState done [09:16:16]req_shift_opened done [09:16:16]requested_item shift.open_date is exist - process it [09:16:16]req_shift_open_date [09:16:16]req_shift_open_date done [09:16:16]produce_requested_data done [09:16:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95341,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:16:16]process_action_free close_receipt [09:16:16]json_value_free [09:16:16]json_value_free done [09:16:16]process_json_proto returns [09:16:16]Send response to host [09:16:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95341,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:16:16]free response buf [09:16:16]execute_script done [09:16:16]execute_script returns [09:16:16]free content buf [09:16:16]Sock 9.Close socket [09:16:16]Sock 9.Thread stoped [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:27]recv_with_timeout no data received [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:09]recv_with_timeout no data received [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:47]accept exits with 8 [09:20:47]New connection [09:20:47]New thread 3066813796 created [09:20:47]Thread 3066957156 joined [09:20:47]Waiting for new connection... [09:20:47] Sock 8.Parse request [09:20:47]Sock 8.Check first char [09:20:47]Sock 8.First char is OK [09:20:47]request: POST /json_proto HTTP/1.0 [09:20:47]Method: POST [09:20:47]URL: /json_proto [09:20:47]Method is POST - this is cgi request [09:20:47]url: /json_proto [09:20:47]query_string will be loaded in cgi processing [09:20:47]execute_cgi json_proto POST (null) [09:20:47]execute_cgi path=json_proto method=POST [09:20:47]POST find Content-Length [09:20:47]Host: 172.17.62.67:8080 [09:20:47]Content-Length: 677 [09:20:47]Content-Type: application/json [09:20:47] [09:20:47]POST finish read [09:20:47]Found Content-Length = 677 [09:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196325", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:47]execute_script... [09:20:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196325", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:47]POST & json_proto [09:20:47]process_json_proto [09:20:47]json parsed OK: [09:20:47]protocol is kg_v1.0 [09:20:47]action value=close_receipt [09:20:47]process_action close_receipt [09:20:47]cmd_close_receipt [09:20:47]MH_GetDate [09:20:47]Write to MH i2c: F0 00 00 AD 67 03 [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: F0 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: F0 05 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: F0 05 00 AD 67 00 F9 6F F1 65 C6 [09:20:47]GetLastDocTimeStamp 1710321383 [09:20:47]current date 1710321657 [09:20:47]FM_GetShiftState [09:20:47]SAM_PROTO_GetShiftState [09:20:47]wFMCommunicate request_size=4 [09:20:47]MH_SAM_APDU [09:20:47]CAPDU: 80 13 01 00 [09:20:47]Write to MH i2c: E2 08 00 AE 67 80 13 01 00 00 00 00 00 92 [09:20:47]Write i2c OK [09:20:47]MH_I2C_Read... [09:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:47]Read from MH i2c: E2 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 0E 00 [09:20:47]MH_I2C_Read... [09:20:47]Read from MH i2c: E2 0E 00 AE 67 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 77 [09:20:47]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:20:47]wFMCommunicate OK [09:20:47]SAM_PROTO_GetShiftState done [09:20:47]FM_GetShiftState done [09:20:47]opened in 1710288279 [09:20:47]opened+sec_in_day 1710374679 [09:20:47]quantity*price = 60006 [09:20:47]sum+1 = 60008 [09:20:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 37 13.03.2024 09:20 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95342 ФПД: 21873326716745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T092057&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95342&fm=21873326716745&tin=02508201610067®Number=0000000000090555&sum=60000 [09:20:48]StoreToDocumentArchive [09:20:48]shift 328 fd 95342 [09:20:48]save to /storage/0328/doc_00095342 [09:20:48]save last doc name /storage/0328/doc_00095342 to /storage/kkm_last_doc_name [09:20:48]save OK [09:20:48]Clear old archive folders... [09:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:48]tlvbuf is B6F56890 [09:20:48]SAM_PROTO_ClearQueue [09:20:48]wFMCommunicate request_size=4 [09:20:48]MH_SAM_APDU [09:20:48]CAPDU: 80 09 00 00 [09:20:48]Write to MH i2c: E2 08 00 BB 67 80 09 00 00 00 00 00 00 94 [09:20:48]Write i2c OK [09:20:48]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 03 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 03 00 BB 67 00 90 00 96 [09:20:49]RAPDU: 90 00 [09:20:49]wFMCommunicate OK [09:20:49]SAM_PROTO_ClearQueue done [09:20:49]KKMCreateOFDPacket [09:20:49]OFDProtocolAddRootSTLVToBuf [09:20:49]FM_MakeSignedData [09:20:49]FM_MakeSignedData [09:20:49]SAM_PROTO_SignData [09:20:49]wFMCommunicate request_size=4 [09:20:49]MH_SAM_APDU [09:20:49]CAPDU: 80 0D 01 02 [09:20:49]Write to MH i2c: E2 08 00 BC 67 80 0D 01 02 00 00 00 00 9C [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 03 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 03 00 BC 67 00 90 00 97 [09:20:49]RAPDU: 90 00 [09:20:49]wFMCommunicate OK [09:20:49]wFMCommunicate request_size=255 [09:20:49]MH_SAM_APDU [09:20:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F9 6F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 74 01 00 35 04 06 00 13 [09:20:49]Write to MH i2c: E2 02 01 BD 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F9 6F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 74 01 00 35 04 06 00 13 00 00 CD [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 03 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 03 00 BD 67 00 90 00 98 [09:20:49]RAPDU: 90 00 [09:20:49]wFMCommunicate OK [09:20:49]wFMCommunicate request_size=10 [09:20:49]MH_SAM_APDU [09:20:49]CAPDU: 80 0D 02 02 05 E4 C7 DE 77 49 [09:20:49]Write to MH i2c: E2 0D 00 BE 67 80 0D 02 02 05 00 E4 C7 DE 77 49 00 00 F2 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 03 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 03 00 BE 67 00 90 00 99 [09:20:49]RAPDU: 90 00 [09:20:49]wFMCommunicate OK [09:20:49]wFMCommunicate request_size=4 [09:20:49]MH_SAM_APDU [09:20:49]CAPDU: 80 0D 03 02 [09:20:49]Write to MH i2c: E2 08 00 BF 67 80 0D 03 02 00 00 00 00 A1 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 0B 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 0B 00 BF 67 00 A5 29 03 4B 1E 30 3C 2F 90 00 77 [09:20:49]RAPDU: A5 29 03 4B 1E 30 3C 2F 90 00 [09:20:49]wFMCommunicate OK [09:20:49]SAM_PROTO_SignData done [09:20:49]FM_MakeSignedData done [09:20:49]CreateOFDProtocolMessage [09:20:49]wFMCommunicate request_size=4 [09:20:49]MH_SAM_APDU [09:20:49]CAPDU: 80 11 00 00 [09:20:49]Write to MH i2c: E2 08 00 C0 67 80 11 00 00 00 00 00 00 A1 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:49]Read from MH i2c: E2 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 17 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: E2 17 00 C0 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F1 [09:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:20:49]wFMCommunicate OK [09:20:49]CreateOFDProtocolMessage done [09:20:49]OFDSenderStorePacket 95342 [09:20:49]StoreOFDPacket docnum=95342 [09:20:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E1 39 07 01 D0 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F9 6F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 74 01 00 35 04 06 00 13 E4 C7 DE 77 49 A5 29 03 4B 1E 30 3C 2F [09:20:49]CheckFolder [09:20:49]dirname=/storage/ofd_packets [09:20:49]CheckFolder done [09:20:49]ProducePacketName [09:20:49]name=ofd_packets/00095342 [09:20:49]NVStorageSaveData ofd_packets/00095342 [09:20:49]File name is /storage/ofd_packets/00095342 [09:20:49]Write 301 bytes [09:20:49]NVStorageSaveData done [09:20:49]OFDSenderStorePacket done [09:20:49]KKMCreateOFDPacket done [09:20:49]NVStorageSaveData kkm_last_timestamp [09:20:49]File name is /storage/kkm_last_timestamp [09:20:49]Write 4 bytes [09:20:49]NVStorageSaveData done [09:20:49]ExternCall_PrintAddStr [09:20:49]wPrintStart [09:20:49]Write to MH i2c: 01 00 00 C1 67 28 [09:20:49]Write i2c OK [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: 01 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: 01 07 00 [09:20:49]MH_I2C_Read... [09:20:49]Read from MH i2c: 01 07 00 C1 67 00 80 00 00 00 FF 0F BD [09:20:49]RasterBufferAndPrint [09:20:49]line Счет N : (1)196325 [09:20:49]line ИНН: 02508201610067 [09:20:49]line Контрольно-Кассовый Чек [09:20:49]line ПРОДАЖА [09:20:49]line ТРК (МРК, ГНК) : 32 [09:20:49]line Товар: 2710124130 [09:20:49]line Аи-92-К-5 [09:20:49]line 9.540 * 62.90 [09:20:49]line = 600.07 [09:20:49]line НДС 12% НСП 1% [09:20:49]line > о реализуемом товаре [09:20:49]line ОКРУГЛЕНИЕ: -0.07 [09:20:49]line ИТОГО: 600.00 [09:20:49]line Внесено: 600.00 [09:20:49]line СДАЧА: 0.00 [09:20:49]line НСП 1% : 5.31 [09:20:49]line НДС 12% : 63.72 [09:20:49]line Наличными: 600.00 [09:20:49]line Безнал.: 0.00 [09:20:49]line Место: АЗС № 6 "Партнер Нефть" [09:20:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:20:49]line СНО: Общий режим [09:20:49]line Чек 37 13.03.2024 09:20 [09:20:49]line Смена: 328 ФФД: 1.0 [09:20:49]line ЗНМ: 0300000009 [09:20:49]line РНМ: 0000000000090555 [09:20:49]line Версия ККМ: 001 [09:20:49]line ФМ: 0000000000874811 [09:20:49]line ФД: 95342 [09:20:49]line ФПД: 21873326716745 [09:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T092057&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95342&fm=21873326716745&tin=02508201610067®Number=0000000000090555&sum=60000 [09:20:49]OFD Sender: Processing packet 95342 [packets to send 30, broken 29] [09:20:49]ProducePacketName [09:20:49]name=ofd_packets/00095342 [09:20:49]OFD Sender: To server: pG, [09:20:49]CommunicateWithHost lk.salyk.kg:30040 [09:20:49]ConnectInit lk.salyk.kg [09:20:49]written 0, free lines is 4095 [09:20:50]Write to MH i2c: 01 00 00 EC 67 53 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: 01 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: 01 07 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: 01 07 00 EC 67 00 80 00 00 00 47 0D 2E [09:20:50]RasterBufferAndPrint [09:20:50]line [09:20:50]line [09:20:50]line [09:20:50]line [09:20:50]line [09:20:50]written 0, free lines is 3405 [09:20:50]process_action close_receipt done [09:20:50]requested_data is exist [09:20:50]produce_requested_data [09:20:50]requested_item fm.sn is exist - process it [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 11 00 00 [09:20:50]Write to MH i2c: E2 08 00 F3 67 80 11 00 00 00 00 00 00 D4 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 17 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 17 00 F3 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [09:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:20:50]wFMCommunicate OK [09:20:50]requested_item fd.num is exist - process it [09:20:50]SAM_PROTO_GetFieldsCounters [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 13 00 00 [09:20:50]Write to MH i2c: E2 08 00 F4 67 80 13 00 00 00 00 00 00 D7 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 62 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 62 00 F4 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6E 74 01 00 0E 04 04 00 48 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 8F [09:20:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6E 74 01 00 0E 04 04 00 48 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 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_GetFieldsCounters done [09:20:50]requested_item shift.num is exist - process it [09:20:50]requested_item shift.opened is exist - process it [09:20:50]req_shift_opened [09:20:50]FM_GetShiftState [09:20:50]SAM_PROTO_GetShiftState [09:20:50]wFMCommunicate request_size=4 [09:20:50]MH_SAM_APDU [09:20:50]CAPDU: 80 13 01 00 [09:20:50]Write to MH i2c: E2 08 00 F5 67 80 13 01 00 00 00 00 00 D9 [09:20:50]Write i2c OK [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 [09:20:50]MH_I2C_Read... [09:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:50]Read from MH i2c: E2 0E 00 [09:20:50]MH_I2C_Read... [09:20:50]Read from MH i2c: E2 0E 00 F5 67 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BE [09:20:50]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:20:50]wFMCommunicate OK [09:20:50]SAM_PROTO_GetShiftState done [09:20:50]FM_GetShiftState done [09:20:50]req_shift_opened done [09:20:50]requested_item shift.open_date is exist - process it [09:20:50]req_shift_open_date [09:20:50]req_shift_open_date done [09:20:50]produce_requested_data done [09:20:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95342,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:20:50]process_action_free close_receipt [09:20:50]json_value_free [09:20:50]json_value_free done [09:20:50]process_json_proto returns [09:20:50]Send response to host [09:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95342,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:20:50]free response buf [09:20:50]execute_script done [09:20:50]execute_script returns [09:20:50]free content buf [09:20:50]Sock 8.Close socket [09:20:50]Sock 8.Thread stoped [09:20:54]Connected sock=11 [09:20:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E1 39 07 01 D0 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F9 6F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 74 01 00 35 04 06 00 13 E4 C7 DE 77 49 A5 29 03 4B 1E 30 3C 2F [09:20:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B3 26 47 00 45 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6E 74 01 00 F4 03 04 00 53 1B F1 65 B6 04 01 00 00 8D C5 C7 D3 DF C0 CB 88 [09:20:56]CommunicateWithHost err = 0 [09:20:56]CheckOFDResponse [09:20:56]1017 (14) - 77093643461234 [09:20:56]1041 (16) - 0000000000874811 [09:20:56]1040 (4) - 95342 [09:20:56]1012 (4) - 13.03.2024 03:19 [09:20:56]1206 (1) - 0 [09:20:56]OFD Sender: Remove packet 95342 [09:20:56]ProducePacketName [09:20:56]name=ofd_packets/00095342 [09:20:56]NVStorageDeleteData [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:16]recv_with_timeout no data received [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]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:12]accept exits with 10 [09:26:12]New connection [09:26:12]New thread 3066957156 created [09:26:12]Thread 3066813796 joined [09:26:12]Waiting for new connection... [09:26:12] Sock 10.Parse request [09:26:12]Sock 10.Check first char [09:26:12]Sock 10.First char is OK [09:26:12]request: POST /json_proto HTTP/1.0 [09:26:12]Method: POST [09:26:12]URL: /json_proto [09:26:12]Method is POST - this is cgi request [09:26:12]url: /json_proto [09:26:12]query_string will be loaded in cgi processing [09:26:12]execute_cgi json_proto POST (null) [09:26:12]execute_cgi path=json_proto method=POST [09:26:12]POST find Content-Length [09:26:12]Host: 172.17.62.67:8080 [09:26:12]Content-Length: 675 [09:26:12]Content-Type: application/json [09:26:12] [09:26:12]POST finish read [09:26:12]Found Content-Length = 675 [09:26:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "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" ] } } [09:26:12]execute_script... [09:26:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "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" ] } } [09:26:12]POST & json_proto [09:26:12]process_json_proto [09:26:12]json parsed OK: [09:26:12]protocol is kg_v1.0 [09:26:12]action value=close_receipt [09:26:12]process_action close_receipt [09:26:12]cmd_close_receipt [09:26:12]MH_GetDate [09:26:12]Write to MH i2c: F0 00 00 F6 67 4C [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 05 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: F0 05 00 F6 67 00 3E 71 F1 65 56 [09:26:12]GetLastDocTimeStamp 1710321657 [09:26:12]current date 1710321982 [09:26:12]FM_GetShiftState [09:26:12]SAM_PROTO_GetShiftState [09:26:12]wFMCommunicate request_size=4 [09:26:12]MH_SAM_APDU [09:26:12]CAPDU: 80 13 01 00 [09:26:12]Write to MH i2c: E2 08 00 F7 67 80 13 01 00 00 00 00 00 DB [09:26:12]Write i2c OK [09:26:12]MH_I2C_Read... [09:26:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:12]Read from MH i2c: E2 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 [09:26:12]MH_I2C_Read... [09:26:12]Read from MH i2c: E2 0E 00 F7 67 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C0 [09:26:12]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:26:12]wFMCommunicate OK [09:26:12]SAM_PROTO_GetShiftState done [09:26:12]FM_GetShiftState done [09:26:12]opened in 1710288279 [09:26:12]opened+sec_in_day 1710374679 [09:26:12]quantity*price = 200007 [09:26:12]sum+1 = 200008 [09:26:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 38 13.03.2024 09:26 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95343 ФПД: 38796284856050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T092622&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95343&fm=38796284856050&tin=02508201610067®Number=0000000000090555&sum=200000 [09:26:13]StoreToDocumentArchive [09:26:13]shift 328 fd 95343 [09:26:13]save to /storage/0328/doc_00095343 [09:26:13]save last doc name /storage/0328/doc_00095343 to /storage/kkm_last_doc_name [09:26:13]save OK [09:26:13]Clear old archive folders... [09:26:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:26:13]tlvbuf is 019FCB10 [09:26:13]SAM_PROTO_ClearQueue [09:26:13]wFMCommunicate request_size=4 [09:26:13]MH_SAM_APDU [09:26:13]CAPDU: 80 09 00 00 [09:26:13]Write to MH i2c: E2 08 00 04 68 80 09 00 00 00 00 00 00 DE [09:26:13]Write i2c OK [09:26:13]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 04 68 00 90 00 E0 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]SAM_PROTO_ClearQueue done [09:26:14]KKMCreateOFDPacket [09:26:14]OFDProtocolAddRootSTLVToBuf [09:26:14]FM_MakeSignedData [09:26:14]FM_MakeSignedData [09:26:14]SAM_PROTO_SignData [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 01 02 [09:26:14]Write to MH i2c: E2 08 00 05 68 80 0D 01 02 00 00 00 00 E6 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 05 68 00 90 00 E1 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=255 [09:26:14]MH_SAM_APDU [09:26:14]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 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 3E 71 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 74 01 00 35 04 06 00 [09:26:14]Write to MH i2c: E2 02 01 06 68 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 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 3E 71 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 74 01 00 35 04 06 00 00 00 DE [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 06 68 00 90 00 E2 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=11 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 02 02 06 23 48 F6 C7 06 F2 [09:26:14]Write to MH i2c: E2 0E 00 07 68 80 0D 02 02 06 00 23 48 F6 C7 06 F2 00 00 15 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 03 00 07 68 00 90 00 E3 [09:26:14]RAPDU: 90 00 [09:26:14]wFMCommunicate OK [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 0D 03 02 [09:26:14]Write to MH i2c: E2 08 00 08 68 80 0D 03 02 00 00 00 00 EB [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0B 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 0B 00 08 68 00 A6 B6 48 51 89 C6 B8 BD 90 00 A5 [09:26:14]RAPDU: A6 B6 48 51 89 C6 B8 BD 90 00 [09:26:14]wFMCommunicate OK [09:26:14]SAM_PROTO_SignData done [09:26:14]FM_MakeSignedData done [09:26:14]CreateOFDProtocolMessage [09:26:14]wFMCommunicate request_size=4 [09:26:14]MH_SAM_APDU [09:26:14]CAPDU: 80 11 00 00 [09:26:14]Write to MH i2c: E2 08 00 09 68 80 11 00 00 00 00 00 00 EB [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:14]Read from MH i2c: E2 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: E2 17 00 09 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3B [09:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:26:14]wFMCommunicate OK [09:26:14]CreateOFDProtocolMessage done [09:26:14]OFDSenderStorePacket 95343 [09:26:14]StoreOFDPacket docnum=95343 [09:26:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 89 8B 08 01 66 51 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 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 3E 71 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 74 01 00 35 04 06 00 23 48 F6 C7 06 F2 A6 B6 48 51 89 C6 B8 BD [09:26:14]CheckFolder [09:26:14]dirname=/storage/ofd_packets [09:26:14]CheckFolder done [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00095343 [09:26:14]NVStorageSaveData ofd_packets/00095343 [09:26:14]File name is /storage/ofd_packets/00095343 [09:26:14]Write 302 bytes [09:26:14]NVStorageSaveData done [09:26:14]OFDSenderStorePacket done [09:26:14]KKMCreateOFDPacket done [09:26:14]NVStorageSaveData kkm_last_timestamp [09:26:14]File name is /storage/kkm_last_timestamp [09:26:14]Write 4 bytes [09:26:14]NVStorageSaveData done [09:26:14]ExternCall_PrintAddStr [09:26:14]wPrintStart [09:26:14]Write to MH i2c: 01 00 00 0A 68 72 [09:26:14]Write i2c OK [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 [09:26:14]MH_I2C_Read... [09:26:14]Read from MH i2c: 01 07 00 0A 68 00 80 00 00 00 FF 0F 07 [09:26:14]RasterBufferAndPrint [09:26:14]line Счет N : (1)196326 [09:26:14]line ИНН: 02508201610067 [09:26:14]line Контрольно-Кассовый Чек [09:26:14]line ПРОДАЖА [09:26:14]line ТРК (МРК, ГНК) : 33 [09:26:14]line Товар: 2710124130 [09:26:14]line SUPER 92-К-5 [09:26:14]line 31.300 * 63.90 [09:26:14]line = 2000.07 [09:26:14]line НДС 12% НСП 1% [09:26:14]line > о реализуемом товаре [09:26:14]line ОКРУГЛЕНИЕ: -0.07 [09:26:14]line ИТОГО: 2000.00 [09:26:14]line Внесено: 2000.00 [09:26:14]line СДАЧА: 0.00 [09:26:14]line НСП 1% : 17.70 [09:26:14]line НДС 12% : 212.40 [09:26:14]line Наличными: 2000.00 [09:26:14]line Безнал.: 0.00 [09:26:14]line Место: АЗС № 6 "Партнер Нефть" [09:26:14]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:26:14]line СНО: Общий режим [09:26:14]line Чек 38 13.03.2024 09:26 [09:26:14]line Смена: 328 ФФД: 1.0 [09:26:14]line ЗНМ: 0300000009 [09:26:14]line РНМ: 0000000000090555 [09:26:14]line Версия ККМ: 001 [09:26:14]line ФМ: 0000000000874811 [09:26:14]line ФД: 95343 [09:26:14]line ФПД: 38796284856050 [09:26:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T092622&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95343&fm=38796284856050&tin=02508201610067®Number=0000000000090555&sum=200000 [09:26:14]OFD Sender: Processing packet 95343 [packets to send 30, broken 29] [09:26:14]ProducePacketName [09:26:14]name=ofd_packets/00095343 [09:26:14]OFD Sender: To server: pG, [09:26:14]CommunicateWithHost lk.salyk.kg:30040 [09:26:14]ConnectInit lk.salyk.kg [09:26:14]written 0, free lines is 4095 [09:26:14]Connected sock=9 [09:26:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 89 8B 08 01 66 51 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 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 3E 71 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 74 01 00 35 04 06 00 23 48 F6 C7 06 F2 A6 B6 48 51 89 C6 B8 BD [09:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 91 70 47 00 12 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 6F 74 01 00 F4 03 04 00 92 1C F1 65 B6 04 01 00 00 20 D5 32 A4 BC 89 FB 2E [09:26:15]CommunicateWithHost err = 0 [09:26:15]CheckOFDResponse [09:26:15]1017 (14) - 77093643461234 [09:26:15]1041 (16) - 0000000000874811 [09:26:15]1040 (4) - 95343 [09:26:15]1012 (4) - 13.03.2024 03:25 [09:26:15]1206 (1) - 0 [09:26:15]OFD Sender: Remove packet 95343 [09:26:15]ProducePacketName [09:26:15]name=ofd_packets/00095343 [09:26:15]NVStorageDeleteData [09:26:15]Write to MH i2c: 01 00 00 35 68 9D [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: 01 07 00 35 68 00 80 00 00 00 5B 0D 8C [09:26:15]RasterBufferAndPrint [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]line [09:26:15]written 0, free lines is 3424 [09:26:15]process_action close_receipt done [09:26:15]requested_data is exist [09:26:15]produce_requested_data [09:26:15]requested_item fm.sn is exist - process it [09:26:15]wFMCommunicate request_size=4 [09:26:15]MH_SAM_APDU [09:26:15]CAPDU: 80 11 00 00 [09:26:15]Write to MH i2c: E2 08 00 3C 68 80 11 00 00 00 00 00 00 1E [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 17 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 17 00 3C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6E [09:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:26:15]wFMCommunicate OK [09:26:15]requested_item fd.num is exist - process it [09:26:15]SAM_PROTO_GetFieldsCounters [09:26:15]wFMCommunicate request_size=4 [09:26:15]MH_SAM_APDU [09:26:15]CAPDU: 80 13 00 00 [09:26:15]Write to MH i2c: E2 08 00 3D 68 80 13 00 00 00 00 00 00 21 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 62 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 62 00 3D 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6F 74 01 00 0E 04 04 00 48 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 DD [09:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 6F 74 01 00 0E 04 04 00 48 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 [09:26:15]wFMCommunicate OK [09:26:15]SAM_PROTO_GetFieldsCounters done [09:26:15]requested_item shift.num is exist - process it [09:26:15]requested_item shift.opened is exist - process it [09:26:15]req_shift_opened [09:26:15]FM_GetShiftState [09:26:15]SAM_PROTO_GetShiftState [09:26:15]wFMCommunicate request_size=4 [09:26:15]MH_SAM_APDU [09:26:15]CAPDU: 80 13 01 00 [09:26:15]Write to MH i2c: E2 08 00 3E 68 80 13 01 00 00 00 00 00 23 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 0E 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 0E 00 3E 68 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 08 [09:26:15]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:26:15]wFMCommunicate OK [09:26:15]SAM_PROTO_GetShiftState done [09:26:15]FM_GetShiftState done [09:26:15]req_shift_opened done [09:26:15]requested_item shift.open_date is exist - process it [09:26:15]req_shift_open_date [09:26:15]req_shift_open_date done [09:26:15]produce_requested_data done [09:26:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95343,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:26:15]process_action_free close_receipt [09:26:15]json_value_free [09:26:15]json_value_free done [09:26:15]process_json_proto returns [09:26:15]Send response to host [09:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95343,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:26:15]free response buf [09:26:15]execute_script done [09:26:15]execute_script returns [09:26:15]free content buf [09:26:15]Sock 10.Close socket [09:26:15]Sock 10.Thread stoped [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:26:57]recv_with_timeout no data received [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:04]accept exits with 8 [09:28:04]New connection [09:28:04]New thread 3066813796 created [09:28:04]Thread 3066957156 joined [09:28:04]Waiting for new connection... [09:28:04] Sock 8.Parse request [09:28:04]Sock 8.Check first char [09:28:04]Sock 8.First char is OK [09:28:04]request: POST /json_proto HTTP/1.0 [09:28:04]Method: POST [09:28:04]URL: /json_proto [09:28:04]Method is POST - this is cgi request [09:28:04]url: /json_proto [09:28:04]query_string will be loaded in cgi processing [09:28:04]execute_cgi json_proto POST (null) [09:28:04]execute_cgi path=json_proto method=POST [09:28:04]POST find Content-Length [09:28:04]Host: 172.17.62.67:8080 [09:28:04]Content-Length: 677 [09:28:04]Content-Type: application/json [09:28:04] [09:28:04]POST finish read [09:28:04]Found Content-Length = 677 [09:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196327", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:04]execute_script... [09:28:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196327", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:04]POST & json_proto [09:28:04]process_json_proto [09:28:04]json parsed OK: [09:28:04]protocol is kg_v1.0 [09:28:04]action value=close_receipt [09:28:04]process_action close_receipt [09:28:04]cmd_close_receipt [09:28:04]MH_GetDate [09:28:04]Write to MH i2c: F0 00 00 3F 68 96 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 05 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: F0 05 00 3F 68 00 AE 71 F1 65 10 [09:28:04]GetLastDocTimeStamp 1710321982 [09:28:04]current date 1710322094 [09:28:04]FM_GetShiftState [09:28:04]SAM_PROTO_GetShiftState [09:28:04]wFMCommunicate request_size=4 [09:28:04]MH_SAM_APDU [09:28:04]CAPDU: 80 13 01 00 [09:28:04]Write to MH i2c: E2 08 00 40 68 80 13 01 00 00 00 00 00 25 [09:28:04]Write i2c OK [09:28:04]MH_I2C_Read... [09:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:04]Read from MH i2c: E2 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0E 00 [09:28:04]MH_I2C_Read... [09:28:04]Read from MH i2c: E2 0E 00 40 68 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0A [09:28:04]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:28:04]wFMCommunicate OK [09:28:04]SAM_PROTO_GetShiftState done [09:28:04]FM_GetShiftState done [09:28:04]opened in 1710288279 [09:28:04]opened+sec_in_day 1710374679 [09:28:04]quantity*price = 50005 [09:28:04]sum+1 = 50007 [09:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 39 13.03.2024 09:28 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95344 ФПД: 244751355086273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T092814&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95344&fm=244751355086273&tin=02508201610067®Number=0000000000090555&sum=50000 [09:28:05]StoreToDocumentArchive [09:28:05]shift 328 fd 95344 [09:28:05]save to /storage/0328/doc_00095344 [09:28:05]save last doc name /storage/0328/doc_00095344 to /storage/kkm_last_doc_name [09:28:05]save OK [09:28:05]Clear old archive folders... [09:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:05]tlvbuf is 01C51CA0 [09:28:05]SAM_PROTO_ClearQueue [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 09 00 00 [09:28:05]Write to MH i2c: E2 08 00 4D 68 80 09 00 00 00 00 00 00 27 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 4D 68 00 90 00 29 [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]SAM_PROTO_ClearQueue done [09:28:05]KKMCreateOFDPacket [09:28:05]OFDProtocolAddRootSTLVToBuf [09:28:05]FM_MakeSignedData [09:28:05]FM_MakeSignedData [09:28:05]SAM_PROTO_SignData [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 0D 01 02 [09:28:05]Write to MH i2c: E2 08 00 4E 68 80 0D 01 02 00 00 00 00 2F [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 4E 68 00 90 00 2A [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]wFMCommunicate request_size=255 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 27 00 00 00 F4 03 04 00 AE 71 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 74 01 00 35 04 06 00 DE [09:28:05]Write to MH i2c: E2 02 01 4F 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 27 00 00 00 F4 03 04 00 AE 71 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 74 01 00 35 04 06 00 DE 00 00 80 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]OFD Sender: No OFD packet to send [09:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 4F 68 00 90 00 2B [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]wFMCommunicate request_size=10 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 0D 02 02 05 99 9D 94 05 C1 [09:28:05]Write to MH i2c: E2 0D 00 50 68 80 0D 02 02 05 00 99 9D 94 05 C1 00 00 CC [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 03 00 50 68 00 90 00 2C [09:28:05]RAPDU: 90 00 [09:28:05]wFMCommunicate OK [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 0D 03 02 [09:28:05]Write to MH i2c: E2 08 00 51 68 80 0D 03 02 00 00 00 00 34 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0B 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 0B 00 51 68 00 C6 4B 2D C1 50 EE 10 24 90 00 A6 [09:28:05]RAPDU: C6 4B 2D C1 50 EE 10 24 90 00 [09:28:05]wFMCommunicate OK [09:28:05]SAM_PROTO_SignData done [09:28:05]FM_MakeSignedData done [09:28:05]CreateOFDProtocolMessage [09:28:05]wFMCommunicate request_size=4 [09:28:05]MH_SAM_APDU [09:28:05]CAPDU: 80 11 00 00 [09:28:05]Write to MH i2c: E2 08 00 52 68 80 11 00 00 00 00 00 00 34 [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:05]Read from MH i2c: E2 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: E2 17 00 52 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 84 [09:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:28:05]wFMCommunicate OK [09:28:05]CreateOFDProtocolMessage done [09:28:05]OFDSenderStorePacket 95344 [09:28:05]StoreOFDPacket docnum=95344 [09:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4D BB 07 01 1A 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 27 00 00 00 F4 03 04 00 AE 71 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 74 01 00 35 04 06 00 DE 99 9D 94 05 C1 C6 4B 2D C1 50 EE 10 24 [09:28:05]CheckFolder [09:28:05]dirname=/storage/ofd_packets [09:28:05]CheckFolder done [09:28:05]ProducePacketName [09:28:05]name=ofd_packets/00095344 [09:28:05]NVStorageSaveData ofd_packets/00095344 [09:28:05]File name is /storage/ofd_packets/00095344 [09:28:05]Write 301 bytes [09:28:05]NVStorageSaveData done [09:28:05]OFDSenderStorePacket done [09:28:05]KKMCreateOFDPacket done [09:28:05]NVStorageSaveData kkm_last_timestamp [09:28:05]File name is /storage/kkm_last_timestamp [09:28:05]Write 4 bytes [09:28:05]NVStorageSaveData done [09:28:05]ExternCall_PrintAddStr [09:28:05]wPrintStart [09:28:05]Write to MH i2c: 01 00 00 53 68 BB [09:28:05]Write i2c OK [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 [09:28:05]MH_I2C_Read... [09:28:05]Read from MH i2c: 01 07 00 53 68 00 80 00 00 00 FF 0F 50 [09:28:05]RasterBufferAndPrint [09:28:05]line Счет N : (1)196327 [09:28:05]line ИНН: 02508201610067 [09:28:05]line Контрольно-Кассовый Чек [09:28:05]line ПРОДАЖА [09:28:05]line ТРК (МРК, ГНК) : 12 [09:28:05]line Товар: 2710124130 [09:28:05]line Аи-92-К-5 [09:28:05]line 7.950 * 62.90 [09:28:05]line = 500.06 [09:28:05]line НДС 12% НСП 1% [09:28:05]line > о реализуемом товаре [09:28:05]line ОКРУГЛЕНИЕ: -0.06 [09:28:05]line ИТОГО: 500.00 [09:28:05]line Внесено: 500.00 [09:28:05]line СДАЧА: 0.00 [09:28:05]line НСП 1% : 4.42 [09:28:05]line НДС 12% : 53.10 [09:28:05]line Наличными: 500.00 [09:28:05]line Безнал.: 0.00 [09:28:05]line Место: АЗС № 6 "Партнер Нефть" [09:28:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:28:05]line СНО: Общий режим [09:28:05]line Чек 39 13.03.2024 09:28 [09:28:05]line Смена: 328 ФФД: 1.0 [09:28:05]line ЗНМ: 0300000009 [09:28:05]line РНМ: 0000000000090555 [09:28:05]line Версия ККМ: 001 [09:28:06]line ФМ: 0000000000874811 [09:28:06]line ФД: 95344 [09:28:06]line ФПД: 244751355086273 [09:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T092814&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95344&fm=244751355086273&tin=02508201610067®Number=0000000000090555&sum=50000 [09:28:06]OFD Sender: Processing packet 95344 [packets to send 30, broken 29] [09:28:06]ProducePacketName [09:28:06]name=ofd_packets/00095344 [09:28:06]OFD Sender: To server: pG, [09:28:06]CommunicateWithHost lk.salyk.kg:30040 [09:28:06]ConnectInit lk.salyk.kg [09:28:06]written 0, free lines is 4095 [09:28:06]Connected sock=10 [09:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4D BB 07 01 1A 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 27 00 00 00 F4 03 04 00 AE 71 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 74 01 00 35 04 06 00 DE 99 9D 94 05 C1 C6 4B 2D C1 50 EE 10 24 [09:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 01 38 47 00 4E 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 70 74 01 00 F4 03 04 00 01 1D F1 65 B6 04 01 00 00 A7 93 6D FE 43 7B CF 0B [09:28:06]CommunicateWithHost err = 0 [09:28:06]CheckOFDResponse [09:28:06]1017 (14) - 77093643461234 [09:28:06]1041 (16) - 0000000000874811 [09:28:06]1040 (4) - 95344 [09:28:06]1012 (4) - 13.03.2024 03:26 [09:28:06]1206 (1) - 0 [09:28:06]OFD Sender: Remove packet 95344 [09:28:06]ProducePacketName [09:28:06]name=ofd_packets/00095344 [09:28:06]NVStorageDeleteData [09:28:06]Write to MH i2c: 01 00 00 7E 68 E6 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 07 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: 01 07 00 7E 68 00 80 00 00 00 4B 0D C5 [09:28:06]RasterBufferAndPrint [09:28:06]line [09:28:06]line [09:28:06]line [09:28:06]line [09:28:06]line [09:28:06]written 0, free lines is 3407 [09:28:06]process_action close_receipt done [09:28:06]requested_data is exist [09:28:06]produce_requested_data [09:28:06]requested_item fm.sn is exist - process it [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 11 00 00 [09:28:06]Write to MH i2c: E2 08 00 85 68 80 11 00 00 00 00 00 00 67 [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:06]Read from MH i2c: E2 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 17 00 [09:28:06]MH_I2C_Read... [09:28:06]Read from MH i2c: E2 17 00 85 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B7 [09:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:28:06]wFMCommunicate OK [09:28:06]requested_item fd.num is exist - process it [09:28:06]SAM_PROTO_GetFieldsCounters [09:28:06]wFMCommunicate request_size=4 [09:28:06]MH_SAM_APDU [09:28:06]CAPDU: 80 13 00 00 [09:28:06]Write to MH i2c: E2 08 00 86 68 80 13 00 00 00 00 00 00 6A [09:28:06]Write i2c OK [09:28:06]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 62 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 62 00 86 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 70 74 01 00 0E 04 04 00 48 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 2A [09:28:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 70 74 01 00 0E 04 04 00 48 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 [09:28:07]wFMCommunicate OK [09:28:07]SAM_PROTO_GetFieldsCounters done [09:28:07]requested_item shift.num is exist - process it [09:28:07]requested_item shift.opened is exist - process it [09:28:07]req_shift_opened [09:28:07]FM_GetShiftState [09:28:07]SAM_PROTO_GetShiftState [09:28:07]wFMCommunicate request_size=4 [09:28:07]MH_SAM_APDU [09:28:07]CAPDU: 80 13 01 00 [09:28:07]Write to MH i2c: E2 08 00 87 68 80 13 01 00 00 00 00 00 6C [09:28:07]Write i2c OK [09:28:07]MH_I2C_Read... [09:28:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:07]Read from MH i2c: E2 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 0E 00 [09:28:07]MH_I2C_Read... [09:28:07]Read from MH i2c: E2 0E 00 87 68 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 51 [09:28:07]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:28:07]wFMCommunicate OK [09:28:07]SAM_PROTO_GetShiftState done [09:28:07]FM_GetShiftState done [09:28:07]req_shift_opened done [09:28:07]requested_item shift.open_date is exist - process it [09:28:07]req_shift_open_date [09:28:07]req_shift_open_date done [09:28:07]produce_requested_data done [09:28:07]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95344,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:28:07]process_action_free close_receipt [09:28:07]json_value_free [09:28:07]json_value_free done [09:28:07]process_json_proto returns [09:28:07]Send response to host [09:28:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95344,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:28:07]free response buf [09:28:07]execute_script done [09:28:07]execute_script returns [09:28:07]free content buf [09:28:07]Sock 8.Close socket [09:28:07]Sock 8.Thread stoped [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:46]accept exits with 9 [09:29:46]New connection [09:29:46]New thread 3066957156 created [09:29:46]Thread 3066813796 joined [09:29:46]Waiting for new connection... [09:29:46] Sock 9.Parse request [09:29:46]Sock 9.Check first char [09:29:46]Sock 9.First char is OK [09:29:46]request: POST /json_proto HTTP/1.0 [09:29:46]Method: POST [09:29:46]URL: /json_proto [09:29:46]Method is POST - this is cgi request [09:29:46]url: /json_proto [09:29:46]query_string will be loaded in cgi processing [09:29:46]execute_cgi json_proto POST (null) [09:29:46]execute_cgi path=json_proto method=POST [09:29:46]POST find Content-Length [09:29:46]Host: 172.17.62.67:8080 [09:29:46]Content-Length: 679 [09:29:46]Content-Type: application/json [09:29:46] [09:29:46]POST finish read [09:29:46]Found Content-Length = 679 [09:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196329", "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" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:46]execute_script... [09:29:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196329", "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" : 70.90, "quantity" : 14.110, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:46]POST & json_proto [09:29:46]process_json_proto [09:29:46]json parsed OK: [09:29:46]protocol is kg_v1.0 [09:29:46]action value=close_receipt [09:29:46]process_action close_receipt [09:29:46]cmd_close_receipt [09:29:46]MH_GetDate [09:29:46]Write to MH i2c: F0 00 00 88 68 DF [09:29:46]Write i2c OK [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: F0 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: F0 05 00 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: F0 05 00 88 68 00 14 72 F1 65 C0 [09:29:46]GetLastDocTimeStamp 1710322094 [09:29:46]current date 1710322196 [09:29:46]FM_GetShiftState [09:29:46]SAM_PROTO_GetShiftState [09:29:46]wFMCommunicate request_size=4 [09:29:46]MH_SAM_APDU [09:29:46]CAPDU: 80 13 01 00 [09:29:46]Write to MH i2c: E2 08 00 89 68 80 13 01 00 00 00 00 00 6E [09:29:46]Write i2c OK [09:29:46]MH_I2C_Read... [09:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:46]Read from MH i2c: E2 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: E2 0E 00 [09:29:46]MH_I2C_Read... [09:29:46]Read from MH i2c: E2 0E 00 89 68 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 53 [09:29:46]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:29:46]wFMCommunicate OK [09:29:46]SAM_PROTO_GetShiftState done [09:29:46]FM_GetShiftState done [09:29:46]opened in 1710288279 [09:29:46]opened+sec_in_day 1710374679 [09:29:46]quantity*price = 100039 [09:29:46]sum+1 = 100041 [09:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 40 13.03.2024 09:29 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95345 ФПД: 240295094683430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T092956&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95345&fm=240295094683430&tin=02508201610067®Number=0000000000090555&sum=100000 [09:29:47]StoreToDocumentArchive [09:29:47]shift 328 fd 95345 [09:29:47]save to /storage/0328/doc_00095345 [09:29:47]save last doc name /storage/0328/doc_00095345 to /storage/kkm_last_doc_name [09:29:47]save OK [09:29:47]Clear old archive folders... [09:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:47]tlvbuf is 01B3CF10 [09:29:47]SAM_PROTO_ClearQueue [09:29:47]wFMCommunicate request_size=4 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 09 00 00 [09:29:47]Write to MH i2c: E2 08 00 96 68 80 09 00 00 00 00 00 00 70 [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:47]Read from MH i2c: E2 03 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 03 00 96 68 00 90 00 72 [09:29:47]RAPDU: 90 00 [09:29:47]wFMCommunicate OK [09:29:47]SAM_PROTO_ClearQueue done [09:29:47]KKMCreateOFDPacket [09:29:47]OFDProtocolAddRootSTLVToBuf [09:29:47]FM_MakeSignedData [09:29:47]FM_MakeSignedData [09:29:47]SAM_PROTO_SignData [09:29:47]wFMCommunicate request_size=4 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 0D 01 02 [09:29:47]Write to MH i2c: E2 08 00 97 68 80 0D 01 02 00 00 00 00 78 [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 03 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 03 00 97 68 00 90 00 73 [09:29:47]RAPDU: 90 00 [09:29:47]wFMCommunicate OK [09:29:47]wFMCommunicate request_size=255 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 14 72 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 74 01 00 35 04 06 00 DA 8C 0F C2 [09:29:47]Write to MH i2c: E2 02 01 98 68 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 14 72 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 74 01 00 35 04 06 00 DA 8C 0F C2 00 00 1B [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 03 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 03 00 98 68 00 90 00 74 [09:29:47]RAPDU: 90 00 [09:29:47]wFMCommunicate OK [09:29:47]wFMCommunicate request_size=7 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 0D 02 02 02 87 26 [09:29:47]Write to MH i2c: E2 0A 00 99 68 80 0D 02 02 02 00 87 26 00 00 2C [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:47]Read from MH i2c: E2 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 03 00 [09:29:47]MH_I2C_Read... [09:29:47]Read from MH i2c: E2 03 00 99 68 00 90 00 75 [09:29:47]RAPDU: 90 00 [09:29:47]wFMCommunicate OK [09:29:47]wFMCommunicate request_size=4 [09:29:47]MH_SAM_APDU [09:29:47]CAPDU: 80 0D 03 02 [09:29:47]Write to MH i2c: E2 08 00 9A 68 80 0D 03 02 00 00 00 00 7D [09:29:47]Write i2c OK [09:29:47]MH_I2C_Read... [09:29:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:48]Read from MH i2c: E2 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: E2 0B 00 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: E2 0B 00 9A 68 00 BC 2F 37 D4 D3 BD 5C 8E 90 00 EE [09:29:48]RAPDU: BC 2F 37 D4 D3 BD 5C 8E 90 00 [09:29:48]wFMCommunicate OK [09:29:48]SAM_PROTO_SignData done [09:29:48]FM_MakeSignedData done [09:29:48]CreateOFDProtocolMessage [09:29:48]wFMCommunicate request_size=4 [09:29:48]MH_SAM_APDU [09:29:48]CAPDU: 80 11 00 00 [09:29:48]Write to MH i2c: E2 08 00 9B 68 80 11 00 00 00 00 00 00 7D [09:29:48]Write i2c OK [09:29:48]MH_I2C_Read... [09:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:48]Read from MH i2c: E2 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: E2 17 00 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: E2 17 00 9B 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CD [09:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:29:48]wFMCommunicate OK [09:29:48]CreateOFDProtocolMessage done [09:29:48]OFDSenderStorePacket 95345 [09:29:48]StoreOFDPacket docnum=95345 [09:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 EA 0B 04 01 DD 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 14 72 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 74 01 00 35 04 06 00 DA 8C 0F C2 87 26 BC 2F 37 D4 D3 BD 5C 8E [09:29:48]CheckFolder [09:29:48]dirname=/storage/ofd_packets [09:29:48]CheckFolder done [09:29:48]ProducePacketName [09:29:48]name=ofd_packets/00095345 [09:29:48]NVStorageSaveData ofd_packets/00095345 [09:29:48]File name is /storage/ofd_packets/00095345 [09:29:48]Write 298 bytes [09:29:48]NVStorageSaveData done [09:29:48]OFDSenderStorePacket done [09:29:48]KKMCreateOFDPacket done [09:29:48]NVStorageSaveData kkm_last_timestamp [09:29:48]File name is /storage/kkm_last_timestamp [09:29:48]Write 4 bytes [09:29:48]NVStorageSaveData done [09:29:48]ExternCall_PrintAddStr [09:29:48]wPrintStart [09:29:48]Write to MH i2c: 01 00 00 9C 68 04 [09:29:48]Write i2c OK [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: 01 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: 01 07 00 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: 01 07 00 9C 68 00 80 00 00 00 FF 0F 99 [09:29:48]RasterBufferAndPrint [09:29:48]line Счет N : (1)196329 [09:29:48]line ИНН: 02508201610067 [09:29:48]line Контрольно-Кассовый Чек [09:29:48]line ПРОДАЖА [09:29:48]line ТРК (МРК, ГНК) : 51 [09:29:48]line Товар: 2710194210 [09:29:48]line ДТ-К-5 [09:29:48]line 14.110 * 70.90 [09:29:48]line = 1000.40 [09:29:48]line НДС 12% НСП 1% [09:29:48]line > о реализуемом товаре [09:29:48]line ОКРУГЛЕНИЕ: -0.40 [09:29:48]line ИТОГО: 1000.00 [09:29:48]line Внесено: 1000.00 [09:29:48]line СДАЧА: 0.00 [09:29:48]line НСП 1% : 8.85 [09:29:48]line НДС 12% : 106.24 [09:29:48]line Наличными: 1000.00 [09:29:48]line Безнал.: 0.00 [09:29:48]line Место: АЗС № 6 "Партнер Нефть" [09:29:48]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:29:48]line СНО: Общий режим [09:29:48]line Чек 40 13.03.2024 09:29 [09:29:48]line Смена: 328 ФФД: 1.0 [09:29:48]line ЗНМ: 0300000009 [09:29:48]line РНМ: 0000000000090555 [09:29:48]line Версия ККМ: 001 [09:29:48]line ФМ: 0000000000874811 [09:29:48]line ФД: 95345 [09:29:48]line ФПД: 240295094683430 [09:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T092956&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95345&fm=240295094683430&tin=02508201610067®Number=0000000000090555&sum=100000 [09:29:48]OFD Sender: Processing packet 95345 [packets to send 30, broken 29] [09:29:48]ProducePacketName [09:29:48]name=ofd_packets/00095345 [09:29:48]OFD Sender: To server: pG, [09:29:48]CommunicateWithHost lk.salyk.kg:30040 [09:29:48]ConnectInit lk.salyk.kg [09:29:48]written 0, free lines is 4095 [09:29:48]Connected sock=10 [09:29:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 EA 0B 04 01 DD 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 1E 37 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 14 72 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 74 01 00 35 04 06 00 DA 8C 0F C2 87 26 BC 2F 37 D4 D3 BD 5C 8E [09:29:48]Write to MH i2c: 01 00 00 C7 68 2F [09:29:48]Write i2c OK [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: 01 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: 01 07 00 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: 01 07 00 C7 68 00 80 00 00 00 46 0D 09 [09:29:48]RasterBufferAndPrint [09:29:48]line [09:29:48]line [09:29:48]line [09:29:48]line [09:29:48]line [09:29:48]written 0, free lines is 3404 [09:29:48]process_action close_receipt done [09:29:48]requested_data is exist [09:29:48]produce_requested_data [09:29:48]requested_item fm.sn is exist - process it [09:29:48]wFMCommunicate request_size=4 [09:29:48]MH_SAM_APDU [09:29:48]CAPDU: 80 11 00 00 [09:29:48]Write to MH i2c: E2 08 00 CE 68 80 11 00 00 00 00 00 00 B0 [09:29:48]Write i2c OK [09:29:48]MH_I2C_Read... [09:29:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 81 2E 47 00 AB 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 71 74 01 00 F4 03 04 00 68 1D F1 65 B6 04 01 00 00 A6 06 AE F0 9A 8A 97 44 [09:29:48]CommunicateWithHost err = 0 [09:29:48]CheckOFDResponse [09:29:48]1017 (14) - 77093643461234 [09:29:48]1041 (16) - 0000000000874811 [09:29:48]1040 (4) - 95345 [09:29:48]1012 (4) - 13.03.2024 03:28 [09:29:48]1206 (1) - 0 [09:29:48]OFD Sender: Remove packet 95345 [09:29:48]ProducePacketName [09:29:48]name=ofd_packets/00095345 [09:29:48]NVStorageDeleteData [09:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:48]Read from MH i2c: E2 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: E2 17 00 [09:29:48]MH_I2C_Read... [09:29:48]Read from MH i2c: E2 17 00 CE 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [09:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:29:48]wFMCommunicate OK [09:29:48]requested_item fd.num is exist - process it [09:29:48]SAM_PROTO_GetFieldsCounters [09:29:48]wFMCommunicate request_size=4 [09:29:48]MH_SAM_APDU [09:29:48]CAPDU: 80 13 00 00 [09:29:48]Write to MH i2c: E2 08 00 CF 68 80 13 00 00 00 00 00 00 B3 [09:29:48]Write i2c OK [09:29:48]MH_I2C_Read... [09:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:49]Read from MH i2c: E2 [09:29:49]MH_I2C_Read... [09:29:49]Read from MH i2c: E2 62 00 [09:29:49]MH_I2C_Read... [09:29:49]Read from MH i2c: E2 62 00 CF 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 71 74 01 00 0E 04 04 00 48 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 77 [09:29:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 71 74 01 00 0E 04 04 00 48 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 [09:29:49]wFMCommunicate OK [09:29:49]SAM_PROTO_GetFieldsCounters done [09:29:49]requested_item shift.num is exist - process it [09:29:49]requested_item shift.opened is exist - process it [09:29:49]req_shift_opened [09:29:49]FM_GetShiftState [09:29:49]SAM_PROTO_GetShiftState [09:29:49]wFMCommunicate request_size=4 [09:29:49]MH_SAM_APDU [09:29:49]CAPDU: 80 13 01 00 [09:29:49]Write to MH i2c: E2 08 00 D0 68 80 13 01 00 00 00 00 00 B5 [09:29:49]Write i2c OK [09:29:49]MH_I2C_Read... [09:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:49]Read from MH i2c: E2 [09:29:49]MH_I2C_Read... [09:29:49]Read from MH i2c: E2 0E 00 [09:29:49]MH_I2C_Read... [09:29:49]Read from MH i2c: E2 0E 00 D0 68 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 9A [09:29:49]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:29:49]wFMCommunicate OK [09:29:49]SAM_PROTO_GetShiftState done [09:29:49]FM_GetShiftState done [09:29:49]req_shift_opened done [09:29:49]requested_item shift.open_date is exist - process it [09:29:49]req_shift_open_date [09:29:49]req_shift_open_date done [09:29:49]produce_requested_data done [09:29:49]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95345,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:29:49]process_action_free close_receipt [09:29:49]json_value_free [09:29:49]json_value_free done [09:29:49]process_json_proto returns [09:29:49]Send response to host [09:29:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95345,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:29:49]free response buf [09:29:49]execute_script done [09:29:49]execute_script returns [09:29:49]free content buf [09:29:49]Sock 9.Close socket [09:29:49]Sock 9.Thread stoped [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:19]accept exits with 8 [09:30:19]New connection [09:30:19]New thread 3066813796 created [09:30:19]Thread 3066957156 joined [09:30:19]Waiting for new connection... [09:30:19] Sock 8.Parse request [09:30:19]Sock 8.Check first char [09:30:19]Sock 8.First char is OK [09:30:19]request: POST /json_proto HTTP/1.0 [09:30:19]Method: POST [09:30:19]URL: /json_proto [09:30:19]Method is POST - this is cgi request [09:30:19]url: /json_proto [09:30:19]query_string will be loaded in cgi processing [09:30:19]execute_cgi json_proto POST (null) [09:30:19]execute_cgi path=json_proto method=POST [09:30:19]POST find Content-Length [09:30:19]Host: 172.17.62.67:8080 [09:30:19]Content-Length: 1191 [09:30:19]Content-Type: application/json [09:30:19] [09:30:19]POST finish read [09:30:19]Found Content-Length = 1191 [09:30:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196328\u000A13.03.2024 09:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3699942;43\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:19]execute_script... [09:30:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196328\u000A13.03.2024 09:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3699942;43\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:19]POST & json_proto [09:30:19]process_json_proto [09:30:19]json parsed OK: [09:30:19]protocol is kg_v1.0 [09:30:19]action value=print_text [09:30:19]process_action print_text [09:30:19]cmd_print_text [09:30:19]ExternCall_PrintAddStr [09:30:19]wPrintStart [09:30:19]Write to MH i2c: 01 00 00 D1 68 39 [09:30:19]Write i2c OK [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: 01 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: 01 07 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: 01 07 00 D1 68 00 80 00 00 00 FF 0F CE [09:30:19]RasterBufferAndPrint [09:30:19]line *****ТОВАРНЫЙ ЧЕК***** [09:30:19]line АЗС 6 [09:30:19]line Партнер нефть [09:30:19]line 02508201610067 [09:30:19]line Кассир : Сабырбек у. М. [09:30:19]line Счет N : (1)196328 [09:30:19]line 13.03.2024 09:24 [09:30:19]line ПРОДАЖА [09:30:19]line ТРК (МРК, ГНК): 61 [09:30:19]line Вид ГСМ : 2710194210 [09:30:19]line ДТ-К-5 [09:30:19]line 20.000 x 70.90 [09:30:19]line ИТОГ: 1418.00 [09:30:19]line Тип оплаты: Талоны: Партнер нефть [09:30:19]line 3699942;43 [09:30:19]line ______________________ [09:30:19]line (подпись) [09:30:19]written 0, free lines is 4095 [09:30:20]Write to MH i2c: 01 00 00 E5 68 4D [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: 01 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: 01 07 00 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: 01 07 00 E5 68 00 80 00 00 00 6B 0E 4D [09:30:20]RasterBufferAndPrint [09:30:20]line [09:30:20]line [09:30:20]line [09:30:20]line [09:30:20]line [09:30:20]written 0, free lines is 3695 [09:30:20]process_action print_text done [09:30:20]requested_data is exist [09:30:20]produce_requested_data [09:30:20]requested_item fm.sn is exist - process it [09:30:20]wFMCommunicate request_size=4 [09:30:20]MH_SAM_APDU [09:30:20]CAPDU: 80 11 00 00 [09:30:20]Write to MH i2c: E2 08 00 EC 68 80 11 00 00 00 00 00 00 CE [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:20]Read from MH i2c: E2 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 17 00 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 17 00 EC 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1E [09:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:30:20]wFMCommunicate OK [09:30:20]requested_item fd.num is exist - process it [09:30:20]SAM_PROTO_GetFieldsCounters [09:30:20]wFMCommunicate request_size=4 [09:30:20]MH_SAM_APDU [09:30:20]CAPDU: 80 13 00 00 [09:30:20]Write to MH i2c: E2 08 00 ED 68 80 13 00 00 00 00 00 00 D1 [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:20]Read from MH i2c: E2 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 62 00 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 62 00 ED 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 71 74 01 00 0E 04 04 00 48 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 95 [09:30:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 71 74 01 00 0E 04 04 00 48 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 [09:30:20]wFMCommunicate OK [09:30:20]SAM_PROTO_GetFieldsCounters done [09:30:20]requested_item shift.num is exist - process it [09:30:20]requested_item shift.opened is exist - process it [09:30:20]req_shift_opened [09:30:20]FM_GetShiftState [09:30:20]SAM_PROTO_GetShiftState [09:30:20]wFMCommunicate request_size=4 [09:30:20]MH_SAM_APDU [09:30:20]CAPDU: 80 13 01 00 [09:30:20]Write to MH i2c: E2 08 00 EE 68 80 13 01 00 00 00 00 00 D3 [09:30:20]Write i2c OK [09:30:20]MH_I2C_Read... [09:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:20]Read from MH i2c: E2 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 0E 00 [09:30:20]MH_I2C_Read... [09:30:20]Read from MH i2c: E2 0E 00 EE 68 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B8 [09:30:20]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:30:20]wFMCommunicate OK [09:30:20]SAM_PROTO_GetShiftState done [09:30:20]FM_GetShiftState done [09:30:20]req_shift_opened done [09:30:20]requested_item shift.open_date is exist - process it [09:30:20]req_shift_open_date [09:30:20]req_shift_open_date done [09:30:20]produce_requested_data done [09:30:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95345,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:30:20]process_action_free print_text [09:30:20]json_value_free [09:30:20]json_value_free done [09:30:20]process_json_proto returns [09:30:20]Send response to host [09:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95345,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:30:20]free response buf [09:30:20]execute_script done [09:30:20]execute_script returns [09:30:20]free content buf [09:30:20]Sock 8.Close socket [09:30:20]Sock 8.Thread stoped [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:21]accept exits with 9 [09:32:21]New connection [09:32:21]New thread 3066957156 created [09:32:21]Thread 3066813796 joined [09:32:21]Waiting for new connection... [09:32:21] Sock 9.Parse request [09:32:21]Sock 9.Check first char [09:32:21]Sock 9.First char is OK [09:32:21]request: POST /json_proto HTTP/1.0 [09:32:21]Method: POST [09:32:21]URL: /json_proto [09:32:21]Method is POST - this is cgi request [09:32:21]url: /json_proto [09:32:21]query_string will be loaded in cgi processing [09:32:21]execute_cgi json_proto POST (null) [09:32:21]execute_cgi path=json_proto method=POST [09:32:21]POST find Content-Length [09:32:21]Host: 172.17.62.67:8080 [09:32:21]Content-Length: 1190 [09:32:21]Content-Type: application/json [09:32:21] [09:32:21]POST finish read [09:32:21]Found Content-Length = 1190 [09:32:21]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196330\u000A13.03.2024 09:26\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 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3821938\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:21]execute_script... [09:32:21]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196330\u000A13.03.2024 09:26\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 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3821938\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:21]POST & json_proto [09:32:21]process_json_proto [09:32:21]json parsed OK: [09:32:21]protocol is kg_v1.0 [09:32:21]action value=print_text [09:32:21]process_action print_text [09:32:21]cmd_print_text [09:32:21]ExternCall_PrintAddStr [09:32:21]wPrintStart [09:32:21]Write to MH i2c: 01 00 00 EF 68 57 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 EF 68 00 80 00 00 00 FF 0F EC [09:32:21]RasterBufferAndPrint [09:32:21]line *****ТОВАРНЫЙ ЧЕК***** [09:32:21]line АЗС 6 [09:32:21]line Партнер нефть [09:32:21]line 02508201610067 [09:32:21]line Кассир : Сабырбек у. М. [09:32:21]line Счет N : (1)196330 [09:32:21]line 13.03.2024 09:26 [09:32:21]line ПРОДАЖА [09:32:21]line ТРК (МРК, ГНК): 42 [09:32:21]line Вид ГСМ : 2710124130 [09:32:21]line Аи-92-К-5 [09:32:21]line 10.000 x 62.90 [09:32:21]line ИТОГ: 629.00 [09:32:21]line Тип оплаты: Талоны: Партнер нефть [09:32:21]line 3821938 [09:32:21]line ______________________ [09:32:21]line (подпись) [09:32:21]written 0, free lines is 4095 [09:32:21]Write to MH i2c: 01 00 00 03 69 6C [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 03 69 00 80 00 00 00 69 0E 6A [09:32:21]RasterBufferAndPrint [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]written 0, free lines is 3693 [09:32:21]process_action print_text done [09:32:21]requested_data is exist [09:32:21]produce_requested_data [09:32:21]requested_item fm.sn is exist - process it [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 11 00 00 [09:32:21]Write to MH i2c: E2 08 00 0A 69 80 11 00 00 00 00 00 00 ED [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 17 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 17 00 0A 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3D [09:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:32:21]wFMCommunicate OK [09:32:21]requested_item fd.num is exist - process it [09:32:21]SAM_PROTO_GetFieldsCounters [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 13 00 00 [09:32:21]Write to MH i2c: E2 08 00 0B 69 80 13 00 00 00 00 00 00 F0 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:21]Read from MH i2c: E2 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 62 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: E2 62 00 0B 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 71 74 01 00 0E 04 04 00 48 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 B4 [09:32:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 71 74 01 00 0E 04 04 00 48 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 [09:32:21]wFMCommunicate OK [09:32:21]SAM_PROTO_GetFieldsCounters done [09:32:21]requested_item shift.num is exist - process it [09:32:21]requested_item shift.opened is exist - process it [09:32:21]req_shift_opened [09:32:21]FM_GetShiftState [09:32:21]SAM_PROTO_GetShiftState [09:32:21]wFMCommunicate request_size=4 [09:32:21]MH_SAM_APDU [09:32:21]CAPDU: 80 13 01 00 [09:32:21]Write to MH i2c: E2 08 00 0C 69 80 13 01 00 00 00 00 00 F2 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:22]Read from MH i2c: E2 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 0E 00 [09:32:22]MH_I2C_Read... [09:32:22]Read from MH i2c: E2 0E 00 0C 69 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 D7 [09:32:22]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:32:22]wFMCommunicate OK [09:32:22]SAM_PROTO_GetShiftState done [09:32:22]FM_GetShiftState done [09:32:22]req_shift_opened done [09:32:22]requested_item shift.open_date is exist - process it [09:32:22]req_shift_open_date [09:32:22]req_shift_open_date done [09:32:22]produce_requested_data done [09:32:22]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95345,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:32:22]process_action_free print_text [09:32:22]json_value_free [09:32:22]json_value_free done [09:32:22]process_json_proto returns [09:32:22]Send response to host [09:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95345,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:32:22]free response buf [09:32:22]execute_script done [09:32:22]execute_script returns [09:32:22]free content buf [09:32:22]Sock 9.Close socket [09:32:22]Sock 9.Thread stoped [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send 02 00 08 F4 03 04 00 CC 73 F1 65 [09:37:07]Write to MH i2c: E2 10 00 17 69 80 15 02 00 08 00 F4 03 04 00 CC 73 F1 65 00 00 A0 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 17 69 00 90 00 F4 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=25 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 [09:37:07]Write to MH i2c: E2 1C 00 18 69 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 00 00 62 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 18 69 00 90 00 F5 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 15 03 00 [09:37:07]Write to MH i2c: E2 08 00 19 69 80 15 03 00 00 00 00 00 03 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 40 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 40 00 19 69 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 29 00 00 00 35 04 06 00 FB 20 B2 1A 64 ED 90 00 87 [09:37:07]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 29 00 00 00 35 04 06 00 FB 20 B2 1A 64 ED 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_ProcessDocument answer len = 59 [09:37:07]SAM_PROTO_ProcessDocument done [09:37:07]SetTLVBufToDocument [09:37:07]Processing tag 1209 (04B9) [09:37:07]Malloc new data [09:37:07]Processing tag 1041 (0411) [09:37:07]Processing tag 1040 (0410) [09:37:07]Malloc new data [09:37:07]Processing tag 1038 (040E) [09:37:07]Malloc new data [09:37:07]Processing tag 1042 (0412) [09:37:07]Malloc new data [09:37:07]Processing tag 1077 (0435) [09:37:07]Malloc new data [09:37:07]SetTLVBufToDocument err=0 [09:37:07]KKMLoadAndSignReceiptData store KKM data [09:37:07]KKMLoadAndSignReceiptData err=0 [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 11 00 00 [09:37:07]Write to MH i2c: E2 08 00 1A 69 80 11 00 00 00 00 00 00 FD [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 17 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 17 00 1A 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4D [09:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:37:07]wFMCommunicate OK [09:37:07]Счет N : (1)196331 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 32 Товар: 2710124130 Аи-92-К-5 7.950 * 62.90 = 500.06 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 41 13.03.2024 09:37 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95346 ФПД: 276117845599469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T093716&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95346&fm=276117845599469&tin=02508201610067®Number=0000000000090555&sum=50000 [09:37:07]StoreToDocumentArchive [09:37:07]shift 328 fd 95346 [09:37:07]save to /storage/0328/doc_00095346 [09:37:07]save last doc name /storage/0328/doc_00095346 to /storage/kkm_last_doc_name [09:37:07]save OK [09:37:07]Clear old archive folders... [09:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:07]tlvbuf is 01C31A30 [09:37:07]SAM_PROTO_ClearQueue [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 09 00 00 [09:37:07]Write to MH i2c: E2 08 00 1B 69 80 09 00 00 00 00 00 00 F6 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 1B 69 00 90 00 F8 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_ClearQueue done [09:37:07]KKMCreateOFDPacket [09:37:07]OFDProtocolAddRootSTLVToBuf [09:37:07]FM_MakeSignedData [09:37:07]FM_MakeSignedData [09:37:07]SAM_PROTO_SignData [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 01 02 [09:37:07]Write to MH i2c: E2 08 00 1C 69 80 0D 01 02 00 00 00 00 FE [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 1C 69 00 90 00 F9 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=255 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 29 00 00 00 F4 03 04 00 CC 73 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 74 01 00 35 04 06 00 FB [09:37:07]Write to MH i2c: E2 02 01 1D 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 29 00 00 00 F4 03 04 00 CC 73 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 74 01 00 35 04 06 00 FB 00 00 90 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 1D 69 00 90 00 FA [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=10 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 02 02 05 20 B2 1A 64 ED [09:37:08]Write to MH i2c: E2 0D 00 1E 69 80 0D 02 02 05 00 20 B2 1A 64 ED 00 00 48 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 1E 69 00 90 00 FB [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 03 02 [09:37:08]Write to MH i2c: E2 08 00 1F 69 80 0D 03 02 00 00 00 00 03 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 0B 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 0B 00 1F 69 00 D0 25 D9 27 44 F7 37 ED 90 00 58 [09:37:08]RAPDU: D0 25 D9 27 44 F7 37 ED 90 00 [09:37:08]wFMCommunicate OK [09:37:08]SAM_PROTO_SignData done [09:37:08]FM_MakeSignedData done [09:37:08]CreateOFDProtocolMessage [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 11 00 00 [09:37:08]Write to MH i2c: E2 08 00 20 69 80 11 00 00 00 00 00 00 03 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 17 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 17 00 20 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 53 [09:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:37:08]wFMCommunicate OK [09:37:08]CreateOFDProtocolMessage done [09:37:08]OFDSenderStorePacket 95346 [09:37:08]StoreOFDPacket docnum=95346 [09:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 FB 07 01 98 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 29 00 00 00 F4 03 04 00 CC 73 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 74 01 00 35 04 06 00 FB 20 B2 1A 64 ED D0 25 D9 27 44 F7 37 ED [09:37:08]CheckFolder [09:37:08]dirname=/storage/ofd_packets [09:37:08]CheckFolder done [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00095346 [09:37:08]NVStorageSaveData ofd_packets/00095346 [09:37:08]File name is /storage/ofd_packets/00095346 [09:37:08]Write 301 bytes [09:37:08]NVStorageSaveData done [09:37:08]OFDSenderStorePacket done [09:37:08]KKMCreateOFDPacket done [09:37:08]NVStorageSaveData kkm_last_timestamp [09:37:08]File name is /storage/kkm_last_timestamp [09:37:08]Write 4 bytes [09:37:08]NVStorageSaveData done [09:37:08]ExternCall_PrintAddStr [09:37:08]wPrintStart [09:37:08]Write to MH i2c: 01 00 00 21 69 8A [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 21 69 00 80 00 00 00 FF 0F 1F [09:37:08]RasterBufferAndPrint [09:37:08]line Счет N : (1)196331 [09:37:08]line ИНН: 02508201610067 [09:37:08]line Контрольно-Кассовый Чек [09:37:08]line ПРОДАЖА [09:37:08]line ТРК (МРК, ГНК) : 32 [09:37:08]line Товар: 2710124130 [09:37:08]line Аи-92-К-5 [09:37:08]line 7.950 * 62.90 [09:37:08]line = 500.06 [09:37:08]line НДС 12% НСП 1% [09:37:08]line > о реализуемом товаре [09:37:08]line ОКРУГЛЕНИЕ: -0.06 [09:37:08]line ИТОГО: 500.00 [09:37:08]line Внесено: 500.00 [09:37:08]line СДАЧА: 0.00 [09:37:08]line НСП 1% : 4.42 [09:37:08]line НДС 12% : 53.10 [09:37:08]line Наличными: 500.00 [09:37:08]line Безнал.: 0.00 [09:37:08]line Место: АЗС № 6 "Партнер Нефть" [09:37:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:37:08]line СНО: Общий режим [09:37:08]line Чек 41 13.03.2024 09:37 [09:37:08]line Смена: 328 ФФД: 1.0 [09:37:08]line ЗНМ: 0300000009 [09:37:08]line РНМ: 0000000000090555 [09:37:08]line Версия ККМ: 001 [09:37:08]line ФМ: 0000000000874811 [09:37:08]line ФД: 95346 [09:37:08]line ФПД: 276117845599469 [09:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T093716&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95346&fm=276117845599469&tin=02508201610067®Number=0000000000090555&sum=50000 [09:37:08]OFD Sender: Processing packet 95346 [packets to send 30, broken 29] [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00095346 [09:37:08]OFD Sender: To server: pG, [09:37:08]CommunicateWithHost lk.salyk.kg:30040 [09:37:08]ConnectInit lk.salyk.kg [09:37:08]written 0, free lines is 4095 [09:37:09]Write to MH i2c: 01 00 00 4C 69 B5 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 4C 69 00 80 00 00 00 48 0D 91 [09:37:09]RasterBufferAndPrint [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]written 0, free lines is 3406 [09:37:09]process_action close_receipt done [09:37:09]requested_data is exist [09:37:09]produce_requested_data [09:37:09]requested_item fm.sn is exist - process it [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 11 00 00 [09:37:09]Write to MH i2c: E2 08 00 53 69 80 11 00 00 00 00 00 00 36 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 53 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 86 [09:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:37:09]wFMCommunicate OK [09:37:09]requested_item fd.num is exist - process it [09:37:09]SAM_PROTO_GetFieldsCounters [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 13 00 00 [09:37:09]Write to MH i2c: E2 08 00 54 69 80 13 00 00 00 00 00 00 39 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 62 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 62 00 54 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 72 74 01 00 0E 04 04 00 48 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 01 [09:37:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 72 74 01 00 0E 04 04 00 48 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 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_GetFieldsCounters done [09:37:09]requested_item shift.num is exist - process it [09:37:09]requested_item shift.opened is exist - process it [09:37:09]req_shift_opened [09:37:09]FM_GetShiftState [09:37:09]SAM_PROTO_GetShiftState [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 13 01 00 [09:37:09]Write to MH i2c: E2 08 00 55 69 80 13 01 00 00 00 00 00 3B [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:09]Read from MH i2c: E2 0E 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0E 00 55 69 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 20 [09:37:09]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_GetShiftState done [09:37:09]FM_GetShiftState done [09:37:09]req_shift_opened done [09:37:09]requested_item shift.open_date is exist - process it [09:37:09]req_shift_open_date [09:37:09]req_shift_open_date done [09:37:09]produce_requested_data done [09:37:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95346,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:37:09]process_action_free close_receipt [09:37:09]json_value_free [09:37:09]json_value_free done [09:37:09]process_json_proto returns [09:37:09]Send response to host [09:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95346,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:37:09]free response buf [09:37:09]execute_script done [09:37:09]execute_script returns [09:37:09]free content buf [09:37:09]Sock 8.Close socket [09:37:09]Sock 8.Thread stoped [09:37:10]ConnectInit Can't connect to host [09:39:22]ConnectInit Can't connect to host [09:39:22]CommunicateWithHost connect error [09:39:22]CommunicateWithHost err = -1 [09:39:22]OFD Sender: Server communicate error [09:39:27]OFD Sender: Processing packet 95346 [packets to send 30, broken 29] [09:39:27]ProducePacketName [09:39:27]name=ofd_packets/00095346 [09:39:27]OFD Sender: To server: pG, [09:39:27]CommunicateWithHost lk.salyk.kg:30040 [09:39:27]ConnectInit lk.salyk.kg [09:39:27]Connected sock=8 [09:39:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 97 FB 07 01 98 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 29 00 00 00 F4 03 04 00 CC 73 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 74 01 00 35 04 06 00 FB 20 B2 1A 64 ED D0 25 D9 27 44 F7 37 ED [09:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3D 68 47 00 50 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 72 74 01 00 F4 03 04 00 AA 1F F1 65 B6 04 01 00 00 B6 75 FB BB 04 BC E6 5E [09:39:27]CommunicateWithHost err = 0 [09:39:27]CheckOFDResponse [09:39:27]1017 (14) - 77093643461234 [09:39:27]1041 (16) - 0000000000874811 [09:39:27]1040 (4) - 95346 [09:39:27]1012 (4) - 13.03.2024 03:38 [09:39:27]1206 (1) - 0 [09:39:27]OFD Sender: Remove packet 95346 [09:39:27]ProducePacketName [09:39:27]name=ofd_packets/00095346 [09:39:27]NVStorageDeleteData [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]accept exits with 9 [09:40:47]New connection [09:40:47]New thread 3066957156 created [09:40:47]Thread 3066813796 joined [09:40:47]Waiting for new connection... [09:40:47] Sock 9.Parse request [09:40:47]Sock 9.Check first char [09:40:47]Sock 9.First char is OK [09:40:47]request: POST /json_proto HTTP/1.0 [09:40:47]Method: POST [09:40:47]URL: /json_proto [09:40:47]Method is POST - this is cgi request [09:40:47]url: /json_proto [09:40:47]query_string will be loaded in cgi processing [09:40:47]execute_cgi json_proto POST (null) [09:40:47]execute_cgi path=json_proto method=POST [09:40:47]POST find Content-Length [09:40:47]Host: 172.17.62.67:8080 [09:40:47]Content-Length: 657 [09:40:47]Content-Type: application/json [09:40:47] [09:40:47]POST finish read [09:40:47]Found Content-Length = 657 [09:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11538", "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" : 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" ] } } [09:40:47]execute_script... [09:40: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)11538", "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" : 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" ] } } [09:40:47]POST & json_proto [09:40:47]process_json_proto [09:40:47]json parsed OK: [09:40:47]protocol is kg_v1.0 [09:40:47]action value=close_receipt [09:40:47]process_action close_receipt [09:40:47]cmd_close_receipt [09:40:47]MH_GetDate [09:40:47]Write to MH i2c: F0 00 00 56 69 AE [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: F0 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: F0 05 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: F0 05 00 56 69 00 A9 74 F1 65 26 [09:40:47]GetLastDocTimeStamp 1710322636 [09:40:47]current date 1710322857 [09:40:47]FM_GetShiftState [09:40:47]SAM_PROTO_GetShiftState [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 13 01 00 [09:40:47]Write to MH i2c: E2 08 00 57 69 80 13 01 00 00 00 00 00 3D [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 0E 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 0E 00 57 69 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 22 [09:40:47]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:40:47]wFMCommunicate OK [09:40:47]SAM_PROTO_GetShiftState done [09:40:47]FM_GetShiftState done [09:40:47]opened in 1710288279 [09:40:47]opened+sec_in_day 1710374679 [09:40:47]quantity*price = 11000 [09:40:47]sum+1 = 11001 [09:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 42 13.03.2024 09:40 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95347 ФПД: 7605987793005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T094057&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95347&fm=7605987793005&tin=02508201610067®Number=0000000000090555&sum=11000 0 [09:40:48]StoreToDocumentArchive [09:40:48]shift 328 fd 95347 [09:40:48]save to /storage/0328/doc_00095347 [09:40:48]save last doc name /storage/0328/doc_00095347 to /storage/kkm_last_doc_name [09:40:48]save OK [09:40:48]Clear old archive folders... [09:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=278 [09:40:48]tlvbuf is 01A4C7B0 [09:40:48]SAM_PROTO_ClearQueue [09:40:48]wFMCommunicate request_size=4 [09:40:48]MH_SAM_APDU [09:40:48]CAPDU: 80 09 00 00 [09:40:48]Write to MH i2c: E2 08 00 64 69 80 09 00 00 00 00 00 00 3F [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 64 69 00 90 00 41 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]SAM_PROTO_ClearQueue done [09:40:49]KKMCreateOFDPacket [09:40:49]OFDProtocolAddRootSTLVToBuf [09:40:49]FM_MakeSignedData [09:40:49]FM_MakeSignedData [09:40:49]SAM_PROTO_SignData [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 0D 01 02 [09:40:49]Write to MH i2c: E2 08 00 65 69 80 0D 01 02 00 00 00 00 47 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 65 69 00 90 00 42 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=255 [09:40:49]MH_SAM_APDU [09:40:49]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 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 2A 00 00 00 F4 03 04 00 A9 74 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 [09:40:49]Write to MH i2c: E2 02 01 66 69 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 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 2A 00 00 00 F4 03 04 00 A9 74 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 00 00 A2 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 66 69 00 90 00 43 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=37 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 74 01 00 35 04 06 00 06 EA E8 33 58 6D [09:40:49]Write to MH i2c: E2 28 00 67 69 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 74 01 00 35 04 06 00 06 EA E8 33 58 6D 00 00 56 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 67 69 00 90 00 44 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 0D 03 02 [09:40:49]Write to MH i2c: E2 08 00 68 69 80 0D 03 02 00 00 00 00 4C [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 0B 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 0B 00 68 69 00 CF BF 0E 65 2E 1F DD 5B 90 00 D3 [09:40:49]RAPDU: CF BF 0E 65 2E 1F DD 5B 90 00 [09:40:49]wFMCommunicate OK [09:40:49]SAM_PROTO_SignData done [09:40:49]FM_MakeSignedData done [09:40:49]CreateOFDProtocolMessage [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 11 00 00 [09:40:49]Write to MH i2c: E2 08 00 69 69 80 11 00 00 00 00 00 00 4C [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 17 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 17 00 69 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9C [09:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:40:49]wFMCommunicate OK [09:40:49]CreateOFDProtocolMessage done [09:40:49]OFDSenderStorePacket 95347 [09:40:49]StoreOFDPacket docnum=95347 [09:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2A 01 00 00 6B 82 22 01 BE 5C 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 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 2A 00 00 00 F4 03 04 00 A9 74 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 74 01 00 35 04 06 00 06 EA E8 33 58 6D CF BF 0E 65 2E 1F DD 5B [09:40:49]CheckFolder [09:40:49]dirname=/storage/ofd_packets [09:40:49]CheckFolder done [09:40:49]ProducePacketName [09:40:49]name=ofd_packets/00095347 [09:40:49]NVStorageSaveData ofd_packets/00095347 [09:40:49]File name is /storage/ofd_packets/00095347 [09:40:49]Write 328 bytes [09:40:49]NVStorageSaveData done [09:40:49]OFDSenderStorePacket done [09:40:49]KKMCreateOFDPacket done [09:40:49]NVStorageSaveData kkm_last_timestamp [09:40:49]File name is /storage/kkm_last_timestamp [09:40:49]Write 4 bytes [09:40:49]NVStorageSaveData done [09:40:49]ExternCall_PrintAddStr [09:40:49]wPrintStart [09:40:49]Write to MH i2c: 01 00 00 6A 69 D3 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 07 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 07 00 6A 69 00 80 00 00 00 FF 0F 68 [09:40:49]RasterBufferAndPrint [09:40:49]line Счет N : (3)11538 [09:40:49]line ИНН: 02508201610067 [09:40:49]line Контрольно-Кассовый Чек [09:40:49]line ПРОДАЖА [09:40:49]line Товар: 5449000054227 [09:40:49]line Напиток Кока-Кола 1л [09:40:49]line 1.000 * 110.00 [09:40:49]line = 110.00 [09:40:49]line НДС 12% НСП 1% [09:40:49]line > о реализуемом товаре [09:40:49]line ИТОГО: 110.00 [09:40:49]line НСП 1% : 0.97 [09:40:49]line НДС 12% : 11.68 [09:40:49]line Наличными: 110.00 [09:40:49]line Безнал.: 0.00 [09:40:49]line Место: АЗС № 6 "Партнер Нефть" [09:40:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:40:49]line СНО: Общий режим [09:40:49]line Чек 42 13.03.2024 09:40 [09:40:49]line Смена: 328 ФФД: 1.0 [09:40:49]line ЗНМ: 0300000009 [09:40:49]line РНМ: 0000000000090555 [09:40:49]line Версия ККМ: 001 [09:40:49]line ФМ: 0000000000874811 [09:40:49]line ФД: 95347 [09:40:49]line ФПД: 7605987793005 [09:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T094057&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95347&fm=7605987793005&tin=02508201610067®Number=0000000000090555&sum=11000 [09:40:49]line 0 [09:40:49]OFD Sender: Processing packet 95347 [packets to send 30, broken 29] [09:40:49]ProducePacketName [09:40:49]name=ofd_packets/00095347 [09:40:49]OFD Sender: To server: pG, [09:40:49]CommunicateWithHost lk.salyk.kg:30040 [09:40:49]ConnectInit lk.salyk.kg [09:40:49]written 0, free lines is 4095 [09:40:49]Connected sock=10 [09:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2A 01 00 00 6B 82 22 01 BE 5C 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 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 2A 00 00 00 F4 03 04 00 A9 74 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 74 01 00 35 04 06 00 06 EA E8 33 58 6D CF BF 0E 65 2E 1F DD 5B [09:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D1 36 47 00 1B 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 73 74 01 00 F4 03 04 00 FD 1F F1 65 B6 04 01 00 00 FF C6 79 CC 41 46 7A 79 [09:40:50]CommunicateWithHost err = 0 [09:40:50]CheckOFDResponse [09:40:50]1017 (14) - 77093643461234 [09:40:50]1041 (16) - 0000000000874811 [09:40:50]1040 (4) - 95347 [09:40:50]1012 (4) - 13.03.2024 03:39 [09:40:50]1206 (1) - 0 [09:40:50]OFD Sender: Remove packet 95347 [09:40:50]ProducePacketName [09:40:50]name=ofd_packets/00095347 [09:40:50]NVStorageDeleteData [09:40:50]Write to MH i2c: 01 00 00 92 69 FB [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: 01 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: 01 07 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: 01 07 00 92 69 00 80 00 00 00 76 0D 05 [09:40:50]RasterBufferAndPrint [09:40:50]line [09:40:50]line [09:40:50]line [09:40:50]line [09:40:50]line [09:40:50]written 0, free lines is 3452 [09:40:50]process_action close_receipt done [09:40:50]requested_data is exist [09:40:50]produce_requested_data [09:40:50]requested_item fm.sn is exist - process it [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 11 00 00 [09:40:50]Write to MH i2c: E2 08 00 99 69 80 11 00 00 00 00 00 00 7C [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 17 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 17 00 99 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CC [09:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:40:50]wFMCommunicate OK [09:40:50]requested_item fd.num is exist - process it [09:40:50]SAM_PROTO_GetFieldsCounters [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 13 00 00 [09:40:50]Write to MH i2c: E2 08 00 9A 69 80 13 00 00 00 00 00 00 7F [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 62 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 62 00 9A 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 73 74 01 00 0E 04 04 00 48 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 4B [09:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 73 74 01 00 0E 04 04 00 48 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 [09:40:50]wFMCommunicate OK [09:40:50]SAM_PROTO_GetFieldsCounters done [09:40:50]requested_item shift.num is exist - process it [09:40:50]requested_item shift.opened is exist - process it [09:40:50]req_shift_opened [09:40:50]FM_GetShiftState [09:40:50]SAM_PROTO_GetShiftState [09:40:50]wFMCommunicate request_size=4 [09:40:50]MH_SAM_APDU [09:40:50]CAPDU: 80 13 01 00 [09:40:50]Write to MH i2c: E2 08 00 9B 69 80 13 01 00 00 00 00 00 81 [09:40:50]Write i2c OK [09:40:50]MH_I2C_Read... [09:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:50]Read from MH i2c: E2 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 0E 00 [09:40:50]MH_I2C_Read... [09:40:50]Read from MH i2c: E2 0E 00 9B 69 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 66 [09:40:50]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:40:50]wFMCommunicate OK [09:40:50]SAM_PROTO_GetShiftState done [09:40:50]FM_GetShiftState done [09:40:50]req_shift_opened done [09:40:50]requested_item shift.open_date is exist - process it [09:40:50]req_shift_open_date [09:40:50]req_shift_open_date done [09:40:50]produce_requested_data done [09:40:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95347,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:40:50]process_action_free close_receipt [09:40:50]json_value_free [09:40:50]json_value_free done [09:40:50]process_json_proto returns [09:40:50]Send response to host [09:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95347,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:40:50]free response buf [09:40:50]execute_script done [09:40:50]execute_script returns [09:40:50]free content buf [09:40:50]Sock 9.Close socket [09:40:50]Sock 9.Thread stoped [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:13]accept exits with 8 [09:42:13]New connection [09:42:13]New thread 3066813796 created [09:42:13]Thread 3066957156 joined [09:42:13]Waiting for new connection... [09:42:13] Sock 8.Parse request [09:42:13]Sock 8.Check first char [09:42:13]Sock 8.First char is OK [09:42:13]request: POST /json_proto HTTP/1.0 [09:42:13]Method: POST [09:42:13]URL: /json_proto [09:42:13]Method is POST - this is cgi request [09:42:13]url: /json_proto [09:42:13]query_string will be loaded in cgi processing [09:42:13]execute_cgi json_proto POST (null) [09:42:13]execute_cgi path=json_proto method=POST [09:42:13]POST find Content-Length [09:42:13]Host: 172.17.62.67:8080 [09:42:13]Content-Length: 677 [09:42:13]Content-Type: application/json [09:42:13] [09:42:13]POST finish read [09:42:13]Found Content-Length = 677 [09:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196332", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:13]execute_script... [09:42:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196332", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:13]POST & json_proto [09:42:13]process_json_proto [09:42:13]json parsed OK: [09:42:13]protocol is kg_v1.0 [09:42:13]action value=close_receipt [09:42:13]process_action close_receipt [09:42:13]cmd_close_receipt [09:42:13]MH_GetDate [09:42:13]Write to MH i2c: F0 00 00 9C 69 F4 [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: F0 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: F0 05 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: F0 05 00 9C 69 00 FF 74 F1 65 C2 [09:42:13]GetLastDocTimeStamp 1710322857 [09:42:13]current date 1710322943 [09:42:13]FM_GetShiftState [09:42:13]SAM_PROTO_GetShiftState [09:42:13]wFMCommunicate request_size=4 [09:42:13]MH_SAM_APDU [09:42:13]CAPDU: 80 13 01 00 [09:42:13]Write to MH i2c: E2 08 00 9D 69 80 13 01 00 00 00 00 00 83 [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 9D 69 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 68 [09:42:13]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:42:13]wFMCommunicate OK [09:42:13]SAM_PROTO_GetShiftState done [09:42:13]FM_GetShiftState done [09:42:13]opened in 1710288279 [09:42:13]opened+sec_in_day 1710374679 [09:42:13]quantity*price = 40004 [09:42:13]sum+1 = 40005 [09:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 43 13.03.2024 09:42 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95348 ФПД: 94908304054890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T094223&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95348&fm=94908304054890&tin=02508201610067®Number=0000000000090555&sum=40000 [09:42:14]StoreToDocumentArchive [09:42:14]shift 328 fd 95348 [09:42:14]save to /storage/0328/doc_00095348 [09:42:14]save last doc name /storage/0328/doc_00095348 to /storage/kkm_last_doc_name [09:42:14]save OK [09:42:14]Clear old archive folders... [09:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:14]tlvbuf is 01AF2800 [09:42:14]SAM_PROTO_ClearQueue [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 09 00 00 [09:42:14]Write to MH i2c: E2 08 00 AA 69 80 09 00 00 00 00 00 00 85 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 AA 69 00 90 00 87 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]SAM_PROTO_ClearQueue done [09:42:14]KKMCreateOFDPacket [09:42:14]OFDProtocolAddRootSTLVToBuf [09:42:14]FM_MakeSignedData [09:42:14]FM_MakeSignedData [09:42:14]SAM_PROTO_SignData [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 0D 01 02 [09:42:14]Write to MH i2c: E2 08 00 AB 69 80 0D 01 02 00 00 00 00 8D [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 AB 69 00 90 00 88 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]wFMCommunicate request_size=255 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 FF 74 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 74 01 00 35 04 06 00 56 [09:42:14]Write to MH i2c: E2 02 01 AC 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 FF 74 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 74 01 00 35 04 06 00 56 00 00 4C [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 AC 69 00 90 00 89 [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]wFMCommunicate request_size=10 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 0D 02 02 05 51 8F BF DA 6A [09:42:15]Write to MH i2c: E2 0D 00 AD 69 80 0D 02 02 05 00 51 8F BF DA 6A 00 00 7D [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 AD 69 00 90 00 8A [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 0D 03 02 [09:42:15]Write to MH i2c: E2 08 00 AE 69 80 0D 03 02 00 00 00 00 92 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 0B 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 0B 00 AE 69 00 88 24 75 8D 15 AC B4 7C 90 00 32 [09:42:15]RAPDU: 88 24 75 8D 15 AC B4 7C 90 00 [09:42:15]wFMCommunicate OK [09:42:15]SAM_PROTO_SignData done [09:42:15]FM_MakeSignedData done [09:42:15]CreateOFDProtocolMessage [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 11 00 00 [09:42:15]Write to MH i2c: E2 08 00 AF 69 80 11 00 00 00 00 00 00 92 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 17 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 17 00 AF 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E2 [09:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:42:15]wFMCommunicate OK [09:42:15]CreateOFDProtocolMessage done [09:42:15]OFDSenderStorePacket 95348 [09:42:15]StoreOFDPacket docnum=95348 [09:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B7 71 07 01 52 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 FF 74 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 74 01 00 35 04 06 00 56 51 8F BF DA 6A 88 24 75 8D 15 AC B4 7C [09:42:15]CheckFolder [09:42:15]dirname=/storage/ofd_packets [09:42:15]CheckFolder done [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00095348 [09:42:15]NVStorageSaveData ofd_packets/00095348 [09:42:15]File name is /storage/ofd_packets/00095348 [09:42:15]Write 301 bytes [09:42:15]NVStorageSaveData done [09:42:15]OFDSenderStorePacket done [09:42:15]KKMCreateOFDPacket done [09:42:15]NVStorageSaveData kkm_last_timestamp [09:42:15]File name is /storage/kkm_last_timestamp [09:42:15]Write 4 bytes [09:42:15]NVStorageSaveData done [09:42:15]ExternCall_PrintAddStr [09:42:15]wPrintStart [09:42:15]Write to MH i2c: 01 00 00 B0 69 19 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 07 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 07 00 B0 69 00 80 00 00 00 FF 0F AE [09:42:15]RasterBufferAndPrint [09:42:15]line Счет N : (1)196332 [09:42:15]line ИНН: 02508201610067 [09:42:15]line Контрольно-Кассовый Чек [09:42:15]line ПРОДАЖА [09:42:15]line ТРК (МРК, ГНК) : 32 [09:42:15]line Товар: 2710124130 [09:42:15]line Аи-92-К-5 [09:42:15]line 6.360 * 62.90 [09:42:15]line = 400.04 [09:42:15]line НДС 12% НСП 1% [09:42:15]line > о реализуемом товаре [09:42:15]line ОКРУГЛЕНИЕ: -0.04 [09:42:15]line ИТОГО: 400.00 [09:42:15]line Внесено: 400.00 [09:42:15]line СДАЧА: 0.00 [09:42:15]line НСП 1% : 3.54 [09:42:15]line НДС 12% : 42.48 [09:42:15]line Наличными: 400.00 [09:42:15]line Безнал.: 0.00 [09:42:15]line Место: АЗС № 6 "Партнер Нефть" [09:42:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:42:15]line СНО: Общий режим [09:42:15]line Чек 43 13.03.2024 09:42 [09:42:15]line Смена: 328 ФФД: 1.0 [09:42:15]line ЗНМ: 0300000009 [09:42:15]line РНМ: 0000000000090555 [09:42:15]line Версия ККМ: 001 [09:42:15]line ФМ: 0000000000874811 [09:42:15]line ФД: 95348 [09:42:15]line ФПД: 94908304054890 [09:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T094223&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95348&fm=94908304054890&tin=02508201610067®Number=0000000000090555&sum=40000 [09:42:15]OFD Sender: Processing packet 95348 [packets to send 30, broken 29] [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00095348 [09:42:15]OFD Sender: To server: pG, [09:42:15]CommunicateWithHost lk.salyk.kg:30040 [09:42:15]ConnectInit lk.salyk.kg [09:42:15]written 0, free lines is 4095 [09:42:15]Connected sock=10 [09:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B7 71 07 01 52 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 FF 74 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 74 74 01 00 35 04 06 00 56 51 8F BF DA 6A 88 24 75 8D 15 AC B4 7C [09:42:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 0C DE 47 00 C9 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 34 38 31 31 10 04 04 00 74 74 01 00 F4 03 04 00 52 20 F1 65 B6 04 01 00 00 1C DE 00 4C 5B D2 48 25 [09:42:15]CommunicateWithHost err = 0 [09:42:15]CheckOFDResponse [09:42:15]1017 (14) - 77093643461234 [09:42:15]1041 (16) - 0000000000874811 [09:42:15]1040 (4) - 95348 [09:42:15]1012 (4) - 13.03.2024 03:41 [09:42:15]1206 (1) - 0 [09:42:15]OFD Sender: Remove packet 95348 [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00095348 [09:42:15]NVStorageDeleteData [09:42:15]Write to MH i2c: 01 00 00 DB 69 44 [09:42:15]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 DB 69 00 80 00 00 00 4C 0D 24 [09:42:16]RasterBufferAndPrint [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]written 0, free lines is 3410 [09:42:16]process_action close_receipt done [09:42:16]requested_data is exist [09:42:16]produce_requested_data [09:42:16]requested_item fm.sn is exist - process it [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 11 00 00 [09:42:16]Write to MH i2c: E2 08 00 E2 69 80 11 00 00 00 00 00 00 C5 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:16]Read from MH i2c: E2 17 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 17 00 E2 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 15 [09:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:42:16]wFMCommunicate OK [09:42:16]requested_item fd.num is exist - process it [09:42:16]SAM_PROTO_GetFieldsCounters [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 13 00 00 [09:42:16]Write to MH i2c: E2 08 00 E3 69 80 13 00 00 00 00 00 00 C8 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 62 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 62 00 E3 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 74 74 01 00 0E 04 04 00 48 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 98 [09: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 74 74 01 00 0E 04 04 00 48 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 [09:42:16]wFMCommunicate OK [09:42:16]SAM_PROTO_GetFieldsCounters done [09:42:16]requested_item shift.num is exist - process it [09:42:16]requested_item shift.opened is exist - process it [09:42:16]req_shift_opened [09:42:16]FM_GetShiftState [09:42:16]SAM_PROTO_GetShiftState [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 13 01 00 [09:42:16]Write to MH i2c: E2 08 00 E4 69 80 13 01 00 00 00 00 00 CA [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:16]OFD Sender: No OFD packet to send [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 0E 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 0E 00 E4 69 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 AF [09:42:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:42:16]wFMCommunicate OK [09:42:16]SAM_PROTO_GetShiftState done [09:42:16]FM_GetShiftState done [09:42:16]req_shift_opened done [09:42:16]requested_item shift.open_date is exist - process it [09:42:16]req_shift_open_date [09:42:16]req_shift_open_date done [09:42:16]produce_requested_data done [09:42:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95348,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:42:16]process_action_free close_receipt [09:42:16]json_value_free [09:42:16]json_value_free done [09:42:16]process_json_proto returns [09:42:16]Send response to host [09:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95348,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:42:16]free response buf [09:42:16]execute_script done [09:42:16]execute_script returns [09:42:16]free content buf [09:42:16]Sock 8.Close socket [09:42:16]Sock 8.Thread stoped [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:48]accept exits with 9 [09:44:48]New connection [09:44:48]New thread 3066957156 created [09:44:48]Thread 3066813796 joined [09:44:48]Waiting for new connection... [09:44:48] Sock 9.Parse request [09:44:48]Sock 9.Check first char [09:44:48]Sock 9.First char is OK [09:44:48]request: POST /json_proto HTTP/1.0 [09:44:48]Method: POST [09:44:48]URL: /json_proto [09:44:48]Method is POST - this is cgi request [09:44:48]url: /json_proto [09:44:48]query_string will be loaded in cgi processing [09:44:48]execute_cgi json_proto POST (null) [09:44:48]execute_cgi path=json_proto method=POST [09:44:48]POST find Content-Length [09:44:48]Host: 172.17.62.67:8080 [09:44:48]Content-Length: 677 [09:44:48]Content-Type: application/json [09:44:48] [09:44:48]POST finish read [09:44:48]Found Content-Length = 677 [09:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196333", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:48]execute_script... [09:44:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196333", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:48]POST & json_proto [09:44:48]process_json_proto [09:44:48]json parsed OK: [09:44:48]protocol is kg_v1.0 [09:44:48]action value=close_receipt [09:44:48]process_action close_receipt [09:44:48]cmd_close_receipt [09:44:48]MH_GetDate [09:44:48]Write to MH i2c: F0 00 00 E5 69 3D [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: F0 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: F0 05 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: F0 05 00 E5 69 00 9A 75 F1 65 A7 [09:44:48]GetLastDocTimeStamp 1710322943 [09:44:48]current date 1710323098 [09:44:48]FM_GetShiftState [09:44:48]SAM_PROTO_GetShiftState [09:44:48]wFMCommunicate request_size=4 [09:44:48]MH_SAM_APDU [09:44:48]CAPDU: 80 13 01 00 [09:44:48]Write to MH i2c: E2 08 00 E6 69 80 13 01 00 00 00 00 00 CC [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 0E 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 0E 00 E6 69 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B1 [09:44:48]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:44:48]wFMCommunicate OK [09:44:48]SAM_PROTO_GetShiftState done [09:44:48]FM_GetShiftState done [09:44:48]opened in 1710288279 [09:44:48]opened+sec_in_day 1710374679 [09:44:48]quantity*price = 50005 [09:44:48]sum+1 = 50007 [09:44:48]Check (price>sum+1) || (price+1 о реализуемом товаре [09:44:50]line ОКРУГЛЕНИЕ: -0.06 [09:44:50]line ИТОГО: 500.00 [09:44:50]line Внесено: 500.00 [09:44:50]line СДАЧА: 0.00 [09:44:50]line НСП 1% : 4.42 [09:44:50]line НДС 12% : 53.10 [09:44:50]line Наличными: 500.00 [09:44:50]line Безнал.: 0.00 [09:44:50]line Место: АЗС № 6 "Партнер Нефть" [09:44:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:44:50]line СНО: Общий режим [09:44:50]line Чек 44 13.03.2024 09:44 [09:44:50]line Смена: 328 ФФД: 1.0 [09:44:50]line ЗНМ: 0300000009 [09:44:50]line РНМ: 0000000000090555 [09:44:50]line Версия ККМ: 001 [09:44:50]line ФМ: 0000000000874811 [09:44:50]line ФД: 95349 [09:44:50]line ФПД: 2173903675986 [09:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T094458&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95349&fm=2173903675986&tin=02508201610067®Number=0000000000090555&sum=50000 [09:44:50]OFD Sender: Processing packet 95349 [packets to send 30, broken 29] [09:44:50]ProducePacketName [09:44:50]name=ofd_packets/00095349 [09:44:50]OFD Sender: To server: pG, [09:44:50]CommunicateWithHost lk.salyk.kg:30040 [09:44:50]ConnectInit lk.salyk.kg [09:44:50]written 0, free lines is 4095 [09:44:51]Write to MH i2c: 01 00 00 24 6A 8E [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: 01 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: 01 07 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: 01 07 00 24 6A 00 80 00 00 00 48 0D 6A [09:44:51]RasterBufferAndPrint [09:44:51]line [09:44:51]line [09:44:51]line [09:44:51]line [09:44:51]line [09:44:51]written 0, free lines is 3406 [09:44:51]process_action close_receipt done [09:44:51]requested_data is exist [09:44:51]produce_requested_data [09:44:51]requested_item fm.sn is exist - process it [09:44:51]wFMCommunicate request_size=4 [09:44:51]MH_SAM_APDU [09:44:51]CAPDU: 80 11 00 00 [09:44:51]Write to MH i2c: E2 08 00 2B 6A 80 11 00 00 00 00 00 00 0F [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 [09:44:51]MH_I2C_Read... [09:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:51]Read from MH i2c: E2 17 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 17 00 2B 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5F [09:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:44:51]wFMCommunicate OK [09:44:51]requested_item fd.num is exist - process it [09:44:51]SAM_PROTO_GetFieldsCounters [09:44:51]wFMCommunicate request_size=4 [09:44:51]MH_SAM_APDU [09:44:51]CAPDU: 80 13 00 00 [09:44:51]Write to MH i2c: E2 08 00 2C 6A 80 13 00 00 00 00 00 00 12 [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:51]Read from MH i2c: E2 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 62 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 62 00 2C 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 75 74 01 00 0E 04 04 00 48 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 E6 [09:44:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 75 74 01 00 0E 04 04 00 48 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 [09:44:51]wFMCommunicate OK [09:44:51]SAM_PROTO_GetFieldsCounters done [09:44:51]requested_item shift.num is exist - process it [09:44:51]requested_item shift.opened is exist - process it [09:44:51]req_shift_opened [09:44:51]FM_GetShiftState [09:44:51]SAM_PROTO_GetShiftState [09:44:51]wFMCommunicate request_size=4 [09:44:51]MH_SAM_APDU [09:44:51]CAPDU: 80 13 01 00 [09:44:51]Write to MH i2c: E2 08 00 2D 6A 80 13 01 00 00 00 00 00 14 [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:51]Read from MH i2c: E2 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 0E 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: E2 0E 00 2D 6A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F9 [09:44:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:44:51]wFMCommunicate OK [09:44:51]SAM_PROTO_GetShiftState done [09:44:51]FM_GetShiftState done [09:44:51]req_shift_opened done [09:44:51]requested_item shift.open_date is exist - process it [09:44:51]req_shift_open_date [09:44:51]req_shift_open_date done [09:44:51]produce_requested_data done [09:44:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95349,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:44:51]process_action_free close_receipt [09:44:51]json_value_free [09:44:51]json_value_free done [09:44:51]process_json_proto returns [09:44:51]Send response to host [09:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95349,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:44:51]free response buf [09:44:51]execute_script done [09:44:51]execute_script returns [09:44:51]free content buf [09:44:51]Sock 9.Close socket [09:44:51]Sock 9.Thread stoped [09:44:55]ConnectInit Can't take IP for lk.salyk.kg [09:44:55]CommunicateWithHost connect error [09:44:55]CommunicateWithHost err = -1 [09:44:55]OFD Sender: Server communicate error [09:45:00]OFD Sender: Processing packet 95349 [packets to send 30, broken 29] [09:45:00]ProducePacketName [09:45:00]name=ofd_packets/00095349 [09:45:00]OFD Sender: To server: pG, [09:45:00]CommunicateWithHost lk.salyk.kg:30040 [09:45:00]ConnectInit lk.salyk.kg [09:45:05]ConnectInit Can't take IP for lk.salyk.kg [09:45:05]CommunicateWithHost connect error [09:45:05]CommunicateWithHost err = -1 [09:45:05]OFD Sender: Server communicate error [09:45:10]OFD Sender: Processing packet 95349 [packets to send 30, broken 29] [09:45:10]ProducePacketName [09:45:10]name=ofd_packets/00095349 [09:45:10]OFD Sender: To server: pG, [09:45:10]CommunicateWithHost lk.salyk.kg:30040 [09:45:10]ConnectInit lk.salyk.kg [09:45:15]ConnectInit Can't take IP for lk.salyk.kg [09:45:15]CommunicateWithHost connect error [09:45:15]CommunicateWithHost err = -1 [09:45:15]OFD Sender: Server communicate error [09:45:20]OFD Sender: Processing packet 95349 [packets to send 30, broken 29] [09:45:20]ProducePacketName [09:45:20]name=ofd_packets/00095349 [09:45:20]OFD Sender: To server: pG, [09:45:20]CommunicateWithHost lk.salyk.kg:30040 [09:45:20]ConnectInit lk.salyk.kg [09:45:25]ConnectInit Can't take IP for lk.salyk.kg [09:45:25]CommunicateWithHost connect error [09:45:25]CommunicateWithHost err = -1 [09:45:25]OFD Sender: Server communicate error [09:45:30]OFD Sender: Processing packet 95349 [packets to send 30, broken 29] [09:45:30]ProducePacketName [09:45:30]name=ofd_packets/00095349 [09:45:30]OFD Sender: To server: pG, [09:45:30]CommunicateWithHost lk.salyk.kg:30040 [09:45:30]ConnectInit lk.salyk.kg [09:45:35]ConnectInit Can't take IP for lk.salyk.kg [09:45:35]CommunicateWithHost connect error [09:45:35]CommunicateWithHost err = -1 [09:45:35]OFD Sender: Server communicate error [09:45:40]OFD Sender: Processing packet 95349 [packets to send 30, broken 29] [09:45:40]ProducePacketName [09:45:40]name=ofd_packets/00095349 [09:45:40]OFD Sender: To server: pG, [09:45:40]CommunicateWithHost lk.salyk.kg:30040 [09:45:40]ConnectInit lk.salyk.kg [09:45:45]Connected sock=9 [09:45:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 95 7B 07 01 08 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2C 00 00 00 F4 03 04 00 9A 75 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 74 01 00 35 04 06 00 01 FA 26 C1 A2 52 4D 3D AF F4 A6 56 69 07 [09:45:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B5 FD 47 00 5C F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 75 74 01 00 F4 03 04 00 24 21 F1 65 B6 04 01 00 00 09 D4 F8 E1 25 4C 9D E6 [09:45:45]CommunicateWithHost err = 0 [09:45:45]CheckOFDResponse [09:45:45]1017 (14) - 77093643461234 [09:45:45]1041 (16) - 0000000000874811 [09:45:45]1040 (4) - 95349 [09:45:45]1012 (4) - 13.03.2024 03:44 [09:45:45]1206 (1) - 0 [09:45:45]OFD Sender: Remove packet 95349 [09:45:45]ProducePacketName [09:45:45]name=ofd_packets/00095349 [09:45:45]NVStorageDeleteData [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:06]ConnectInit Can't connect to host [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:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:29]ConnectInit Can't connect to host [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:37]accept exits with 10 [09:51:37]New connection [09:51:37]New thread 3066813796 created [09:51:37]Thread 3066957156 joined [09:51:37]Waiting for new connection... [09:51:37] Sock 10.Parse request [09:51:37]Sock 10.Check first char [09:51:37]Sock 10.First char is OK [09:51:37]request: POST /json_proto HTTP/1.0 [09:51:37]Method: POST [09:51:37]URL: /json_proto [09:51:37]Method is POST - this is cgi request [09:51:37]url: /json_proto [09:51:37]query_string will be loaded in cgi processing [09:51:37]execute_cgi json_proto POST (null) [09:51:37]execute_cgi path=json_proto method=POST [09:51:37]POST find Content-Length [09:51:37]Host: 172.17.62.67:8080 [09:51:37]Content-Length: 682 [09:51:37]Content-Type: application/json [09:51:37] [09:51:37]POST finish read [09:51:37]Found Content-Length = 682 [09:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196334", "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" : 62.90, "quantity" : 19.080, "sum" : 1200.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:37]execute_script... [09:51:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196334", "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" : 62.90, "quantity" : 19.080, "sum" : 1200.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:37]POST & json_proto [09:51:37]process_json_proto [09:51:37]json parsed OK: [09:51:37]protocol is kg_v1.0 [09:51:37]action value=close_receipt [09:51:37]process_action close_receipt [09:51:37]cmd_close_receipt [09:51:37]MH_GetDate [09:51:37]Write to MH i2c: F0 00 00 2E 6A 87 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: F0 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: F0 05 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: F0 05 00 2E 6A 00 33 77 F1 65 8C [09:51:37]GetLastDocTimeStamp 1710323098 [09:51:37]current date 1710323507 [09:51:37]FM_GetShiftState [09:51:37]SAM_PROTO_GetShiftState [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 13 01 00 [09:51:37]Write to MH i2c: E2 08 00 2F 6A 80 13 01 00 00 00 00 00 16 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0E 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0E 00 2F 6A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 FB [09:51:37]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_GetShiftState done [09:51:37]FM_GetShiftState done [09:51:37]opened in 1710288279 [09:51:37]opened+sec_in_day 1710374679 [09:51:37]quantity*price = 120013 [09:51:37]sum+1 = 120014 [09:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 45 13.03.2024 09:51 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95350 ФПД: 21905693392632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T095147&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95350&fm=21905693392632&tin=02508201610067®Number=0000000000090555&sum=120000 [09:51:38]StoreToDocumentArchive [09:51:38]shift 328 fd 95350 [09:51:38]save to /storage/0328/doc_00095350 [09:51:38]save last doc name /storage/0328/doc_00095350 to /storage/kkm_last_doc_name [09:51:38]save OK [09:51:38]Clear old archive folders... [09:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:38]tlvbuf is 01B3CF30 [09:51:38]SAM_PROTO_ClearQueue [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 09 00 00 [09:51:38]Write to MH i2c: E2 08 00 3C 6A 80 09 00 00 00 00 00 00 18 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 3C 6A 00 90 00 1A [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_ClearQueue done [09:51:38]KKMCreateOFDPacket [09:51:38]OFDProtocolAddRootSTLVToBuf [09:51:38]FM_MakeSignedData [09:51:38]FM_MakeSignedData [09:51:38]SAM_PROTO_SignData [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 01 02 [09:51:38]Write to MH i2c: E2 08 00 3D 6A 80 0D 01 02 00 00 00 00 20 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 3D 6A 00 90 00 1B [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]wFMCommunicate request_size=255 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 4A 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CD D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 33 77 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 74 01 00 35 04 06 00 13 [09:51:38]Write to MH i2c: E2 02 01 3E 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 4A 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CD D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 33 77 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 74 01 00 35 04 06 00 13 00 00 06 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 3E 6A 00 90 00 1C [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]wFMCommunicate request_size=10 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 02 02 05 EC 51 12 BE F8 [09:51:38]Write to MH i2c: E2 0D 00 3F 6A 80 0D 02 02 05 00 EC 51 12 BE F8 00 00 32 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 03 00 3F 6A 00 90 00 1D [09:51:38]RAPDU: 90 00 [09:51:38]wFMCommunicate OK [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 0D 03 02 [09:51:38]Write to MH i2c: E2 08 00 40 6A 80 0D 03 02 00 00 00 00 25 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 0B 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 0B 00 40 6A 00 AB 57 FA 65 3C E4 86 25 90 00 52 [09:51:38]RAPDU: AB 57 FA 65 3C E4 86 25 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_SignData done [09:51:38]FM_MakeSignedData done [09:51:38]CreateOFDProtocolMessage [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 11 00 00 [09:51:38]Write to MH i2c: E2 08 00 41 6A 80 11 00 00 00 00 00 00 25 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 17 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 17 00 41 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [09:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:51:38]wFMCommunicate OK [09:51:38]CreateOFDProtocolMessage done [09:51:38]OFDSenderStorePacket 95350 [09:51:38]StoreOFDPacket docnum=95350 [09:51:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 13 4F 07 01 AF 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 4A 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CD D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 33 77 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 74 01 00 35 04 06 00 13 EC 51 12 BE F8 AB 57 FA 65 3C E4 86 25 [09:51:38]CheckFolder [09:51:38]dirname=/storage/ofd_packets [09:51:38]CheckFolder done [09:51:38]ProducePacketName [09:51:38]name=ofd_packets/00095350 [09:51:38]NVStorageSaveData ofd_packets/00095350 [09:51:38]File name is /storage/ofd_packets/00095350 [09:51:38]Write 301 bytes [09:51:38]NVStorageSaveData done [09:51:38]OFDSenderStorePacket done [09:51:38]KKMCreateOFDPacket done [09:51:38]NVStorageSaveData kkm_last_timestamp [09:51:38]File name is /storage/kkm_last_timestamp [09:51:38]Write 4 bytes [09:51:38]NVStorageSaveData done [09:51:38]ExternCall_PrintAddStr [09:51:38]wPrintStart [09:51:38]Write to MH i2c: 01 00 00 42 6A AC [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 42 6A 00 80 00 00 00 FF 0F 41 [09:51:38]RasterBufferAndPrint [09:51:38]line Счет N : (1)196334 [09:51:38]line ИНН: 02508201610067 [09:51:38]line Контрольно-Кассовый Чек [09:51:38]line ПРОДАЖА [09:51:38]line ТРК (МРК, ГНК) : 32 [09:51:38]line Товар: 2710124130 [09:51:38]line Аи-92-К-5 [09:51:38]line 19.080 * 62.90 [09:51:38]line = 1200.13 [09:51:38]line НДС 12% НСП 1% [09:51:38]line > о реализуемом товаре [09:51:38]line ОКРУГЛЕНИЕ: -0.13 [09:51:38]line ИТОГО: 1200.00 [09:51:38]line Внесено: 1200.00 [09:51:38]line СДАЧА: 0.00 [09:51:38]line НСП 1% : 10.62 [09:51:38]line НДС 12% : 127.45 [09:51:38]line Наличными: 1200.00 [09:51:38]line Безнал.: 0.00 [09:51:38]line Место: АЗС № 6 "Партнер Нефть" [09:51:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:51:38]line СНО: Общий режим [09:51:38]line Чек 45 13.03.2024 09:51 [09:51:38]line Смена: 328 ФФД: 1.0 [09:51:38]line ЗНМ: 0300000009 [09:51:38]line РНМ: 0000000000090555 [09:51:38]line Версия ККМ: 001 [09:51:38]line ФМ: 0000000000874811 [09:51:38]line ФД: 95350 [09:51:38]line ФПД: 21905693392632 [09:51:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T095147&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95350&fm=21905693392632&tin=02508201610067®Number=0000000000090555&sum=120000 [09:51:39]written 0, free lines is 4095 [09:51:39]OFD Sender: Processing packet 95350 [packets to send 30, broken 29] [09:51:39]ProducePacketName [09:51:39]name=ofd_packets/00095350 [09:51:39]OFD Sender: To server: pG, [09:51:39]CommunicateWithHost lk.salyk.kg:30040 [09:51:39]ConnectInit lk.salyk.kg [09:51:39]Connected sock=9 [09:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 13 4F 07 01 AF 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 4A 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 CD D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 33 77 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 74 01 00 35 04 06 00 13 EC 51 12 BE F8 AB 57 FA 65 3C E4 86 25 [09:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C0 42 47 00 1F BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 76 74 01 00 F4 03 04 00 86 22 F1 65 B6 04 01 00 00 64 E7 50 35 44 02 5F FA [09:51:39]CommunicateWithHost err = 0 [09:51:39]CheckOFDResponse [09:51:39]1017 (14) - 77093643461234 [09:51:39]1041 (16) - 0000000000874811 [09:51:39]1040 (4) - 95350 [09:51:39]1012 (4) - 13.03.2024 03:50 [09:51:39]1206 (1) - 0 [09:51:39]OFD Sender: Remove packet 95350 [09:51:39]ProducePacketName [09:51:39]name=ofd_packets/00095350 [09:51:39]NVStorageDeleteData [09:51:39]Write to MH i2c: 01 00 00 6D 6A D7 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 6D 6A 00 80 00 00 00 4F 0D BA [09:51:39]RasterBufferAndPrint [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]written 0, free lines is 3411 [09:51:39]process_action close_receipt done [09:51:39]requested_data is exist [09:51:39]produce_requested_data [09:51:39]requested_item fm.sn is exist - process it [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 11 00 00 [09:51:39]Write to MH i2c: E2 08 00 74 6A 80 11 00 00 00 00 00 00 58 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 74 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A8 [09:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:51:39]wFMCommunicate OK [09:51:39]requested_item fd.num is exist - process it [09:51:39]SAM_PROTO_GetFieldsCounters [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 00 00 [09:51:39]Write to MH i2c: E2 08 00 75 6A 80 13 00 00 00 00 00 00 5B [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 62 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 62 00 75 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 74 01 00 0E 04 04 00 48 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 33 [09:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 76 74 01 00 0E 04 04 00 48 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 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_GetFieldsCounters done [09:51:39]requested_item shift.num is exist - process it [09:51:39]requested_item shift.opened is exist - process it [09:51:39]req_shift_opened [09:51:39]FM_GetShiftState [09:51:39]SAM_PROTO_GetShiftState [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 01 00 [09:51:39]Write to MH i2c: E2 08 00 76 6A 80 13 01 00 00 00 00 00 5D [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 0E 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 0E 00 76 6A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 42 [09:51:40]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:51:40]wFMCommunicate OK [09:51:40]SAM_PROTO_GetShiftState done [09:51:40]FM_GetShiftState done [09:51:40]req_shift_opened done [09:51:40]requested_item shift.open_date is exist - process it [09:51:40]req_shift_open_date [09:51:40]req_shift_open_date done [09:51:40]produce_requested_data done [09:51:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95350,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:51:40]process_action_free close_receipt [09:51:40]json_value_free [09:51:40]json_value_free done [09:51:40]process_json_proto returns [09:51:40]Send response to host [09:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95350,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:51:40]free response buf [09:51:40]execute_script done [09:51:40]execute_script returns [09:51:40]free content buf [09:51:40]Sock 10.Close socket [09:51:40]Sock 10.Thread stoped [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:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:16]accept exits with 8 [09:56:16]New connection [09:56:16]New thread 3066957156 created [09:56:16]Thread 3066813796 joined [09:56:16]Waiting for new connection... [09:56:16] Sock 8.Parse request [09:56:16]Sock 8.Check first char [09:56:16]Sock 8.First char is OK [09:56:16]request: POST /json_proto HTTP/1.0 [09:56:16]Method: POST [09:56:16]URL: /json_proto [09:56:16]Method is POST - this is cgi request [09:56:16]url: /json_proto [09:56:16]query_string will be loaded in cgi processing [09:56:16]execute_cgi json_proto POST (null) [09:56:16]execute_cgi path=json_proto method=POST [09:56:16]POST find Content-Length [09:56:16]Host: 172.17.62.67:8080 [09:56:16]Content-Length: 675 [09:56:16]Content-Type: application/json [09:56:16] [09:56:16]POST finish read [09:56:16]Found Content-Length = 675 [09:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196335", "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" : 70.90, "quantity" : 11.290, "sum" : 800.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:16]execute_script... [09:56:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196335", "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" : 70.90, "quantity" : 11.290, "sum" : 800.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:16]POST & json_proto [09:56:16]process_json_proto [09:56:16]json parsed OK: [09:56:16]protocol is kg_v1.0 [09:56:16]action value=close_receipt [09:56:16]process_action close_receipt [09:56:16]cmd_close_receipt [09:56:16]MH_GetDate [09:56:16]Write to MH i2c: F0 00 00 77 6A D0 [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: F0 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: F0 05 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: F0 05 00 77 6A 00 4A 78 F1 65 ED [09:56:16]GetLastDocTimeStamp 1710323507 [09:56:16]current date 1710323786 [09:56:16]FM_GetShiftState [09:56:16]SAM_PROTO_GetShiftState [09:56:16]wFMCommunicate request_size=4 [09:56:16]MH_SAM_APDU [09:56:16]CAPDU: 80 13 01 00 [09:56:16]Write to MH i2c: E2 08 00 78 6A 80 13 01 00 00 00 00 00 5F [09:56:16]Write i2c OK [09:56:16]MH_I2C_Read... [09:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:16]Read from MH i2c: E2 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 0E 00 [09:56:16]MH_I2C_Read... [09:56:16]Read from MH i2c: E2 0E 00 78 6A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 44 [09:56:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:56:16]wFMCommunicate OK [09:56:16]SAM_PROTO_GetShiftState done [09:56:16]FM_GetShiftState done [09:56:16]opened in 1710288279 [09:56:16]opened+sec_in_day 1710374679 [09:56:16]quantity*price = 80046 [09:56:16]sum+1 = 80047 [09:56:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 46 13.03.2024 09:56 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95351 ФПД: 131796252951424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T095626&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95351&fm=131796252951424&tin=02508201610067®Number=0000000000090555&sum=80000 [09:56:17]StoreToDocumentArchive [09:56:17]shift 328 fd 95351 [09:56:17]save to /storage/0328/doc_00095351 [09:56:17]save last doc name /storage/0328/doc_00095351 to /storage/kkm_last_doc_name [09:56:17]save OK [09:56:17]Clear old archive folders... [09:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:17]tlvbuf is 01BA9940 [09:56:17]SAM_PROTO_ClearQueue [09:56:17]wFMCommunicate request_size=4 [09:56:17]MH_SAM_APDU [09:56:17]CAPDU: 80 09 00 00 [09:56:17]Write to MH i2c: E2 08 00 85 6A 80 09 00 00 00 00 00 00 61 [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:17]Read from MH i2c: E2 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 03 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 03 00 85 6A 00 90 00 63 [09:56:17]RAPDU: 90 00 [09:56:17]wFMCommunicate OK [09:56:17]SAM_PROTO_ClearQueue done [09:56:17]KKMCreateOFDPacket [09:56:17]OFDProtocolAddRootSTLVToBuf [09:56:17]FM_MakeSignedData [09:56:17]FM_MakeSignedData [09:56:17]SAM_PROTO_SignData [09:56:17]wFMCommunicate request_size=4 [09:56:17]MH_SAM_APDU [09:56:17]CAPDU: 80 0D 01 02 [09:56:17]Write to MH i2c: E2 08 00 86 6A 80 0D 01 02 00 00 00 00 69 [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:17]Read from MH i2c: E2 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 03 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 03 00 86 6A 00 90 00 64 [09:56:17]RAPDU: 90 00 [09:56:17]wFMCommunicate OK [09:56:17]wFMCommunicate request_size=255 [09:56:17]MH_SAM_APDU [09:56:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4A 78 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 74 01 00 35 04 06 00 77 DE 34 D7 [09:56:17]Write to MH i2c: E2 02 01 87 6A 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 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4A 78 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 74 01 00 35 04 06 00 77 DE 34 D7 00 00 24 [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:17]Read from MH i2c: E2 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 03 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 03 00 87 6A 00 90 00 65 [09:56:17]RAPDU: 90 00 [09:56:17]wFMCommunicate OK [09:56:17]wFMCommunicate request_size=7 [09:56:17]MH_SAM_APDU [09:56:17]CAPDU: 80 0D 02 02 02 03 80 [09:56:17]Write to MH i2c: E2 0A 00 88 6A 80 0D 02 02 02 00 03 80 00 00 F3 [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:17]Read from MH i2c: E2 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 03 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 03 00 88 6A 00 90 00 66 [09:56:17]RAPDU: 90 00 [09:56:17]wFMCommunicate OK [09:56:17]wFMCommunicate request_size=4 [09:56:17]MH_SAM_APDU [09:56:17]CAPDU: 80 0D 03 02 [09:56:17]Write to MH i2c: E2 08 00 89 6A 80 0D 03 02 00 00 00 00 6E [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:17]Read from MH i2c: E2 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 0B 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 0B 00 89 6A 00 7C 18 7B 2B F5 A6 3D 71 90 00 F2 [09:56:17]RAPDU: 7C 18 7B 2B F5 A6 3D 71 90 00 [09:56:17]wFMCommunicate OK [09:56:17]SAM_PROTO_SignData done [09:56:17]FM_MakeSignedData done [09:56:17]CreateOFDProtocolMessage [09:56:17]wFMCommunicate request_size=4 [09:56:17]MH_SAM_APDU [09:56:17]CAPDU: 80 11 00 00 [09:56:17]Write to MH i2c: E2 08 00 8A 6A 80 11 00 00 00 00 00 00 6E [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:17]Read from MH i2c: E2 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 17 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: E2 17 00 8A 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [09:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:56:17]wFMCommunicate OK [09:56:17]CreateOFDProtocolMessage done [09:56:17]OFDSenderStorePacket 95351 [09:56:17]StoreOFDPacket docnum=95351 [09:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 AA F0 04 01 4C 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4A 78 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 74 01 00 35 04 06 00 77 DE 34 D7 03 80 7C 18 7B 2B F5 A6 3D 71 [09:56:17]CheckFolder [09:56:17]dirname=/storage/ofd_packets [09:56:17]CheckFolder done [09:56:17]ProducePacketName [09:56:17]name=ofd_packets/00095351 [09:56:17]NVStorageSaveData ofd_packets/00095351 [09:56:17]File name is /storage/ofd_packets/00095351 [09:56:17]Write 298 bytes [09:56:17]NVStorageSaveData done [09:56:17]OFDSenderStorePacket done [09:56:17]KKMCreateOFDPacket done [09:56:17]NVStorageSaveData kkm_last_timestamp [09:56:17]File name is /storage/kkm_last_timestamp [09:56:17]Write 4 bytes [09:56:17]NVStorageSaveData done [09:56:17]ExternCall_PrintAddStr [09:56:17]wPrintStart [09:56:17]Write to MH i2c: 01 00 00 8B 6A F5 [09:56:17]Write i2c OK [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: 01 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: 01 07 00 [09:56:17]MH_I2C_Read... [09:56:17]Read from MH i2c: 01 07 00 8B 6A 00 80 00 00 00 FF 0F 8A [09:56:17]RasterBufferAndPrint [09:56:17]line Счет N : (1)196335 [09:56:17]line ИНН: 02508201610067 [09:56:17]line Контрольно-Кассовый Чек [09:56:17]line ПРОДАЖА [09:56:17]line ТРК (МРК, ГНК) : 51 [09:56:17]line Товар: 2710194210 [09:56:17]line ДТ-К-5 [09:56:17]line 11.290 * 70.90 [09:56:17]line = 800.46 [09:56:17]line НДС 12% НСП 1% [09:56:17]line > о реализуемом товаре [09:56:17]line ОКРУГЛЕНИЕ: -0.46 [09:56:17]line ИТОГО: 800.00 [09:56:17]line Внесено: 800.00 [09:56:17]line СДАЧА: 0.00 [09:56:17]line НСП 1% : 7.08 [09:56:17]line НДС 12% : 85.00 [09:56:17]line Наличными: 800.00 [09:56:17]line Безнал.: 0.00 [09:56:17]line Место: АЗС № 6 "Партнер Нефть" [09:56:17]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [09:56:17]line СНО: Общий режим [09:56:17]line Чек 46 13.03.2024 09:56 [09:56:17]line Смена: 328 ФФД: 1.0 [09:56:17]line ЗНМ: 0300000009 [09:56:18]line РНМ: 0000000000090555 [09:56:18]line Версия ККМ: 001 [09:56:18]line ФМ: 0000000000874811 [09:56:18]line ФД: 95351 [09:56:18]line ФПД: 131796252951424 [09:56:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T095626&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95351&fm=131796252951424&tin=02508201610067®Number=0000000000090555&sum=80000 [09:56:18]OFD Sender: Processing packet 95351 [packets to send 30, broken 29] [09:56:18]ProducePacketName [09:56:18]name=ofd_packets/00095351 [09:56:18]OFD Sender: To server: pG, [09:56:18]CommunicateWithHost lk.salyk.kg:30040 [09:56:18]ConnectInit lk.salyk.kg [09:56:18]written 0, free lines is 4095 [09:56:18]Connected sock=10 [09:56:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 AA F0 04 01 4C 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 AE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 4A 78 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 77 74 01 00 35 04 06 00 77 DE 34 D7 03 80 7C 18 7B 2B F5 A6 3D 71 [09:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 FA C6 47 00 D4 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 34 38 31 31 10 04 04 00 77 74 01 00 F4 03 04 00 9D 23 F1 65 B6 04 01 00 00 2A 28 87 77 70 A7 53 65 [09:56:18]CommunicateWithHost err = 0 [09:56:18]CheckOFDResponse [09:56:18]1017 (14) - 77093643461234 [09:56:18]1041 (16) - 0000000000874811 [09:56:18]1040 (4) - 95351 [09:56:18]1012 (4) - 13.03.2024 03:55 [09:56:18]1206 (1) - 0 [09:56:18]OFD Sender: Remove packet 95351 [09:56:18]ProducePacketName [09:56:18]name=ofd_packets/00095351 [09:56:18]NVStorageDeleteData [09:56:18]Write to MH i2c: 01 00 00 B6 6A 20 [09:56:18]Write i2c OK [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: 01 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: 01 07 00 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: 01 07 00 B6 6A 00 80 00 00 00 46 0D FA [09:56:18]RasterBufferAndPrint [09:56:18]line [09:56:18]line [09:56:18]line [09:56:18]line [09:56:18]line [09:56:18]written 0, free lines is 3404 [09:56:18]process_action close_receipt done [09:56:18]requested_data is exist [09:56:18]produce_requested_data [09:56:18]requested_item fm.sn is exist - process it [09:56:18]wFMCommunicate request_size=4 [09:56:18]MH_SAM_APDU [09:56:18]CAPDU: 80 11 00 00 [09:56:18]Write to MH i2c: E2 08 00 BD 6A 80 11 00 00 00 00 00 00 A1 [09:56:18]Write i2c OK [09:56:18]MH_I2C_Read... [09:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:18]Read from MH i2c: E2 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: E2 17 00 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: E2 17 00 BD 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F1 [09:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [09:56:18]wFMCommunicate OK [09:56:18]requested_item fd.num is exist - process it [09:56:18]SAM_PROTO_GetFieldsCounters [09:56:18]wFMCommunicate request_size=4 [09:56:18]MH_SAM_APDU [09:56:18]CAPDU: 80 13 00 00 [09:56:18]Write to MH i2c: E2 08 00 BE 6A 80 13 00 00 00 00 00 00 A4 [09:56:18]Write i2c OK [09:56:18]MH_I2C_Read... [09:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:18]Read from MH i2c: E2 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: E2 62 00 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: E2 62 00 BE 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 77 74 01 00 0E 04 04 00 48 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 80 [09:56:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 77 74 01 00 0E 04 04 00 48 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 [09:56:18]wFMCommunicate OK [09:56:18]SAM_PROTO_GetFieldsCounters done [09:56:18]requested_item shift.num is exist - process it [09:56:18]requested_item shift.opened is exist - process it [09:56:18]req_shift_opened [09:56:18]FM_GetShiftState [09:56:18]SAM_PROTO_GetShiftState [09:56:18]wFMCommunicate request_size=4 [09:56:18]MH_SAM_APDU [09:56:18]CAPDU: 80 13 01 00 [09:56:18]Write to MH i2c: E2 08 00 BF 6A 80 13 01 00 00 00 00 00 A6 [09:56:18]Write i2c OK [09:56:18]MH_I2C_Read... [09:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:18]Read from MH i2c: E2 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: E2 0E 00 [09:56:18]MH_I2C_Read... [09:56:18]Read from MH i2c: E2 0E 00 BF 6A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 8B [09:56:18]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [09:56:18]wFMCommunicate OK [09:56:18]SAM_PROTO_GetShiftState done [09:56:18]FM_GetShiftState done [09:56:18]req_shift_opened done [09:56:18]requested_item shift.open_date is exist - process it [09:56:18]req_shift_open_date [09:56:18]req_shift_open_date done [09:56:18]produce_requested_data done [09:56:18]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95351,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [09:56:18]process_action_free close_receipt [09:56:18]json_value_free [09:56:18]json_value_free done [09:56:18]process_json_proto returns [09:56:18]Send response to host [09:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95351,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [09:56:18]free response buf [09:56:18]execute_script done [09:56:18]execute_script returns [09:56:18]free content buf [09:56:18]Sock 8.Close socket [09:56:18]Sock 8.Thread stoped [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:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:29]accept exits with 9 [10:00:29]New connection [10:00:29]New thread 3066813796 created [10:00:29]Thread 3066957156 joined [10:00:29]Waiting for new connection... [10:00:29] Sock 9.Parse request [10:00:29]Sock 9.Check first char [10:00:29]Sock 9.First char is OK [10:00:29]request: POST /json_proto HTTP/1.0 [10:00:29]Method: POST [10:00:29]URL: /json_proto [10:00:29]Method is POST - this is cgi request [10:00:29]url: /json_proto [10:00:29]query_string will be loaded in cgi processing [10:00:29]execute_cgi json_proto POST (null) [10:00:29]execute_cgi path=json_proto method=POST [10:00:29]POST find Content-Length [10:00:29]Host: 172.17.62.67:8080 [10:00:29]Content-Length: 661 [10:00:29]Content-Type: application/json [10:00:29] [10:00:29]POST finish read [10:00:29]Found Content-Length = 661 [10:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196337", "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" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:29]execute_script... [10:00:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196337", "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" : 62.90, "quantity" : 10.000, "sum" : 629.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:29]POST & json_proto [10:00:29]process_json_proto [10:00:29]json parsed OK: [10:00:29]protocol is kg_v1.0 [10:00:29]action value=close_receipt [10:00:29]process_action close_receipt [10:00:29]cmd_close_receipt [10:00:29]MH_GetDate [10:00:29]Write to MH i2c: F0 00 00 C0 6A 19 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: F0 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: F0 05 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: F0 05 00 C0 6A 00 47 79 F1 65 34 [10:00:29]GetLastDocTimeStamp 1710323786 [10:00:29]current date 1710324039 [10:00:29]FM_GetShiftState [10:00:29]SAM_PROTO_GetShiftState [10:00:29]wFMCommunicate request_size=4 [10:00:29]MH_SAM_APDU [10:00:29]CAPDU: 80 13 01 00 [10:00:29]Write to MH i2c: E2 08 00 C1 6A 80 13 01 00 00 00 00 00 A8 [10:00:29]Write i2c OK [10:00:29]MH_I2C_Read... [10:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:29]Read from MH i2c: E2 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 0E 00 [10:00:29]MH_I2C_Read... [10:00:29]Read from MH i2c: E2 0E 00 C1 6A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 8D [10:00:29]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:00:29]wFMCommunicate OK [10:00:29]SAM_PROTO_GetShiftState done [10:00:29]FM_GetShiftState done [10:00:29]opened in 1710288279 [10:00:29]opened+sec_in_day 1710374679 [10:00:29]quantity*price = 62900 [10:00:29]sum+1 = 62901 [10:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 Внесено: 1000.00 СДАЧА: 371.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 629.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 47 13.03.2024 10:00 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95352 ФПД: 206579049493991 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100039&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95352&fm=206579049493991&tin=02508201610067®Number=0000000000090555&sum=62900 [10:00:30]StoreToDocumentArchive [10:00:30]shift 328 fd 95352 [10:00:30]save to /storage/0328/doc_00095352 [10:00:30]save last doc name /storage/0328/doc_00095352 to /storage/kkm_last_doc_name [10:00:30]save OK [10:00:30]Clear old archive folders... [10:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:30]tlvbuf is 01A5F990 [10:00:30]SAM_PROTO_ClearQueue [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 09 00 00 [10:00:30]Write to MH i2c: E2 08 00 CE 6A 80 09 00 00 00 00 00 00 AA [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 CE 6A 00 90 00 AC [10:00:30]RAPDU: 90 00 [10:00:30]wFMCommunicate OK [10:00:30]SAM_PROTO_ClearQueue done [10:00:30]KKMCreateOFDPacket [10:00:30]OFDProtocolAddRootSTLVToBuf [10:00:30]FM_MakeSignedData [10:00:30]FM_MakeSignedData [10:00:30]SAM_PROTO_SignData [10:00:30]wFMCommunicate request_size=4 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 0D 01 02 [10:00:30]Write to MH i2c: E2 08 00 CF 6A 80 0D 01 02 00 00 00 00 B2 [10:00:30]Write i2c OK [10:00:30]MH_I2C_Read... [10:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:30]Read from MH i2c: E2 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 [10:00:30]MH_I2C_Read... [10:00:30]Read from MH i2c: E2 03 00 CF 6A 00 90 00 AD [10:00:30]RAPDU: 90 00 [10:00:30]wFMCommunicate OK [10:00:30]wFMCommunicate request_size=255 [10:00:30]MH_SAM_APDU [10:00:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 47 79 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 74 01 00 35 04 06 00 BB [10:00:30]Write to MH i2c: E2 02 01 D0 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 47 79 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 74 01 00 35 04 06 00 BB 00 00 2B [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 03 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 03 00 D0 6A 00 90 00 AE [10:00:31]RAPDU: 90 00 [10:00:31]wFMCommunicate OK [10:00:31]wFMCommunicate request_size=10 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 0D 02 02 05 E1 EE DC F5 E7 [10:00:31]Write to MH i2c: E2 0D 00 D1 6A 80 0D 02 02 05 00 E1 EE DC F5 E7 00 00 46 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 03 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 03 00 D1 6A 00 90 00 AF [10:00:31]RAPDU: 90 00 [10:00:31]wFMCommunicate OK [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 0D 03 02 [10:00:31]Write to MH i2c: E2 08 00 D2 6A 80 0D 03 02 00 00 00 00 B7 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0B 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 0B 00 D2 6A 00 DC 01 31 57 1E 1C B0 2E 90 00 35 [10:00:31]RAPDU: DC 01 31 57 1E 1C B0 2E 90 00 [10:00:31]wFMCommunicate OK [10:00:31]SAM_PROTO_SignData done [10:00:31]FM_MakeSignedData done [10:00:31]CreateOFDProtocolMessage [10:00:31]wFMCommunicate request_size=4 [10:00:31]MH_SAM_APDU [10:00:31]CAPDU: 80 11 00 00 [10:00:31]Write to MH i2c: E2 08 00 D3 6A 80 11 00 00 00 00 00 00 B7 [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:31]Read from MH i2c: E2 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 17 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: E2 17 00 D3 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 07 [10:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:00:31]wFMCommunicate OK [10:00:31]CreateOFDProtocolMessage done [10:00:31]OFDSenderStorePacket 95352 [10:00:31]StoreOFDPacket docnum=95352 [10:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 75 F7 07 01 AC 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 47 79 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 74 01 00 35 04 06 00 BB E1 EE DC F5 E7 DC 01 31 57 1E 1C B0 2E [10:00:31]CheckFolder [10:00:31]dirname=/storage/ofd_packets [10:00:31]CheckFolder done [10:00:31]ProducePacketName [10:00:31]name=ofd_packets/00095352 [10:00:31]NVStorageSaveData ofd_packets/00095352 [10:00:31]File name is /storage/ofd_packets/00095352 [10:00:31]Write 301 bytes [10:00:31]NVStorageSaveData done [10:00:31]OFDSenderStorePacket done [10:00:31]KKMCreateOFDPacket done [10:00:31]NVStorageSaveData kkm_last_timestamp [10:00:31]File name is /storage/kkm_last_timestamp [10:00:31]Write 4 bytes [10:00:31]NVStorageSaveData done [10:00:31]ExternCall_PrintAddStr [10:00:31]wPrintStart [10:00:31]Write to MH i2c: 01 00 00 D4 6A 3E [10:00:31]Write i2c OK [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 07 00 [10:00:31]MH_I2C_Read... [10:00:31]Read from MH i2c: 01 07 00 D4 6A 00 80 00 00 00 FF 0F D3 [10:00:31]RasterBufferAndPrint [10:00:31]line Счет N : (1)196337 [10:00:31]line ИНН: 02508201610067 [10:00:31]line Контрольно-Кассовый Чек [10:00:31]line ПРОДАЖА [10:00:31]line ТРК (МРК, ГНК) : 12 [10:00:31]line Товар: 2710124130 [10:00:31]line Аи-92-К-5 [10:00:31]line 10.000 * 62.90 [10:00:31]line = 629.00 [10:00:31]line НДС 12% НСП 1% [10:00:31]line > о реализуемом товаре [10:00:31]line ИТОГО: 629.00 [10:00:31]line Внесено: 1000.00 [10:00:31]line СДАЧА: 371.00 [10:00:31]line НСП 1% : 5.57 [10:00:31]line НДС 12% : 66.80 [10:00:31]line Наличными: 629.00 [10:00:31]line Безнал.: 0.00 [10:00:31]line Место: АЗС № 6 "Партнер Нефть" [10:00:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:00:31]line СНО: Общий режим [10:00:31]line Чек 47 13.03.2024 10:00 [10:00:31]line Смена: 328 ФФД: 1.0 [10:00:31]line ЗНМ: 0300000009 [10:00:31]line РНМ: 0000000000090555 [10:00:31]line Версия ККМ: 001 [10:00:31]line ФМ: 0000000000874811 [10:00:31]line ФД: 95352 [10:00:31]line ФПД: 206579049493991 [10:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100039&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95352&fm=206579049493991&tin=02508201610067®Number=0000000000090555&sum=62900 [10:00:31]OFD Sender: Processing packet 95352 [packets to send 30, broken 29] [10:00:31]ProducePacketName [10:00:31]name=ofd_packets/00095352 [10:00:31]OFD Sender: To server: pG, [10:00:31]CommunicateWithHost lk.salyk.kg:30040 [10:00:31]ConnectInit lk.salyk.kg [10:00:31]written 0, free lines is 4095 [10:00:31]Connected sock=10 [10:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 75 F7 07 01 AC 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 B4 F5 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 47 79 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 74 01 00 35 04 06 00 BB E1 EE DC F5 E7 DC 01 31 57 1E 1C B0 2E [10:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 23 A4 47 00 1C A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 78 74 01 00 F4 03 04 00 9B 24 F1 65 B6 04 01 00 00 A5 CF 55 BE 54 C9 5B 96 [10:00:32]CommunicateWithHost err = 0 [10:00:32]CheckOFDResponse [10:00:32]1017 (14) - 77093643461234 [10:00:32]1041 (16) - 0000000000874811 [10:00:32]1040 (4) - 95352 [10:00:32]1012 (4) - 13.03.2024 03:59 [10:00:32]1206 (1) - 0 [10:00:32]OFD Sender: Remove packet 95352 [10:00:32]ProducePacketName [10:00:32]name=ofd_packets/00095352 [10:00:32]NVStorageDeleteData [10:00:32]Write to MH i2c: 01 00 00 FE 6A 68 [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 07 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: 01 07 00 FE 6A 00 80 00 00 00 5C 0D 58 [10:00:32]RasterBufferAndPrint [10:00:32]line [10:00:32]line [10:00:32]line [10:00:32]line [10:00:32]line [10:00:32]written 0, free lines is 3426 [10:00:32]process_action close_receipt done [10:00:32]requested_data is exist [10:00:32]produce_requested_data [10:00:32]requested_item fm.sn is exist - process it [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 11 00 00 [10:00:32]Write to MH i2c: E2 08 00 05 6B 80 11 00 00 00 00 00 00 EA [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:32]Read from MH i2c: E2 17 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 17 00 05 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3A [10:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:00:32]wFMCommunicate OK [10:00:32]requested_item fd.num is exist - process it [10:00:32]SAM_PROTO_GetFieldsCounters [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 13 00 00 [10:00:32]Write to MH i2c: E2 08 00 06 6B 80 13 00 00 00 00 00 00 ED [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 62 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 62 00 06 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 74 01 00 0E 04 04 00 48 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 CD [10:00:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 74 01 00 0E 04 04 00 48 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 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_GetFieldsCounters done [10:00:32]requested_item shift.num is exist - process it [10:00:32]requested_item shift.opened is exist - process it [10:00:32]req_shift_opened [10:00:32]FM_GetShiftState [10:00:32]SAM_PROTO_GetShiftState [10:00:32]wFMCommunicate request_size=4 [10:00:32]MH_SAM_APDU [10:00:32]CAPDU: 80 13 01 00 [10:00:32]Write to MH i2c: E2 08 00 07 6B 80 13 01 00 00 00 00 00 EF [10:00:32]Write i2c OK [10:00:32]MH_I2C_Read... [10:00:32]OFD Sender: No OFD packet to send [10:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:32]Read from MH i2c: E2 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 0E 00 [10:00:32]MH_I2C_Read... [10:00:32]Read from MH i2c: E2 0E 00 07 6B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 D4 [10:00:32]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:00:32]wFMCommunicate OK [10:00:32]SAM_PROTO_GetShiftState done [10:00:32]FM_GetShiftState done [10:00:32]req_shift_opened done [10:00:32]requested_item shift.open_date is exist - process it [10:00:32]req_shift_open_date [10:00:32]req_shift_open_date done [10:00:32]produce_requested_data done [10:00:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95352,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:00:32]process_action_free close_receipt [10:00:32]json_value_free [10:00:32]json_value_free done [10:00:32]process_json_proto returns [10:00:32]Send response to host [10:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95352,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:00:32]free response buf [10:00:32]execute_script done [10:00:32]execute_script returns [10:00:32]free content buf [10:00:32]Sock 9.Close socket [10:00:32]Sock 9.Thread stoped [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:05]accept exits with 8 [10:02:05]New connection [10:02:05]New thread 3066957156 created [10:02:05]Thread 3066813796 joined [10:02:05]Waiting for new connection... [10:02:05] Sock 8.Parse request [10:02:05]Sock 8.Check first char [10:02:05]Sock 8.First char is OK [10:02:05]request: POST /json_proto HTTP/1.0 [10:02:05]Method: POST [10:02:05]URL: /json_proto [10:02:05]Method is POST - this is cgi request [10:02:05]url: /json_proto [10:02:05]query_string will be loaded in cgi processing [10:02:05]execute_cgi json_proto POST (null) [10:02:05]execute_cgi path=json_proto method=POST [10:02:05]POST find Content-Length [10:02:05]Host: 172.17.62.67:8080 [10:02:05]Content-Length: 1199 [10:02:05]Content-Type: application/json [10:02:05] [10:02:05]POST finish read [10:02:05]Found Content-Length = 1199 [10:02:05]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196336\u000A13.03.2024 09:56\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 141.040 x 70.90\u000A\u0418\u0422\u041E\u0413: 9999.74\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\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:05]execute_script... [10:02:05]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196336\u000A13.03.2024 09:56\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 141.040 x 70.90\u000A\u0418\u0422\u041E\u0413: 9999.74\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\u000A74820\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:05]POST & json_proto [10:02:05]process_json_proto [10:02:05]json parsed OK: [10:02:05]protocol is kg_v1.0 [10:02:05]action value=print_text [10:02:05]process_action print_text [10:02:05]cmd_print_text [10:02:05]ExternCall_PrintAddStr [10:02:05]wPrintStart [10:02:05]Write to MH i2c: 01 00 00 08 6B 73 [10:02:05]Write i2c OK [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 07 00 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 07 00 08 6B 00 80 00 00 00 FF 0F 08 [10:02:05]RasterBufferAndPrint [10:02:05]line *****ТОВАРНЫЙ ЧЕК***** [10:02:05]line АЗС 6 [10:02:05]line Партнер нефть [10:02:05]line 02508201610067 [10:02:05]line Кассир : Сабырбек у. М. [10:02:05]line Счет N : (1)196336 [10:02:05]line 13.03.2024 09:56 [10:02:05]line ПРОДАЖА [10:02:05]line ТРК (МРК, ГНК): 51 [10:02:05]line Вид ГСМ : 2710194210 [10:02:05]line ДТ-К-5 [10:02:05]line 141.040 x 70.90 [10:02:05]line ИТОГ: 9999.74 [10:02:05]line Тип оплаты: Талоны: Топливная Карта [10:02:05]line 74820 [10:02:05]line ______________________ [10:02:05]line (подпись) [10:02:05]written 0, free lines is 4095 [10:02:05]Write to MH i2c: 01 00 00 1C 6B 87 [10:02:05]Write i2c OK [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 07 00 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: 01 07 00 1C 6B 00 80 00 00 00 65 0E 81 [10:02:05]RasterBufferAndPrint [10:02:05]line [10:02:05]line [10:02:05]line [10:02:05]line [10:02:05]line [10:02:05]written 0, free lines is 3689 [10:02:05]process_action print_text done [10:02:05]requested_data is exist [10:02:05]produce_requested_data [10:02:05]requested_item fm.sn is exist - process it [10:02:05]wFMCommunicate request_size=4 [10:02:05]MH_SAM_APDU [10:02:05]CAPDU: 80 11 00 00 [10:02:05]Write to MH i2c: E2 08 00 23 6B 80 11 00 00 00 00 00 00 08 [10:02:05]Write i2c OK [10:02:05]MH_I2C_Read... [10:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:05]Read from MH i2c: E2 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: E2 17 00 [10:02:05]MH_I2C_Read... [10:02:05]Read from MH i2c: E2 17 00 23 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 58 [10:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:02:05]wFMCommunicate OK [10:02:05]requested_item fd.num is exist - process it [10:02:05]SAM_PROTO_GetFieldsCounters [10:02:05]wFMCommunicate request_size=4 [10:02:05]MH_SAM_APDU [10:02:05]CAPDU: 80 13 00 00 [10:02:05]Write to MH i2c: E2 08 00 24 6B 80 13 00 00 00 00 00 00 0B [10:02:05]Write i2c OK [10:02:05]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 62 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 62 00 24 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 74 01 00 0E 04 04 00 48 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 EB [10:02: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 74 01 00 0E 04 04 00 48 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 [10:02:06]wFMCommunicate OK [10:02:06]SAM_PROTO_GetFieldsCounters done [10:02:06]requested_item shift.num is exist - process it [10:02:06]requested_item shift.opened is exist - process it [10:02:06]req_shift_opened [10:02:06]FM_GetShiftState [10:02:06]SAM_PROTO_GetShiftState [10:02:06]wFMCommunicate request_size=4 [10:02:06]MH_SAM_APDU [10:02:06]CAPDU: 80 13 01 00 [10:02:06]Write to MH i2c: E2 08 00 25 6B 80 13 01 00 00 00 00 00 0D [10:02:06]Write i2c OK [10:02:06]MH_I2C_Read... [10:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:06]Read from MH i2c: E2 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 0E 00 [10:02:06]MH_I2C_Read... [10:02:06]Read from MH i2c: E2 0E 00 25 6B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F2 [10:02:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:02:06]wFMCommunicate OK [10:02:06]SAM_PROTO_GetShiftState done [10:02:06]FM_GetShiftState done [10:02:06]req_shift_opened done [10:02:06]requested_item shift.open_date is exist - process it [10:02:06]req_shift_open_date [10:02:06]req_shift_open_date done [10:02:06]produce_requested_data done [10:02:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95352,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:02:06]process_action_free print_text [10:02:06]json_value_free [10:02:06]json_value_free done [10:02:06]process_json_proto returns [10:02:06]Send response to host [10:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95352,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:02:06]free response buf [10:02:06]execute_script done [10:02:06]execute_script returns [10:02:06]free content buf [10:02:06]Sock 8.Close socket [10:02:06]Sock 8.Thread stoped [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:44]accept exits with 9 [10:03:44]New connection [10:03:44]New thread 3066813796 created [10:03:44]Thread 3066957156 joined [10:03:44]Waiting for new connection... [10:03:44] Sock 9.Parse request [10:03:44]Sock 9.Check first char [10:03:44]Sock 9.First char is OK [10:03:44]request: POST /json_proto HTTP/1.0 [10:03:44]Method: POST [10:03:44]URL: /json_proto [10:03:44]Method is POST - this is cgi request [10:03:44]url: /json_proto [10:03:44]query_string will be loaded in cgi processing [10:03:44]execute_cgi json_proto POST (null) [10:03:44]execute_cgi path=json_proto method=POST [10:03:44]POST find Content-Length [10:03:44]Host: 172.17.62.67:8080 [10:03:44]Content-Length: 1188 [10:03:44]Content-Type: application/json [10:03:44] [10:03:44]POST finish read [10:03:44]Found Content-Length = 1188 [10:03:44]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196338\u000A13.03.2024 09:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 19.940 x 70.90\u000A\u0418\u0422\u041E\u0413: 1413.75\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\u000A3768228\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:44]execute_script... [10:03:44]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196338\u000A13.03.2024 09:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 19.940 x 70.90\u000A\u0418\u0422\u041E\u0413: 1413.75\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\u000A3768228\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:44]POST & json_proto [10:03:44]process_json_proto [10:03:44]json parsed OK: [10:03:44]protocol is kg_v1.0 [10:03:44]action value=print_text [10:03:44]process_action print_text [10:03:44]cmd_print_text [10:03:44]ExternCall_PrintAddStr [10:03:44]wPrintStart [10:03:44]Write to MH i2c: 01 00 00 26 6B 91 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 07 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 07 00 26 6B 00 80 00 00 00 FF 0F 26 [10:03:44]RasterBufferAndPrint [10:03:44]line *****ТОВАРНЫЙ ЧЕК***** [10:03:44]line АЗС 6 [10:03:44]line Партнер нефть [10:03:44]line 02508201610067 [10:03:44]line Кассир : Сабырбек у. М. [10:03:44]line Счет N : (1)196338 [10:03:44]line 13.03.2024 09:57 [10:03:44]line ПРОДАЖА [10:03:44]line ТРК (МРК, ГНК): 61 [10:03:44]line Вид ГСМ : 2710194210 [10:03:44]line ДТ-К-5 [10:03:44]line 19.940 x 70.90 [10:03:44]line ИТОГ: 1413.75 [10:03:44]line Тип оплаты: Талоны: Партнер нефть [10:03:44]line 3768228 [10:03:44]line ______________________ [10:03:44]line (подпись) [10:03:44]written 0, free lines is 4095 [10:03:44]Write to MH i2c: 01 00 00 3A 6B A5 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 07 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: 01 07 00 3A 6B 00 80 00 00 00 66 0E A0 [10:03:44]RasterBufferAndPrint [10:03:44]line [10:03:44]line [10:03:44]line [10:03:44]line [10:03:44]line [10:03:44]written 0, free lines is 3691 [10:03:44]process_action print_text done [10:03:44]requested_data is exist [10:03:44]produce_requested_data [10:03:44]requested_item fm.sn is exist - process it [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 11 00 00 [10:03:44]Write to MH i2c: E2 08 00 41 6B 80 11 00 00 00 00 00 00 26 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:44]Read from MH i2c: E2 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 17 00 [10:03:44]MH_I2C_Read... [10:03:44]Read from MH i2c: E2 17 00 41 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 76 [10:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:03:44]wFMCommunicate OK [10:03:44]requested_item fd.num is exist - process it [10:03:44]SAM_PROTO_GetFieldsCounters [10:03:44]wFMCommunicate request_size=4 [10:03:44]MH_SAM_APDU [10:03:44]CAPDU: 80 13 00 00 [10:03:44]Write to MH i2c: E2 08 00 42 6B 80 13 00 00 00 00 00 00 29 [10:03:44]Write i2c OK [10:03:44]MH_I2C_Read... [10:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:45]Read from MH i2c: E2 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: E2 62 00 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: E2 62 00 42 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 74 01 00 0E 04 04 00 48 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 09 [10:03:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 78 74 01 00 0E 04 04 00 48 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 [10:03:45]wFMCommunicate OK [10:03:45]SAM_PROTO_GetFieldsCounters done [10:03:45]requested_item shift.num is exist - process it [10:03:45]requested_item shift.opened is exist - process it [10:03:45]req_shift_opened [10:03:45]FM_GetShiftState [10:03:45]SAM_PROTO_GetShiftState [10:03:45]wFMCommunicate request_size=4 [10:03:45]MH_SAM_APDU [10:03:45]CAPDU: 80 13 01 00 [10:03:45]Write to MH i2c: E2 08 00 43 6B 80 13 01 00 00 00 00 00 2B [10:03:45]Write i2c OK [10:03:45]MH_I2C_Read... [10:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:45]Read from MH i2c: E2 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: E2 0E 00 [10:03:45]MH_I2C_Read... [10:03:45]Read from MH i2c: E2 0E 00 43 6B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 10 [10:03:45]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:03:45]wFMCommunicate OK [10:03:45]SAM_PROTO_GetShiftState done [10:03:45]FM_GetShiftState done [10:03:45]req_shift_opened done [10:03:45]requested_item shift.open_date is exist - process it [10:03:45]req_shift_open_date [10:03:45]req_shift_open_date done [10:03:45]produce_requested_data done [10:03:45]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95352,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:03:45]process_action_free print_text [10:03:45]json_value_free [10:03:45]json_value_free done [10:03:45]process_json_proto returns [10:03:45]Send response to host [10:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95352,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:03:45]free response buf [10:03:45]execute_script done [10:03:45]execute_script returns [10:03:45]free content buf [10:03:45]Sock 9.Close socket [10:03:45]Sock 9.Thread stoped [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [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:25]accept exits with 8 [10:04:25]New connection [10:04:25]New thread 3066957156 created [10:04:25]Thread 3066813796 joined [10:04:25]Waiting for new connection... [10:04:25] Sock 8.Parse request [10:04:25]Sock 8.Check first char [10:04:25]Sock 8.First char is OK [10:04:25]request: POST /json_proto HTTP/1.0 [10:04:25]Method: POST [10:04:25]URL: /json_proto [10:04:25]Method is POST - this is cgi request [10:04:25]url: /json_proto [10:04:25]query_string will be loaded in cgi processing [10:04:25]execute_cgi json_proto POST (null) [10:04:25]execute_cgi path=json_proto method=POST [10:04:25]POST find Content-Length [10:04:25]Host: 172.17.62.67:8080 [10:04:25]Content-Length: 660 [10:04:25]Content-Type: application/json [10:04:25] [10:04:25]POST finish read [10:04:25]Found Content-Length = 660 [10:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196340", "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" : 70.90, "quantity" : 20.000, "sum" : 1418.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1418.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:25]execute_script... [10:04: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)196340", "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" : 70.90, "quantity" : 20.000, "sum" : 1418.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1418.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:25]POST & json_proto [10:04:25]process_json_proto [10:04:25]json parsed OK: [10:04:25]protocol is kg_v1.0 [10:04:25]action value=close_receipt [10:04:25]process_action close_receipt [10:04:25]cmd_close_receipt [10:04:25]MH_GetDate [10:04:25]Write to MH i2c: F0 00 00 44 6B 9E [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 05 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 05 00 44 6B 00 33 7A F1 65 A6 [10:04:25]GetLastDocTimeStamp 1710324039 [10:04:25]current date 1710324275 [10:04:25]FM_GetShiftState [10:04:25]SAM_PROTO_GetShiftState [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 13 01 00 [10:04:25]Write to MH i2c: E2 08 00 45 6B 80 13 01 00 00 00 00 00 2D [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 45 6B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 12 [10:04:25]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_GetShiftState done [10:04:25]FM_GetShiftState done [10:04:25]opened in 1710288279 [10:04:25]opened+sec_in_day 1710374679 [10:04:25]quantity*price = 141800 [10:04:25]sum+1 = 141801 [10:04:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1418.00 Внесено: 1500.00 СДАЧА: 82.00 НСП 1% : 12.55 НДС 12% : 150.58 Наличными: 1418.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 48 13.03.2024 10:04 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95353 ФПД: 17356623958538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100435&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95353&fm=17356623958538&tin=02508201610067®Number=0000000000090555&sum=141800 [10:04:26]StoreToDocumentArchive [10:04:26]shift 328 fd 95353 [10:04:26]save to /storage/0328/doc_00095353 [10:04:26]save last doc name /storage/0328/doc_00095353 to /storage/kkm_last_doc_name [10:04:26]save OK [10:04:26]Clear old archive folders... [10:04:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:26]tlvbuf is 01A4A380 [10:04:26]SAM_PROTO_ClearQueue [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 09 00 00 [10:04:26]Write to MH i2c: E2 08 00 52 6B 80 09 00 00 00 00 00 00 2F [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 52 6B 00 90 00 31 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_ClearQueue done [10:04:26]KKMCreateOFDPacket [10:04:26]OFDProtocolAddRootSTLVToBuf [10:04:26]FM_MakeSignedData [10:04:26]FM_MakeSignedData [10:04:26]SAM_PROTO_SignData [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 01 02 [10:04:26]Write to MH i2c: E2 08 00 53 6B 80 0D 01 02 00 00 00 00 37 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 53 6B 00 90 00 32 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=255 [10:04:26]MH_SAM_APDU [10:04:26]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 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 33 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 74 01 00 35 04 06 00 0F C9 27 67 [10:04:26]Write to MH i2c: E2 02 01 54 6B 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 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 33 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 74 01 00 35 04 06 00 0F C9 27 67 00 00 CB [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 54 6B 00 90 00 33 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=7 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 02 02 02 D2 0A [10:04:26]Write to MH i2c: E2 0A 00 55 6B 80 0D 02 02 02 00 D2 0A 00 00 1A [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 55 6B 00 90 00 34 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 03 02 [10:04:26]Write to MH i2c: E2 08 00 56 6B 80 0D 03 02 00 00 00 00 3C [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0B 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0B 00 56 6B 00 89 3E 93 CA DC 0B A8 E5 90 00 D5 [10:04:26]RAPDU: 89 3E 93 CA DC 0B A8 E5 90 00 [10:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_SignData done [10:04:26]FM_MakeSignedData done [10:04:26]CreateOFDProtocolMessage [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 11 00 00 [10:04:26]Write to MH i2c: E2 08 00 57 6B 80 11 00 00 00 00 00 00 3C [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 57 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8C [10:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:04:26]wFMCommunicate OK [10:04:26]CreateOFDProtocolMessage done [10:04:26]OFDSenderStorePacket 95353 [10:04:26]StoreOFDPacket docnum=95353 [10:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 31 DC 04 01 68 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 33 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 74 01 00 35 04 06 00 0F C9 27 67 D2 0A 89 3E 93 CA DC 0B A8 E5 [10:04:26]CheckFolder [10:04:26]dirname=/storage/ofd_packets [10:04:26]CheckFolder done [10:04:26]ProducePacketName [10:04:26]name=ofd_packets/00095353 [10:04:26]NVStorageSaveData ofd_packets/00095353 [10:04:26]File name is /storage/ofd_packets/00095353 [10:04:26]Write 298 bytes [10:04:26]NVStorageSaveData done [10:04:26]OFDSenderStorePacket done [10:04:26]KKMCreateOFDPacket done [10:04:26]NVStorageSaveData kkm_last_timestamp [10:04:26]File name is /storage/kkm_last_timestamp [10:04:26]Write 4 bytes [10:04:26]NVStorageSaveData done [10:04:26]ExternCall_PrintAddStr [10:04:26]wPrintStart [10:04:26]Write to MH i2c: 01 00 00 58 6B C3 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 58 6B 00 80 00 00 00 FF 0F 58 [10:04:26]RasterBufferAndPrint [10:04:26]line Счет N : (1)196340 [10:04:26]line ИНН: 02508201610067 [10:04:26]line Контрольно-Кассовый Чек [10:04:26]line ПРОДАЖА [10:04:26]line ТРК (МРК, ГНК) : 51 [10:04:26]line Товар: 2710194210 [10:04:26]line ДТ-К-5 [10:04:26]line 20.000 * 70.90 [10:04:26]line = 1418.00 [10:04:26]line НДС 12% НСП 1% [10:04:26]line > о реализуемом товаре [10:04:26]line ИТОГО: 1418.00 [10:04:26]line Внесено: 1500.00 [10:04:26]line СДАЧА: 82.00 [10:04:26]line НСП 1% : 12.55 [10:04:26]line НДС 12% : 150.58 [10:04:26]line Наличными: 1418.00 [10:04:26]line Безнал.: 0.00 [10:04:26]line Место: АЗС № 6 "Партнер Нефть" [10:04:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:04:26]line СНО: Общий режим [10:04:26]line Чек 48 13.03.2024 10:04 [10:04:26]line Смена: 328 ФФД: 1.0 [10:04:26]line ЗНМ: 0300000009 [10:04:26]line РНМ: 0000000000090555 [10:04:26]line Версия ККМ: 001 [10:04:26]line ФМ: 0000000000874811 [10:04:26]line ФД: 95353 [10:04:26]line ФПД: 17356623958538 [10:04:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100435&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95353&fm=17356623958538&tin=02508201610067®Number=0000000000090555&sum=141800 [10:04:27]OFD Sender: Processing packet 95353 [packets to send 30, broken 29] [10:04:27]ProducePacketName [10:04:27]name=ofd_packets/00095353 [10:04:27]OFD Sender: To server: pG, [10:04:27]CommunicateWithHost lk.salyk.kg:30040 [10:04:27]ConnectInit lk.salyk.kg [10:04:27]written 0, free lines is 4095 [10:04:27]Connected sock=6 [10:04:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 31 DC 04 01 68 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 33 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 74 01 00 35 04 06 00 0F C9 27 67 D2 0A 89 3E 93 CA DC 0B A8 E5 [10:04:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1F C7 47 00 DC 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 79 74 01 00 F4 03 04 00 86 25 F1 65 B6 04 01 00 00 A7 CC F2 0E BA 67 11 A7 [10:04:27]CommunicateWithHost err = 0 [10:04:27]CheckOFDResponse [10:04:27]1017 (14) - 77093643461234 [10:04:27]1041 (16) - 0000000000874811 [10:04:27]1040 (4) - 95353 [10:04:27]1012 (4) - 13.03.2024 04:03 [10:04:27]1206 (1) - 0 [10:04:27]OFD Sender: Remove packet 95353 [10:04:27]ProducePacketName [10:04:27]name=ofd_packets/00095353 [10:04:27]NVStorageDeleteData [10:04:27]Write to MH i2c: 01 00 00 82 6B ED [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 82 6B 00 80 00 00 00 57 0D D8 [10:04:27]RasterBufferAndPrint [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]written 0, free lines is 3421 [10:04:27]process_action close_receipt done [10:04:27]requested_data is exist [10:04:27]produce_requested_data [10:04:27]requested_item fm.sn is exist - process it [10:04:27]wFMCommunicate request_size=4 [10:04:27]MH_SAM_APDU [10:04:27]CAPDU: 80 11 00 00 [10:04:27]Write to MH i2c: E2 08 00 89 6B 80 11 00 00 00 00 00 00 6E [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 [10:04:27]MH_I2C_Read... [10:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:27]Read from MH i2c: E2 17 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 17 00 89 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [10:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:04:27]wFMCommunicate OK [10:04:27]requested_item fd.num is exist - process it [10:04:27]SAM_PROTO_GetFieldsCounters [10:04:27]wFMCommunicate request_size=4 [10:04:27]MH_SAM_APDU [10:04:27]CAPDU: 80 13 00 00 [10:04:27]Write to MH i2c: E2 08 00 8A 6B 80 13 00 00 00 00 00 00 71 [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:27]Read from MH i2c: E2 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 62 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 62 00 8A 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 79 74 01 00 0E 04 04 00 48 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 55 [10:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 79 74 01 00 0E 04 04 00 48 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 [10:04:27]wFMCommunicate OK [10:04:27]SAM_PROTO_GetFieldsCounters done [10:04:27]requested_item shift.num is exist - process it [10:04:27]requested_item shift.opened is exist - process it [10:04:27]req_shift_opened [10:04:27]FM_GetShiftState [10:04:27]SAM_PROTO_GetShiftState [10:04:27]wFMCommunicate request_size=4 [10:04:27]MH_SAM_APDU [10:04:27]CAPDU: 80 13 01 00 [10:04:27]Write to MH i2c: E2 08 00 8B 6B 80 13 01 00 00 00 00 00 73 [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:27]Read from MH i2c: E2 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 0E 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 0E 00 8B 6B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 58 [10:04:27]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:04:27]wFMCommunicate OK [10:04:27]SAM_PROTO_GetShiftState done [10:04:27]FM_GetShiftState done [10:04:27]req_shift_opened done [10:04:27]requested_item shift.open_date is exist - process it [10:04:27]req_shift_open_date [10:04:27]req_shift_open_date done [10:04:27]produce_requested_data done [10:04:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95353,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:04:27]process_action_free close_receipt [10:04:27]json_value_free [10:04:27]json_value_free done [10:04:27]process_json_proto returns [10:04:27]Send response to host [10:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95353,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:04:27]free response buf [10:04:27]execute_script done [10:04:27]execute_script returns [10:04:27]free content buf [10:04:27]Sock 8.Close socket [10:04:27]Sock 8.Thread stoped [10:04:27]OFD Sender: No OFD packet to send [10:04:29]accept exits with 9 [10:04:29]New connection [10:04:29]New thread 3066813796 created [10:04:29]Thread 3066957156 joined [10:04:29]Waiting for new connection... [10:04:29] Sock 9.Parse request [10:04:29]Sock 9.Check first char [10:04:29]Sock 9.First char is OK [10:04:29]request: POST /json_proto HTTP/1.0 [10:04:29]Method: POST [10:04:29]URL: /json_proto [10:04:29]Method is POST - this is cgi request [10:04:29]url: /json_proto [10:04:29]query_string will be loaded in cgi processing [10:04:29]execute_cgi json_proto POST (null) [10:04:29]execute_cgi path=json_proto method=POST [10:04:29]POST find Content-Length [10:04:29]Host: 172.17.62.67:8080 [10:04:29]Content-Length: 716 [10:04:29]Content-Type: application/json [10:04:29] [10:04:29]POST finish read [10:04:29]Found Content-Length = 716 [10:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95353, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196340", "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" : 70.90, "quantity" : 20.000, "sum" : 1418.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1418.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:29]execute_script... [10:04:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95353, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196340", "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" : 70.90, "quantity" : 20.000, "sum" : 1418.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "payments": [ { "type": 0, "sum" : 1418.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:29]POST & json_proto [10:04:29]process_json_proto [10:04:29]json parsed OK: [10:04:29]protocol is kg_v1.0 [10:04:29]action value=close_receipt [10:04:29]process_action close_receipt [10:04:29]cmd_close_receipt [10:04:29]MH_GetDate [10:04:29]Write to MH i2c: F0 00 00 8C 6B E6 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 05 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: F0 05 00 8C 6B 00 37 7A F1 65 F2 [10:04:29]GetLastDocTimeStamp 1710324275 [10:04:29]current date 1710324279 [10:04:29]FM_GetShiftState [10:04:29]SAM_PROTO_GetShiftState [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 13 01 00 [10:04:29]Write to MH i2c: E2 08 00 8D 6B 80 13 01 00 00 00 00 00 75 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 8D 6B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 5A [10:04:29]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_GetShiftState done [10:04:29]FM_GetShiftState done [10:04:29]opened in 1710288279 [10:04:29]opened+sec_in_day 1710374679 [10:04:29]quantity*price = 141800 [10:04:29]sum+1 = 141801 [10:04:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1418.00 НСП 1% : 12.55 НДС 12% : 150.58 Наличными: 1418.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 49 13.03.2024 10:04 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95353 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95354 ФПД: 139207979251097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100439&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95354&fm=139207979251097&tin=02508201610067®Number=0000000000090555&sum=141800 [10:04:30]StoreToDocumentArchive [10:04:30]shift 328 fd 95354 [10:04:30]save to /storage/0328/doc_00095354 [10:04:30]save last doc name /storage/0328/doc_00095354 to /storage/kkm_last_doc_name [10:04:30]save OK [10:04:30]Clear old archive folders... [10:04:30]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:04:30]tlvbuf is 01B213D0 [10:04:30]SAM_PROTO_ClearQueue [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 09 00 00 [10:04:30]Write to MH i2c: E2 08 00 9C 6B 80 09 00 00 00 00 00 00 79 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 9C 6B 00 90 00 7B [10:04:30]RAPDU: 90 00 [10:04:30]wFMCommunicate OK [10:04:30]SAM_PROTO_ClearQueue done [10:04:30]KKMCreateOFDPacket [10:04:30]OFDProtocolAddRootSTLVToBuf [10:04:30]FM_MakeSignedData [10:04:30]FM_MakeSignedData [10:04:30]SAM_PROTO_SignData [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 0D 01 02 [10:04:30]Write to MH i2c: E2 08 00 9D 6B 80 0D 01 02 00 00 00 00 81 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 9D 6B 00 90 00 7C [10:04:30]RAPDU: 90 00 [10:04:30]wFMCommunicate OK [10:04:30]wFMCommunicate request_size=255 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 37 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 79 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [10:04:30]Write to MH i2c: E2 02 01 9E 6B 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 37 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 79 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 A6 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 9E 6B 00 90 00 7D [10:04:30]RAPDU: 90 00 [10:04:30]wFMCommunicate OK [10:04:30]wFMCommunicate request_size=35 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 74 01 00 35 04 06 00 7E 9B E2 27 35 99 [10:04:30]Write to MH i2c: E2 26 00 9F 6B 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 74 01 00 35 04 06 00 7E 9B E2 27 35 99 00 00 53 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 03 00 9F 6B 00 90 00 7E [10:04:30]RAPDU: 90 00 [10:04:30]wFMCommunicate OK [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:30]CAPDU: 80 0D 03 02 [10:04:30]Write to MH i2c: E2 08 00 A0 6B 80 0D 03 02 00 00 00 00 86 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:30]Read from MH i2c: E2 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 0B 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: E2 0B 00 A0 6B 00 D5 DD 35 10 30 65 99 F3 90 00 9F [10:04:30]RAPDU: D5 DD 35 10 30 65 99 F3 90 00 [10:04:30]wFMCommunicate OK [10:04:30]SAM_PROTO_SignData done [10:04:30]FM_MakeSignedData done [10:04:30]CreateOFDProtocolMessage [10:04:30]wFMCommunicate request_size=4 [10:04:30]MH_SAM_APDU [10:04:31]CAPDU: 80 11 00 00 [10:04:31]Write to MH i2c: E2 08 00 A1 6B 80 11 00 00 00 00 00 00 86 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 A1 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D6 [10:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:04:31]wFMCommunicate OK [10:04:31]CreateOFDProtocolMessage done [10:04:31]OFDSenderStorePacket 95354 [10:04:31]StoreOFDPacket docnum=95354 [10:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 02 B0 20 01 77 1E 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 37 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 79 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 74 01 00 35 04 06 00 7E 9B E2 27 35 99 D5 DD 35 10 30 65 99 F3 [10:04:31]CheckFolder [10:04:31]dirname=/storage/ofd_packets [10:04:31]CheckFolder done [10:04:31]ProducePacketName [10:04:31]name=ofd_packets/00095354 [10:04:31]NVStorageSaveData ofd_packets/00095354 [10:04:31]File name is /storage/ofd_packets/00095354 [10:04:31]Write 326 bytes [10:04:31]NVStorageSaveData done [10:04:31]OFDSenderStorePacket done [10:04:31]KKMCreateOFDPacket done [10:04:31]NVStorageSaveData kkm_last_timestamp [10:04:31]File name is /storage/kkm_last_timestamp [10:04:31]Write 4 bytes [10:04:31]NVStorageSaveData done [10:04:31]ExternCall_PrintAddStr [10:04:31]wPrintStart [10:04:31]Write to MH i2c: 01 00 00 A2 6B 0D [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 A2 6B 00 80 00 00 00 FF 0F A2 [10:04:31]RasterBufferAndPrint [10:04:31]line Счет N : (1)196340 [10:04:31]line ИНН: 02508201610067 [10:04:31]line Контрольно-Кассовый Чек [10:04:31]line ВОЗВРАТ ПРОДАЖИ [10:04:31]line ТРК (МРК, ГНК) : 51 [10:04:31]line Товар: 2710194210 [10:04:31]line ДТ-К-5 [10:04:31]line 20.000 * 70.90 [10:04:31]line = 1418.00 [10:04:31]line НДС 12% НСП 1% [10:04:31]line > о реализуемом товаре [10:04:31]line ИТОГО: 1418.00 [10:04:31]line НСП 1% : 12.55 [10:04:31]line НДС 12% : 150.58 [10:04:31]line Наличными: 1418.00 [10:04:31]line Безнал.: 0.00 [10:04:31]line Место: АЗС № 6 "Партнер Нефть" [10:04:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:04:31]line СНО: Общий режим [10:04:31]line Чек 49 13.03.2024 10:04 [10:04:31]line Смена: 328 ФФД: 1.0 [10:04:31]line ЗНМ: 0300000009 [10:04:31]line РНМ: 0000000000090555 [10:04:31]line Версия ККМ: 001 [10:04:31]line ФД осн.: 95353 [10:04:31]line ФМ осн.: 0000000000874811 [10:04:31]line ФМ: 0000000000874811 [10:04:31]line ФД: 95354 [10:04:31]line ФПД: 139207979251097 [10:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100439&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95354&fm=139207979251097&tin=02508201610067®Number=0000000000090555&sum=141800 [10:04:31]written 0, free lines is 4095 [10:04:31]OFD Sender: Processing packet 95354 [packets to send 30, broken 29] [10:04:31]ProducePacketName [10:04:31]name=ofd_packets/00095354 [10:04:31]OFD Sender: To server: pG, [10:04:31]CommunicateWithHost lk.salyk.kg:30040 [10:04:31]ConnectInit lk.salyk.kg [10:04:31]Connected sock=8 [10:04:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 02 B0 20 01 77 1E 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 37 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 79 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 74 01 00 35 04 06 00 7E 9B E2 27 35 99 D5 DD 35 10 30 65 99 F3 [10:04:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3B 97 47 00 6D 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7A 74 01 00 F4 03 04 00 8A 25 F1 65 B6 04 01 00 00 2A 86 85 C7 F0 07 EF BF [10:04:31]CommunicateWithHost err = 0 [10:04:31]CheckOFDResponse [10:04:31]1017 (14) - 77093643461234 [10:04:31]1041 (16) - 0000000000874811 [10:04:31]1040 (4) - 95354 [10:04:31]1012 (4) - 13.03.2024 04:03 [10:04:31]1206 (1) - 0 [10:04:31]OFD Sender: Remove packet 95354 [10:04:31]ProducePacketName [10:04:31]name=ofd_packets/00095354 [10:04:31]NVStorageDeleteData [10:04:31]Write to MH i2c: 01 00 00 CC 6B 37 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: 01 07 00 CC 6B 00 80 00 00 00 6B 0D 36 [10:04:31]RasterBufferAndPrint [10:04:31]line [10:04:31]line [10:04:31]line [10:04:31]line [10:04:31]line [10:04:31]written 0, free lines is 3449 [10:04:31]process_action close_receipt done [10:04:31]requested_data is exist [10:04:31]produce_requested_data [10:04:31]requested_item fm.sn is exist - process it [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 11 00 00 [10:04:31]Write to MH i2c: E2 08 00 D3 6B 80 11 00 00 00 00 00 00 B8 [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 17 00 D3 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 08 [10:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:04:31]wFMCommunicate OK [10:04:31]requested_item fd.num is exist - process it [10:04:31]SAM_PROTO_GetFieldsCounters [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 13 00 00 [10:04:31]Write to MH i2c: E2 08 00 D4 6B 80 13 00 00 00 00 00 00 BB [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 62 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 62 00 D4 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7A 74 01 00 0E 04 04 00 48 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 A3 [10:04:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7A 74 01 00 0E 04 04 00 48 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 [10:04:31]wFMCommunicate OK [10:04:31]SAM_PROTO_GetFieldsCounters done [10:04:31]requested_item shift.num is exist - process it [10:04:31]requested_item shift.opened is exist - process it [10:04:31]req_shift_opened [10:04:31]FM_GetShiftState [10:04:31]SAM_PROTO_GetShiftState [10:04:31]wFMCommunicate request_size=4 [10:04:31]MH_SAM_APDU [10:04:31]CAPDU: 80 13 01 00 [10:04:31]Write to MH i2c: E2 08 00 D5 6B 80 13 01 00 00 00 00 00 BD [10:04:31]Write i2c OK [10:04:31]MH_I2C_Read... [10:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:31]Read from MH i2c: E2 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0E 00 [10:04:31]MH_I2C_Read... [10:04:31]Read from MH i2c: E2 0E 00 D5 6B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A2 [10:04:31]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:04:31]wFMCommunicate OK [10:04:31]SAM_PROTO_GetShiftState done [10:04:31]FM_GetShiftState done [10:04:31]req_shift_opened done [10:04:31]requested_item shift.open_date is exist - process it [10:04:31]req_shift_open_date [10:04:31]req_shift_open_date done [10:04:31]produce_requested_data done [10:04:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95354,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:04:31]process_action_free close_receipt [10:04:31]json_value_free [10:04:31]json_value_free done [10:04:31]process_json_proto returns [10:04:31]Send response to host [10:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95354,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:04:31]free response buf [10:04:31]execute_script done [10:04:31]execute_script returns [10:04:31]free content buf [10:04:31]Sock 9.Close socket [10:04:31]Sock 9.Thread stoped [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:04:58]accept exits with 6 [10:04:58]New connection [10:04:58]New thread 3066957156 created [10:04:58]Thread 3066813796 joined [10:04:58]Waiting for new connection... [10:04:58] Sock 6.Parse request [10:04:58]Sock 6.Check first char [10:04:58]Sock 6.First char is OK [10:04:58]request: POST /json_proto HTTP/1.0 [10:04:58]Method: POST [10:04:58]URL: /json_proto [10:04:58]Method is POST - this is cgi request [10:04:58]url: /json_proto [10:04:58]query_string will be loaded in cgi processing [10:04:58]execute_cgi json_proto POST (null) [10:04:58]execute_cgi path=json_proto method=POST [10:04:58]POST find Content-Length [10:04:58]Host: 172.17.62.67:8080 [10:04:58]Content-Length: 816 [10:04:58]Content-Type: application/json [10:04:58] [10:04:58]POST finish read [10:04:58]Found Content-Length = 816 [10:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196341", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:58]execute_script... [10: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 : (1)196341", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:58]POST & json_proto [10:04:58]process_json_proto [10:04:58]json parsed OK: [10:04:58]protocol is kg_v1.0 [10:04:58]action value=close_receipt [10:04:58]process_action close_receipt [10:04:58]cmd_close_receipt [10:04:58]MH_GetDate [10:04:58]Write to MH i2c: F0 00 00 D6 6B 30 [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: F0 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: F0 05 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: F0 05 00 D6 6B 00 54 7A F1 65 59 [10:04:58]GetLastDocTimeStamp 1710324279 [10:04:58]current date 1710324308 [10:04:58]FM_GetShiftState [10:04:58]SAM_PROTO_GetShiftState [10:04:58]wFMCommunicate request_size=4 [10:04:58]MH_SAM_APDU [10:04:58]CAPDU: 80 13 01 00 [10:04:58]Write to MH i2c: E2 08 00 D7 6B 80 13 01 00 00 00 00 00 BF [10:04:58]Write i2c OK [10:04:58]MH_I2C_Read... [10:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:58]Read from MH i2c: E2 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 0E 00 [10:04:58]MH_I2C_Read... [10:04:58]Read from MH i2c: E2 0E 00 D7 6B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A4 [10:04:58]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:04:58]wFMCommunicate OK [10:04:58]SAM_PROTO_GetShiftState done [10:04:58]FM_GetShiftState done [10:04:58]opened in 1710288279 [10:04:58]opened+sec_in_day 1710374679 [10:04:58]quantity*price = 50005 [10:04:58]sum+1 = 50007 [10:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 50 13.03.2024 10:05 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95355 ФПД: 76609565886917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100508&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95355&fm=76609565886917&tin=02508201610067®Number=0000000000090555&sum=50006 [10:04:59]StoreToDocumentArchive [10:04:59]shift 328 fd 95355 [10:04:59]save to /storage/0328/doc_00095355 [10:04:59]save last doc name /storage/0328/doc_00095355 to /storage/kkm_last_doc_name [10:04:59]save OK [10:04:59]Clear old archive folders... [10:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:59]tlvbuf is 01AF9C50 [10:04:59]SAM_PROTO_ClearQueue [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 09 00 00 [10:04:59]Write to MH i2c: E2 08 00 E4 6B 80 09 00 00 00 00 00 00 C1 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 E4 6B 00 90 00 C3 [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_ClearQueue done [10:04:59]KKMCreateOFDPacket [10:04:59]OFDProtocolAddRootSTLVToBuf [10:04:59]FM_MakeSignedData [10:04:59]FM_MakeSignedData [10:04:59]SAM_PROTO_SignData [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 0D 01 02 [10:04:59]Write to MH i2c: E2 08 00 E5 6B 80 0D 01 02 00 00 00 00 C9 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 E5 6B 00 90 00 C4 [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]wFMCommunicate request_size=255 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 54 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 74 01 00 35 04 06 00 45 [10:04:59]Write to MH i2c: E2 02 01 E6 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 54 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 74 01 00 35 04 06 00 45 00 00 52 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 E6 6B 00 90 00 C5 [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]wFMCommunicate request_size=10 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 0D 02 02 05 AD 0D F6 09 C5 [10:04:59]Write to MH i2c: E2 0D 00 E7 6B 80 0D 02 02 05 00 AD 0D F6 09 C5 00 00 54 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 03 00 E7 6B 00 90 00 C6 [10:04:59]RAPDU: 90 00 [10:04:59]wFMCommunicate OK [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 0D 03 02 [10:04:59]Write to MH i2c: E2 08 00 E8 6B 80 0D 03 02 00 00 00 00 CE [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0B 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0B 00 E8 6B 00 5F B3 86 FE F3 B5 68 02 90 00 77 [10:04:59]RAPDU: 5F B3 86 FE F3 B5 68 02 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_SignData done [10:04:59]FM_MakeSignedData done [10:04:59]CreateOFDProtocolMessage [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 11 00 00 [10:04:59]Write to MH i2c: E2 08 00 E9 6B 80 11 00 00 00 00 00 00 CE [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 17 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 17 00 E9 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1E [10:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:04:59]wFMCommunicate OK [10:04:59]CreateOFDProtocolMessage done [10:04:59]OFDSenderStorePacket 95355 [10:04:59]StoreOFDPacket docnum=95355 [10:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F9 22 07 01 13 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 54 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 74 01 00 35 04 06 00 45 AD 0D F6 09 C5 5F B3 86 FE F3 B5 68 02 [10:04:59]CheckFolder [10:04:59]dirname=/storage/ofd_packets [10:04:59]CheckFolder done [10:04:59]ProducePacketName [10:04:59]name=ofd_packets/00095355 [10:04:59]NVStorageSaveData ofd_packets/00095355 [10:04:59]File name is /storage/ofd_packets/00095355 [10:04:59]Write 301 bytes [10:04:59]NVStorageSaveData done [10:04:59]OFDSenderStorePacket done [10:04:59]KKMCreateOFDPacket done [10:04:59]NVStorageSaveData kkm_last_timestamp [10:04:59]File name is /storage/kkm_last_timestamp [10:04:59]Write 4 bytes [10:04:59]NVStorageSaveData done [10:04:59]ExternCall_PrintAddStr [10:04:59]wPrintStart [10:04:59]Write to MH i2c: 01 00 00 EA 6B 55 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 07 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 07 00 EA 6B 00 80 00 00 00 FF 0F EA [10:04:59]RasterBufferAndPrint [10:04:59]line Счет N : (1)196341 [10:04:59]line ИНН: 02508201610067 [10:04:59]line Контрольно-Кассовый Чек [10:04:59]line ПРОДАЖА [10:04:59]line ТРК (МРК, ГНК) : 22 [10:04:59]line Товар: 2710124130 [10:04:59]line Аи-92-К-5 [10:04:59]line 7.950 * 62.90 [10:04:59]line = 500.06 [10:04:59]line НДС 12% НСП 1% [10:04:59]line > о реализуемом товаре [10:04:59]line ИТОГО: 500.06 [10:04:59]line НСП 1% : 4.42 [10:04:59]line НДС 12% : 53.10 [10:04:59]line Наличными: 0.00 [10:04:59]line Безнал.: 500.06 [10:04:59]line Место: АЗС № 6 "Партнер Нефть" [10:04:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:04:59]line СНО: Общий режим [10:04:59]line Чек 50 13.03.2024 10:05 [10:05:00]line Смена: 328 ФФД: 1.0 [10:05:00]line ЗНМ: 0300000009 [10:05:00]line РНМ: 0000000000090555 [10:05:00]line Версия ККМ: 001 [10:05:00]line Платежная система: Бакай Банк [10:05:00]line ФМ: 0000000000874811 [10:05:00]line ФД: 95355 [10:05:00]line ФПД: 76609565886917 [10:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100508&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95355&fm=76609565886917&tin=02508201610067®Number=0000000000090555&sum=50006 [10:05:00]OFD Sender: Processing packet 95355 [packets to send 30, broken 29] [10:05:00]ProducePacketName [10:05:00]name=ofd_packets/00095355 [10:05:00]OFD Sender: To server: pG, [10:05:00]CommunicateWithHost lk.salyk.kg:30040 [10:05:00]ConnectInit lk.salyk.kg [10:05:00]written 0, free lines is 4095 [10:05:00]Connected sock=10 [10:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F9 22 07 01 13 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 54 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7B 74 01 00 35 04 06 00 45 AD 0D F6 09 C5 5F B3 86 FE F3 B5 68 02 [10:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3E A1 47 00 26 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 34 38 31 31 10 04 04 00 7B 74 01 00 F4 03 04 00 A7 25 F1 65 B6 04 01 00 00 2F 4E FE 1E 06 45 AE DC [10:05:00]CommunicateWithHost err = 0 [10:05:00]CheckOFDResponse [10:05:00]1017 (14) - 77093643461234 [10:05:00]1041 (16) - 0000000000874811 [10:05:00]1040 (4) - 95355 [10:05:00]1012 (4) - 13.03.2024 04:03 [10:05:00]1206 (1) - 0 [10:05:00]OFD Sender: Remove packet 95355 [10:05:00]ProducePacketName [10:05:00]name=ofd_packets/00095355 [10:05:00]NVStorageDeleteData [10:05:00]Write to MH i2c: 01 00 00 14 6C 80 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 07 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: 01 07 00 14 6C 00 80 00 00 00 60 0D 74 [10:05:00]RasterBufferAndPrint [10:05:00]line [10:05:00]line [10:05:00]line [10:05:00]line [10:05:00]line [10:05:00]written 0, free lines is 3432 [10:05:00]process_action close_receipt done [10:05:00]requested_data is exist [10:05:00]produce_requested_data [10:05:00]requested_item fm.sn is exist - process it [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 11 00 00 [10:05:00]Write to MH i2c: E2 08 00 1B 6C 80 11 00 00 00 00 00 00 01 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:00]Read from MH i2c: E2 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 [10:05:00]MH_I2C_Read... [10:05:00]Read from MH i2c: E2 17 00 1B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 51 [10:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:05:00]wFMCommunicate OK [10:05:00]requested_item fd.num is exist - process it [10:05:00]SAM_PROTO_GetFieldsCounters [10:05:00]wFMCommunicate request_size=4 [10:05:00]MH_SAM_APDU [10:05:00]CAPDU: 80 13 00 00 [10:05:00]Write to MH i2c: E2 08 00 1C 6C 80 13 00 00 00 00 00 00 04 [10:05:00]Write i2c OK [10:05:00]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 62 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 62 00 1C 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7B 74 01 00 0E 04 04 00 48 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 F0 [10:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7B 74 01 00 0E 04 04 00 48 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 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_GetFieldsCounters done [10:05:01]requested_item shift.num is exist - process it [10:05:01]requested_item shift.opened is exist - process it [10:05:01]req_shift_opened [10:05:01]FM_GetShiftState [10:05:01]SAM_PROTO_GetShiftState [10:05:01]wFMCommunicate request_size=4 [10:05:01]MH_SAM_APDU [10:05:01]CAPDU: 80 13 01 00 [10:05:01]Write to MH i2c: E2 08 00 1D 6C 80 13 01 00 00 00 00 00 06 [10:05:01]Write i2c OK [10:05:01]MH_I2C_Read... [10:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:01]OFD Sender: No OFD packet to send [10:05:01]Read from MH i2c: E2 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0E 00 [10:05:01]MH_I2C_Read... [10:05:01]Read from MH i2c: E2 0E 00 1D 6C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 EB [10:05:01]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:05:01]wFMCommunicate OK [10:05:01]SAM_PROTO_GetShiftState done [10:05:01]FM_GetShiftState done [10:05:01]req_shift_opened done [10:05:01]requested_item shift.open_date is exist - process it [10:05:01]req_shift_open_date [10:05:01]req_shift_open_date done [10:05:01]produce_requested_data done [10:05:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95355,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:05:01]process_action_free close_receipt [10:05:01]json_value_free [10:05:01]json_value_free done [10:05:01]process_json_proto returns [10:05:01]Send response to host [10:05:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95355,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:05:01]free response buf [10:05:01]execute_script done [10:05:01]execute_script returns [10:05:01]free content buf [10:05:01]Sock 6.Close socket [10:05:01]Sock 6.Thread stoped [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:04]accept exits with 9 [10:06:04]New connection [10:06:04]New thread 3066813796 created [10:06:04]Thread 3066957156 joined [10:06:04]Waiting for new connection... [10:06:04] Sock 9.Parse request [10:06:04]Sock 9.Check first char [10:06:04]Sock 9.First char is OK [10:06:04]request: POST /json_proto HTTP/1.0 [10:06:04]Method: POST [10:06:04]URL: /json_proto [10:06:04]Method is POST - this is cgi request [10:06:04]url: /json_proto [10:06:04]query_string will be loaded in cgi processing [10:06:04]execute_cgi json_proto POST (null) [10:06:04]execute_cgi path=json_proto method=POST [10:06:04]POST find Content-Length [10:06:04]Host: 172.17.62.67:8080 [10:06:04]Content-Length: 1188 [10:06:04]Content-Type: application/json [10:06:04] [10:06:04]POST finish read [10:06:04]Found Content-Length = 1188 [10:06:04]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196342\u000A13.03.2024 10:00\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3776792\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:04]execute_script... [10:06:04]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196342\u000A13.03.2024 10:00\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3776792\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:04]POST & json_proto [10:06:04]process_json_proto [10:06:04]json parsed OK: [10:06:04]protocol is kg_v1.0 [10:06:04]action value=print_text [10:06:04]process_action print_text [10:06:04]cmd_print_text [10:06:04]ExternCall_PrintAddStr [10:06:04]wPrintStart [10:06:04]Write to MH i2c: 01 00 00 1E 6C 8A [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: 01 07 00 1E 6C 00 80 00 00 00 FF 0F 1F [10:06:04]RasterBufferAndPrint [10:06:04]line *****ТОВАРНЫЙ ЧЕК***** [10:06:04]line АЗС 6 [10:06:04]line Партнер нефть [10:06:04]line 02508201610067 [10:06:04]line Кассир : Сабырбек у. М. [10:06:04]line Счет N : (1)196342 [10:06:04]line 13.03.2024 10:00 [10:06:04]line ПРОДАЖА [10:06:04]line ТРК (МРК, ГНК): 51 [10:06:04]line Вид ГСМ : 2710194210 [10:06:04]line ДТ-К-5 [10:06:04]line 20.000 x 70.90 [10:06:04]line ИТОГ: 1418.00 [10:06:04]line Тип оплаты: Талоны: Партнер нефть [10:06:04]line 3776792 [10:06:04]line ______________________ [10:06:04]line (подпись) [10:06:04]written 0, free lines is 4095 [10:06:05]Write to MH i2c: 01 00 00 32 6C 9E [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 07 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 07 00 32 6C 00 80 00 00 00 65 0E 98 [10:06:05]RasterBufferAndPrint [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]written 0, free lines is 3689 [10:06:05]process_action print_text done [10:06:05]requested_data is exist [10:06:05]produce_requested_data [10:06:05]requested_item fm.sn is exist - process it [10:06:05]wFMCommunicate request_size=4 [10:06:05]MH_SAM_APDU [10:06:05]CAPDU: 80 11 00 00 [10:06:05]Write to MH i2c: E2 08 00 39 6C 80 11 00 00 00 00 00 00 1F [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:05]Read from MH i2c: E2 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 17 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 17 00 39 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [10:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:06:05]wFMCommunicate OK [10:06:05]requested_item fd.num is exist - process it [10:06:05]SAM_PROTO_GetFieldsCounters [10:06:05]wFMCommunicate request_size=4 [10:06:05]MH_SAM_APDU [10:06:05]CAPDU: 80 13 00 00 [10:06:05]Write to MH i2c: E2 08 00 3A 6C 80 13 00 00 00 00 00 00 22 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:05]Read from MH i2c: E2 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 62 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 62 00 3A 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7B 74 01 00 0E 04 04 00 48 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 0E [10:06:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7B 74 01 00 0E 04 04 00 48 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 [10:06:05]wFMCommunicate OK [10:06:05]SAM_PROTO_GetFieldsCounters done [10:06:05]requested_item shift.num is exist - process it [10:06:05]requested_item shift.opened is exist - process it [10:06:05]req_shift_opened [10:06:05]FM_GetShiftState [10:06:05]SAM_PROTO_GetShiftState [10:06:05]wFMCommunicate request_size=4 [10:06:05]MH_SAM_APDU [10:06:05]CAPDU: 80 13 01 00 [10:06:05]Write to MH i2c: E2 08 00 3B 6C 80 13 01 00 00 00 00 00 24 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:05]Read from MH i2c: E2 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 0E 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 0E 00 3B 6C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 09 [10:06:05]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:06:05]wFMCommunicate OK [10:06:05]SAM_PROTO_GetShiftState done [10:06:05]FM_GetShiftState done [10:06:05]req_shift_opened done [10:06:05]requested_item shift.open_date is exist - process it [10:06:05]req_shift_open_date [10:06:05]req_shift_open_date done [10:06:05]produce_requested_data done [10:06:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95355,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:06:05]process_action_free print_text [10:06:05]json_value_free [10:06:05]json_value_free done [10:06:05]process_json_proto returns [10:06:05]Send response to host [10:06:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95355,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:06:05]free response buf [10:06:05]execute_script done [10:06:05]execute_script returns [10:06:05]free content buf [10:06:05]Sock 9.Close socket [10:06:05]Sock 9.Thread stoped [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:25]accept exits with 8 [10:06:25]New connection [10:06:25]New thread 3066957156 created [10:06:25]Thread 3066813796 joined [10:06:25]Waiting for new connection... [10:06:25] Sock 8.Parse request [10:06:25]Sock 8.Check first char [10:06:25]Sock 8.First char is OK [10:06:25]request: POST /json_proto HTTP/1.0 [10:06:25]Method: POST [10:06:25]URL: /json_proto [10:06:25]Method is POST - this is cgi request [10:06:25]url: /json_proto [10:06:25]query_string will be loaded in cgi processing [10:06:25]execute_cgi json_proto POST (null) [10:06:25]execute_cgi path=json_proto method=POST [10:06:25]POST find Content-Length [10:06:25]Host: 172.17.62.67:8080 [10:06:25]Content-Length: 677 [10:06:25]Content-Type: application/json [10:06:25] [10:06:25]POST finish read [10:06:25]Found Content-Length = 677 [10:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196344", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:25]execute_script... [10: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)196344", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:25]POST & json_proto [10:06:25]process_json_proto [10:06:25]json parsed OK: [10:06:25]protocol is kg_v1.0 [10:06:25]action value=close_receipt [10:06:25]process_action close_receipt [10:06:25]cmd_close_receipt [10:06:25]MH_GetDate [10:06:25]Write to MH i2c: F0 00 00 3C 6C 97 [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 05 00 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: F0 05 00 3C 6C 00 AB 7A F1 65 17 [10:06:25]GetLastDocTimeStamp 1710324308 [10:06:25]current date 1710324395 [10:06:25]FM_GetShiftState [10:06:25]SAM_PROTO_GetShiftState [10:06:25]wFMCommunicate request_size=4 [10:06:25]MH_SAM_APDU [10:06:25]CAPDU: 80 13 01 00 [10:06:25]Write to MH i2c: E2 08 00 3D 6C 80 13 01 00 00 00 00 00 26 [10:06:25]Write i2c OK [10:06:25]MH_I2C_Read... [10:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:25]Read from MH i2c: E2 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: E2 0E 00 [10:06:25]MH_I2C_Read... [10:06:25]Read from MH i2c: E2 0E 00 3D 6C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0B [10:06:25]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:06:25]wFMCommunicate OK [10:06:25]SAM_PROTO_GetShiftState done [10:06:25]FM_GetShiftState done [10:06:25]opened in 1710288279 [10:06:25]opened+sec_in_day 1710374679 [10:06:25]quantity*price = 30003 [10:06:25]sum+1 = 30004 [10:06:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 51 13.03.2024 10:06 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95356 ФПД: 159054318045240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100635&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95356&fm=159054318045240&tin=02508201610067®Number=0000000000090555&sum=30000 [10:06:26]StoreToDocumentArchive [10:06:26]shift 328 fd 95356 [10:06:26]save to /storage/0328/doc_00095356 [10:06:26]save last doc name /storage/0328/doc_00095356 to /storage/kkm_last_doc_name [10:06:26]save OK [10:06:26]Clear old archive folders... [10:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:26]tlvbuf is 01A25810 [10:06:26]SAM_PROTO_ClearQueue [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 09 00 00 [10:06:26]Write to MH i2c: E2 08 00 4A 6C 80 09 00 00 00 00 00 00 28 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 4A 6C 00 90 00 2A [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]SAM_PROTO_ClearQueue done [10:06:26]KKMCreateOFDPacket [10:06:26]OFDProtocolAddRootSTLVToBuf [10:06:26]FM_MakeSignedData [10:06:26]FM_MakeSignedData [10:06:26]SAM_PROTO_SignData [10:06:26]wFMCommunicate request_size=4 [10:06:26]MH_SAM_APDU [10:06:26]CAPDU: 80 0D 01 02 [10:06:26]Write to MH i2c: E2 08 00 4B 6C 80 0D 01 02 00 00 00 00 30 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:26]Read from MH i2c: E2 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 [10:06:26]MH_I2C_Read... [10:06:26]Read from MH i2c: E2 03 00 4B 6C 00 90 00 2B [10:06:26]RAPDU: 90 00 [10:06:26]wFMCommunicate OK [10:06:26]wFMCommunicate request_size=255 [10:06:26]MH_SAM_APDU [10: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 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 AB 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 74 01 00 35 04 06 00 90 [10:06:26]Write to MH i2c: E2 02 01 4C 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 AB 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 74 01 00 35 04 06 00 90 00 00 86 [10:06:26]Write i2c OK [10:06:26]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 4C 6C 00 90 00 2C [10:06:27]RAPDU: 90 00 [10:06:27]wFMCommunicate OK [10:06:27]wFMCommunicate request_size=10 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 0D 02 02 05 A8 B8 20 88 38 [10:06:27]Write to MH i2c: E2 0D 00 4D 6C 80 0D 02 02 05 00 A8 B8 20 88 38 00 00 7D [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 03 00 4D 6C 00 90 00 2D [10:06:27]RAPDU: 90 00 [10:06:27]wFMCommunicate OK [10:06:27]wFMCommunicate request_size=4 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 0D 03 02 [10:06:27]Write to MH i2c: E2 08 00 4E 6C 80 0D 03 02 00 00 00 00 35 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 0B 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 0B 00 4E 6C 00 B6 BB 92 04 D9 02 15 2E 90 00 5B [10:06:27]RAPDU: B6 BB 92 04 D9 02 15 2E 90 00 [10:06:27]wFMCommunicate OK [10:06:27]SAM_PROTO_SignData done [10:06:27]FM_MakeSignedData done [10:06:27]CreateOFDProtocolMessage [10:06:27]wFMCommunicate request_size=4 [10:06:27]MH_SAM_APDU [10:06:27]CAPDU: 80 11 00 00 [10:06:27]Write to MH i2c: E2 08 00 4F 6C 80 11 00 00 00 00 00 00 35 [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:27]Read from MH i2c: E2 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 17 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: E2 17 00 4F 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 85 [10:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:06:27]wFMCommunicate OK [10:06:27]CreateOFDProtocolMessage done [10:06:27]OFDSenderStorePacket 95356 [10:06:27]StoreOFDPacket docnum=95356 [10:06:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C4 02 07 01 3A FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 AB 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 74 01 00 35 04 06 00 90 A8 B8 20 88 38 B6 BB 92 04 D9 02 15 2E [10:06:27]CheckFolder [10:06:27]dirname=/storage/ofd_packets [10:06:27]CheckFolder done [10:06:27]ProducePacketName [10:06:27]name=ofd_packets/00095356 [10:06:27]NVStorageSaveData ofd_packets/00095356 [10:06:27]File name is /storage/ofd_packets/00095356 [10:06:27]Write 301 bytes [10:06:27]NVStorageSaveData done [10:06:27]OFDSenderStorePacket done [10:06:27]KKMCreateOFDPacket done [10:06:27]NVStorageSaveData kkm_last_timestamp [10:06:27]File name is /storage/kkm_last_timestamp [10:06:27]Write 4 bytes [10:06:27]NVStorageSaveData done [10:06:27]ExternCall_PrintAddStr [10:06:27]wPrintStart [10:06:27]Write to MH i2c: 01 00 00 50 6C BC [10:06:27]Write i2c OK [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 07 00 [10:06:27]MH_I2C_Read... [10:06:27]Read from MH i2c: 01 07 00 50 6C 00 80 00 00 00 FF 0F 51 [10:06:27]RasterBufferAndPrint [10:06:27]line Счет N : (1)196344 [10:06:27]line ИНН: 02508201610067 [10:06:27]line Контрольно-Кассовый Чек [10:06:27]line ПРОДАЖА [10:06:27]line ТРК (МРК, ГНК) : 22 [10:06:27]line Товар: 2710124130 [10:06:27]line Аи-92-К-5 [10:06:27]line 4.770 * 62.90 [10:06:27]line = 300.03 [10:06:27]line НДС 12% НСП 1% [10:06:27]line > о реализуемом товаре [10:06:27]line ОКРУГЛЕНИЕ: -0.03 [10:06:27]line ИТОГО: 300.00 [10:06:27]line Внесено: 300.00 [10:06:27]line СДАЧА: 0.00 [10:06:27]line НСП 1% : 2.65 [10:06:27]line НДС 12% : 31.86 [10:06:27]line Наличными: 300.00 [10:06:27]line Безнал.: 0.00 [10:06:27]line Место: АЗС № 6 "Партнер Нефть" [10:06:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:06:27]line СНО: Общий режим [10:06:27]line Чек 51 13.03.2024 10:06 [10:06:27]line Смена: 328 ФФД: 1.0 [10:06:27]line ЗНМ: 0300000009 [10:06:27]line РНМ: 0000000000090555 [10:06:27]line Версия ККМ: 001 [10:06:27]line ФМ: 0000000000874811 [10:06:27]line ФД: 95356 [10:06:27]line ФПД: 159054318045240 [10:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100635&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95356&fm=159054318045240&tin=02508201610067®Number=0000000000090555&sum=30000 [10:06:27]OFD Sender: Processing packet 95356 [packets to send 30, broken 29] [10:06:27]ProducePacketName [10:06:27]name=ofd_packets/00095356 [10:06:27]OFD Sender: To server: pG, [10:06:27]CommunicateWithHost lk.salyk.kg:30040 [10:06:27]ConnectInit lk.salyk.kg [10:06:27]written 0, free lines is 4095 [10:06:27]Connected sock=10 [10: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 34 38 31 31 0F 01 00 00 C4 02 07 01 3A FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 AB 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7C 74 01 00 35 04 06 00 90 A8 B8 20 88 38 B6 BB 92 04 D9 02 15 2E [10:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AA B1 47 00 36 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 34 38 31 31 10 04 04 00 7C 74 01 00 F4 03 04 00 FF 25 F1 65 B6 04 01 00 00 36 41 65 D7 37 34 1D FB [10:06:27]CommunicateWithHost err = 0 [10:06:27]CheckOFDResponse [10:06:27]1017 (14) - 77093643461234 [10:06:27]1041 (16) - 0000000000874811 [10:06:27]1040 (4) - 95356 [10:06:27]1012 (4) - 13.03.2024 04:05 [10:06:27]1206 (1) - 0 [10:06:27]OFD Sender: Remove packet 95356 [10:06:27]ProducePacketName [10:06:27]name=ofd_packets/00095356 [10:06:27]NVStorageDeleteData [10:06:28]Write to MH i2c: 01 00 00 7B 6C E7 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: 01 07 00 7B 6C 00 80 00 00 00 48 0D C3 [10:06:28]RasterBufferAndPrint [10:06:28]line [10:06:28]line [10:06:28]line [10:06:28]line [10:06:28]line [10:06:28]written 0, free lines is 3406 [10:06:28]process_action close_receipt done [10:06:28]requested_data is exist [10:06:28]produce_requested_data [10:06:28]requested_item fm.sn is exist - process it [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 11 00 00 [10:06:28]Write to MH i2c: E2 08 00 82 6C 80 11 00 00 00 00 00 00 68 [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 17 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 17 00 82 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B8 [10:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:06:28]wFMCommunicate OK [10:06:28]requested_item fd.num is exist - process it [10:06:28]SAM_PROTO_GetFieldsCounters [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 13 00 00 [10:06:28]Write to MH i2c: E2 08 00 83 6C 80 13 00 00 00 00 00 00 6B [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 62 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 62 00 83 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7C 74 01 00 0E 04 04 00 48 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 5B [10:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7C 74 01 00 0E 04 04 00 48 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 [10:06:28]wFMCommunicate OK [10:06:28]SAM_PROTO_GetFieldsCounters done [10:06:28]requested_item shift.num is exist - process it [10:06:28]requested_item shift.opened is exist - process it [10:06:28]req_shift_opened [10:06:28]FM_GetShiftState [10:06:28]SAM_PROTO_GetShiftState [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 13 01 00 [10:06:28]Write to MH i2c: E2 08 00 84 6C 80 13 01 00 00 00 00 00 6D [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0E 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0E 00 84 6C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 52 [10:06:28]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:06:28]wFMCommunicate OK [10:06:28]SAM_PROTO_GetShiftState done [10:06:28]FM_GetShiftState done [10:06:28]req_shift_opened done [10:06:28]requested_item shift.open_date is exist - process it [10:06:28]req_shift_open_date [10:06:28]req_shift_open_date done [10:06:28]produce_requested_data done [10:06:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95356,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:06:28]process_action_free close_receipt [10:06:28]json_value_free [10:06:28]json_value_free done [10:06:28]process_json_proto returns [10:06:28]Send response to host [10:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95356,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:06:28]free response buf [10:06:28]execute_script done [10:06:28]execute_script returns [10:06:28]free content buf [10:06:28]Sock 8.Close socket [10:06:28]Sock 8.Thread stoped [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:34]accept exits with 9 [10:06:34]New connection [10:06:34]New thread 3066813796 created [10:06:34]Thread 3066957156 joined [10:06:34]Waiting for new connection... [10:06:34] Sock 9.Parse request [10:06:34]Sock 9.Check first char [10:06:34]Sock 9.First char is OK [10:06:34]request: POST /json_proto HTTP/1.0 [10:06:34]Method: POST [10:06:34]URL: /json_proto [10:06:34]Method is POST - this is cgi request [10:06:34]url: /json_proto [10:06:34]query_string will be loaded in cgi processing [10:06:34]execute_cgi json_proto POST (null) [10:06:34]execute_cgi path=json_proto method=POST [10:06:34]POST find Content-Length [10:06:34]Host: 172.17.62.67:8080 [10:06:34]Content-Length: 805 [10:06:34]Content-Type: application/json [10:06:34] [10:06:34]POST finish read [10:06:34]Found Content-Length = 805 [10:06:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196343", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:34]execute_script... [10:06: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)196343", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:34]POST & json_proto [10:06:34]process_json_proto [10:06:34]json parsed OK: [10:06:34]protocol is kg_v1.0 [10:06:34]action value=close_receipt [10:06:34]process_action close_receipt [10:06:34]cmd_close_receipt [10:06:34]MH_GetDate [10:06:34]Write to MH i2c: F0 00 00 85 6C E0 [10:06:34]Write i2c OK [10:06:34]MH_I2C_Read... [10:06:34]Read from MH i2c: F0 [10:06:34]MH_I2C_Read... [10:06:34]Read from MH i2c: F0 05 00 [10:06:34]MH_I2C_Read... [10:06:34]Read from MH i2c: F0 05 00 85 6C 00 B4 7A F1 65 69 [10:06:34]GetLastDocTimeStamp 1710324395 [10:06:34]current date 1710324404 [10:06:34]FM_GetShiftState [10:06:34]SAM_PROTO_GetShiftState [10:06:34]wFMCommunicate request_size=4 [10:06:34]MH_SAM_APDU [10:06:34]CAPDU: 80 13 01 00 [10:06:34]Write to MH i2c: E2 08 00 86 6C 80 13 01 00 00 00 00 00 6F [10:06:34]Write i2c OK [10:06:34]MH_I2C_Read... [10:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:34]Read from MH i2c: E2 [10:06:34]MH_I2C_Read... [10:06:34]Read from MH i2c: E2 0E 00 [10:06:34]MH_I2C_Read... [10:06:34]Read from MH i2c: E2 0E 00 86 6C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 54 [10:06:34]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:06:34]wFMCommunicate OK [10:06:34]SAM_PROTO_GetShiftState done [10:06:34]FM_GetShiftState done [10:06:34]opened in 1710288279 [10:06:34]opened+sec_in_day 1710374679 [10:06:34]quantity*price = 30003 [10:06:34]sum+1 = 30004 [10:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.03 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.03 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 52 13.03.2024 10:06 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95357 ФПД: 40729854459363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100644&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95357&fm=40729854459363&tin=02508201610067®Number=0000000000090555&sum=30003 [10:06:35]StoreToDocumentArchive [10:06:35]shift 328 fd 95357 [10:06:35]save to /storage/0328/doc_00095357 [10:06:35]save last doc name /storage/0328/doc_00095357 to /storage/kkm_last_doc_name [10:06:35]save OK [10:06:35]Clear old archive folders... [10:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:35]tlvbuf is 01AB4CC0 [10:06:35]SAM_PROTO_ClearQueue [10:06:35]wFMCommunicate request_size=4 [10:06:35]MH_SAM_APDU [10:06:35]CAPDU: 80 09 00 00 [10:06:35]Write to MH i2c: E2 08 00 93 6C 80 09 00 00 00 00 00 00 71 [10:06:35]Write i2c OK [10:06:35]MH_I2C_Read... [10:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:35]Read from MH i2c: E2 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 03 00 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 03 00 93 6C 00 90 00 73 [10:06:35]RAPDU: 90 00 [10:06:35]wFMCommunicate OK [10:06:35]SAM_PROTO_ClearQueue done [10:06:35]KKMCreateOFDPacket [10:06:35]OFDProtocolAddRootSTLVToBuf [10:06:35]FM_MakeSignedData [10:06:35]FM_MakeSignedData [10:06:35]SAM_PROTO_SignData [10:06:35]wFMCommunicate request_size=4 [10:06:35]MH_SAM_APDU [10:06:35]CAPDU: 80 0D 01 02 [10:06:35]Write to MH i2c: E2 08 00 94 6C 80 0D 01 02 00 00 00 00 79 [10:06:35]Write i2c OK [10:06:35]MH_I2C_Read... [10:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:35]Read from MH i2c: E2 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 03 00 [10:06:35]MH_I2C_Read... [10:06:35]Read from MH i2c: E2 03 00 94 6C 00 90 00 74 [10:06:35]RAPDU: 90 00 [10:06:35]wFMCommunicate OK [10:06:35]wFMCommunicate request_size=255 [10:06:35]MH_SAM_APDU [10:06:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B4 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 74 01 00 35 04 06 00 25 [10:06:35]Write to MH i2c: E2 02 01 95 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B4 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 74 01 00 35 04 06 00 25 00 00 75 [10:06:35]Write i2c OK [10:06:35]MH_I2C_Read... [10:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:36]Read from MH i2c: E2 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 03 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 03 00 95 6C 00 90 00 75 [10:06:36]RAPDU: 90 00 [10:06:36]wFMCommunicate OK [10:06:36]wFMCommunicate request_size=10 [10:06:36]MH_SAM_APDU [10:06:36]CAPDU: 80 0D 02 02 05 0B 28 81 BD E3 [10:06:36]Write to MH i2c: E2 0D 00 96 6C 80 0D 02 02 05 00 0B 28 81 BD E3 00 00 DA [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:36]Read from MH i2c: E2 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 03 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 03 00 96 6C 00 90 00 76 [10:06:36]RAPDU: 90 00 [10:06:36]wFMCommunicate OK [10:06:36]wFMCommunicate request_size=4 [10:06:36]MH_SAM_APDU [10:06:36]CAPDU: 80 0D 03 02 [10:06:36]Write to MH i2c: E2 08 00 97 6C 80 0D 03 02 00 00 00 00 7E [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:36]Read from MH i2c: E2 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 0B 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 0B 00 97 6C 00 FC B6 F3 DC 05 77 B3 EB 90 00 1A [10:06:36]RAPDU: FC B6 F3 DC 05 77 B3 EB 90 00 [10:06:36]wFMCommunicate OK [10:06:36]SAM_PROTO_SignData done [10:06:36]FM_MakeSignedData done [10:06:36]CreateOFDProtocolMessage [10:06:36]wFMCommunicate request_size=4 [10:06:36]MH_SAM_APDU [10:06:36]CAPDU: 80 11 00 00 [10:06:36]Write to MH i2c: E2 08 00 98 6C 80 11 00 00 00 00 00 00 7E [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:36]Read from MH i2c: E2 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 17 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 17 00 98 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CE [10:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:06:36]wFMCommunicate OK [10:06:36]CreateOFDProtocolMessage done [10:06:36]OFDSenderStorePacket 95357 [10:06:36]StoreOFDPacket docnum=95357 [10:06:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DF BF 07 01 44 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 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B4 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 74 01 00 35 04 06 00 25 0B 28 81 BD E3 FC B6 F3 DC 05 77 B3 EB [10:06:36]CheckFolder [10:06:36]dirname=/storage/ofd_packets [10:06:36]CheckFolder done [10:06:36]ProducePacketName [10:06:36]name=ofd_packets/00095357 [10:06:36]NVStorageSaveData ofd_packets/00095357 [10:06:36]File name is /storage/ofd_packets/00095357 [10:06:36]Write 301 bytes [10:06:36]NVStorageSaveData done [10:06:36]OFDSenderStorePacket done [10:06:36]KKMCreateOFDPacket done [10:06:36]NVStorageSaveData kkm_last_timestamp [10:06:36]File name is /storage/kkm_last_timestamp [10:06:36]Write 4 bytes [10:06:36]NVStorageSaveData done [10:06:36]ExternCall_PrintAddStr [10:06:36]wPrintStart [10:06:36]Write to MH i2c: 01 00 00 99 6C 05 [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: 01 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: 01 07 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: 01 07 00 99 6C 00 80 00 00 00 FF 0F 9A [10:06:36]RasterBufferAndPrint [10:06:36]line Счет N : (1)196343 [10:06:36]line ИНН: 02508201610067 [10:06:36]line Контрольно-Кассовый Чек [10:06:36]line ПРОДАЖА [10:06:36]line ТРК (МРК, ГНК) : 12 [10:06:36]line Товар: 2710124130 [10:06:36]line Аи-92-К-5 [10:06:36]line 4.770 * 62.90 [10:06:36]line = 300.03 [10:06:36]line НДС 12% НСП 1% [10:06:36]line > о реализуемом товаре [10:06:36]line ИТОГО: 300.03 [10:06:36]line НСП 1% : 2.65 [10:06:36]line НДС 12% : 31.86 [10:06:36]line Наличными: 0.00 [10:06:36]line Безнал.: 300.03 [10:06:36]line Место: АЗС № 6 "Партнер Нефть" [10:06:36]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:06:36]line СНО: Общий режим [10:06:36]line Чек 52 13.03.2024 10:06 [10:06:36]line Смена: 328 ФФД: 1.0 [10:06:36]line ЗНМ: 0300000009 [10:06:36]line РНМ: 0000000000090555 [10:06:36]line Версия ККМ: 001 [10:06:36]line Платежная система: О! деньги [10:06:36]line ФМ: 0000000000874811 [10:06:36]line ФД: 95357 [10:06:36]line ФПД: 40729854459363 [10:06:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100644&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95357&fm=40729854459363&tin=02508201610067®Number=0000000000090555&sum=30003 [10:06:36]written 0, free lines is 4095 [10:06:36]OFD Sender: Processing packet 95357 [packets to send 30, broken 29] [10:06:36]ProducePacketName [10:06:36]name=ofd_packets/00095357 [10:06:36]OFD Sender: To server: pG, [10:06:36]CommunicateWithHost lk.salyk.kg:30040 [10:06:36]ConnectInit lk.salyk.kg [10:06:36]Connected sock=10 [10:06:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DF BF 07 01 44 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 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 B4 7A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 74 01 00 35 04 06 00 25 0B 28 81 BD E3 FC B6 F3 DC 05 77 B3 EB [10:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 02 23 47 00 0B 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7D 74 01 00 F4 03 04 00 07 26 F1 65 B6 04 01 00 00 CA 14 36 0D C5 FB 36 20 [10:06:36]CommunicateWithHost err = 0 [10:06:36]CheckOFDResponse [10:06:36]1017 (14) - 77093643461234 [10:06:36]1041 (16) - 0000000000874811 [10:06:36]1040 (4) - 95357 [10:06:36]1012 (4) - 13.03.2024 04:05 [10:06:36]1206 (1) - 0 [10:06:36]OFD Sender: Remove packet 95357 [10:06:36]ProducePacketName [10:06:36]name=ofd_packets/00095357 [10:06:36]NVStorageDeleteData [10:06:36]Write to MH i2c: 01 00 00 C3 6C 2F [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: 01 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: 01 07 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: 01 07 00 C3 6C 00 80 00 00 00 5D 0D 20 [10:06:36]RasterBufferAndPrint [10:06:36]line [10:06:36]line [10:06:36]line [10:06:36]line [10:06:36]line [10:06:36]written 0, free lines is 3429 [10:06:36]process_action close_receipt done [10:06:36]requested_data is exist [10:06:36]produce_requested_data [10:06:36]requested_item fm.sn is exist - process it [10:06:36]wFMCommunicate request_size=4 [10:06:36]MH_SAM_APDU [10:06:36]CAPDU: 80 11 00 00 [10:06:36]Write to MH i2c: E2 08 00 CA 6C 80 11 00 00 00 00 00 00 B0 [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:36]Read from MH i2c: E2 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 17 00 [10:06:36]MH_I2C_Read... [10:06:36]Read from MH i2c: E2 17 00 CA 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [10:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:06:36]wFMCommunicate OK [10:06:36]requested_item fd.num is exist - process it [10:06:36]SAM_PROTO_GetFieldsCounters [10:06:36]wFMCommunicate request_size=4 [10:06:36]MH_SAM_APDU [10:06:36]CAPDU: 80 13 00 00 [10:06:36]Write to MH i2c: E2 08 00 CB 6C 80 13 00 00 00 00 00 00 B3 [10:06:36]Write i2c OK [10:06:36]MH_I2C_Read... [10:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:37]Read from MH i2c: E2 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 62 00 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 62 00 CB 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 74 01 00 0E 04 04 00 48 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 A7 [10:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7D 74 01 00 0E 04 04 00 48 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 [10:06:37]wFMCommunicate OK [10:06:37]SAM_PROTO_GetFieldsCounters done [10:06:37]requested_item shift.num is exist - process it [10:06:37]requested_item shift.opened is exist - process it [10:06:37]req_shift_opened [10:06:37]FM_GetShiftState [10:06:37]SAM_PROTO_GetShiftState [10:06:37]wFMCommunicate request_size=4 [10:06:37]MH_SAM_APDU [10:06:37]CAPDU: 80 13 01 00 [10:06:37]Write to MH i2c: E2 08 00 CC 6C 80 13 01 00 00 00 00 00 B5 [10:06:37]Write i2c OK [10:06:37]MH_I2C_Read... [10:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:37]Read from MH i2c: E2 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 0E 00 [10:06:37]MH_I2C_Read... [10:06:37]Read from MH i2c: E2 0E 00 CC 6C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 9A [10:06:37]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:06:37]wFMCommunicate OK [10:06:37]SAM_PROTO_GetShiftState done [10:06:37]FM_GetShiftState done [10:06:37]req_shift_opened done [10:06:37]requested_item shift.open_date is exist - process it [10:06:37]req_shift_open_date [10:06:37]req_shift_open_date done [10:06:37]produce_requested_data done [10:06:37]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95357,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:06:37]process_action_free close_receipt [10:06:37]json_value_free [10:06:37]json_value_free done [10:06:37]process_json_proto returns [10:06:37]Send response to host [10:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95357,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:06:37]free response buf [10:06:37]execute_script done [10:06:37]execute_script returns [10:06:37]free content buf [10:06:37]Sock 9.Close socket [10:06:37]Sock 9.Thread stoped [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:00]accept exits with 8 [10:09:00]New connection [10:09:00]New thread 3066957156 created [10:09:00]Thread 3066813796 joined [10:09:00]Waiting for new connection... [10:09:00] Sock 8.Parse request [10:09:00]Sock 8.Check first char [10:09:00]Sock 8.First char is OK [10:09:00]request: POST /json_proto HTTP/1.0 [10:09:00]Method: POST [10:09:00]URL: /json_proto [10:09:00]Method is POST - this is cgi request [10:09:00]url: /json_proto [10:09:00]query_string will be loaded in cgi processing [10:09:00]execute_cgi json_proto POST (null) [10:09:00]execute_cgi path=json_proto method=POST [10:09:00]POST find Content-Length [10:09:00]Host: 172.17.62.67:8080 [10:09:00]Content-Length: 671 [10:09:00]Content-Type: application/json [10:09:00] [10:09:00]POST finish read [10:09:00]Found Content-Length = 671 [10:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.020, "sum" : 640.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:00]execute_script... [10:09: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)196345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.020, "sum" : 640.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:00]POST & json_proto [10:09:00]process_json_proto [10:09:00]json parsed OK: [10:09:00]protocol is kg_v1.0 [10:09:00]action value=close_receipt [10:09:00]process_action close_receipt [10:09:00]cmd_close_receipt [10:09:00]MH_GetDate [10:09:00]Write to MH i2c: F0 00 00 CD 6C 28 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: F0 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: F0 05 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: F0 05 00 CD 6C 00 46 7B F1 65 44 [10:09:00]GetLastDocTimeStamp 1710324404 [10:09:00]current date 1710324550 [10:09:00]FM_GetShiftState [10:09:00]SAM_PROTO_GetShiftState [10:09:00]wFMCommunicate request_size=4 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 13 01 00 [10:09:00]Write to MH i2c: E2 08 00 CE 6C 80 13 01 00 00 00 00 00 B7 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 0E 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 0E 00 CE 6C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 9C [10:09:00]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:09:00]wFMCommunicate OK [10:09:00]SAM_PROTO_GetShiftState done [10:09:00]FM_GetShiftState done [10:09:00]opened in 1710288279 [10:09:00]opened+sec_in_day 1710374679 [10:09:00]quantity*price = 64027 [10:09:00]sum+1 = 64029 [10:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 53 13.03.2024 10:09 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95358 ФПД: 141112868100895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100910&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95358&fm=141112868100895&tin=02508201610067®Number=0000000000090555&sum=64000 [10:09:01]StoreToDocumentArchive [10:09:01]shift 328 fd 95358 [10:09:01]save to /storage/0328/doc_00095358 [10:09:01]save last doc name /storage/0328/doc_00095358 to /storage/kkm_last_doc_name [10:09:01]save OK [10:09:01]Clear old archive folders... [10:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:09:01]tlvbuf is 01A45E90 [10:09:01]SAM_PROTO_ClearQueue [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 09 00 00 [10:09:01]Write to MH i2c: E2 08 00 DB 6C 80 09 00 00 00 00 00 00 B9 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 03 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 03 00 DB 6C 00 90 00 BB [10:09:01]RAPDU: 90 00 [10:09:01]wFMCommunicate OK [10:09:01]SAM_PROTO_ClearQueue done [10:09:01]KKMCreateOFDPacket [10:09:01]OFDProtocolAddRootSTLVToBuf [10:09:01]FM_MakeSignedData [10:09:01]FM_MakeSignedData [10:09:01]SAM_PROTO_SignData [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 0D 01 02 [10:09:01]Write to MH i2c: E2 08 00 DC 6C 80 0D 01 02 00 00 00 00 C1 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 03 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 03 00 DC 6C 00 90 00 BC [10:09:01]RAPDU: 90 00 [10:09:01]wFMCommunicate OK [10:09:01]wFMCommunicate request_size=255 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 46 7B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 74 01 00 35 04 06 00 [10:09:01]Write to MH i2c: E2 02 01 DD 6C 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 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 46 7B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 74 01 00 35 04 06 00 00 00 31 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 03 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 03 00 DD 6C 00 90 00 BD [10:09:01]RAPDU: 90 00 [10:09:01]wFMCommunicate OK [10:09:01]wFMCommunicate request_size=11 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 0D 02 02 06 80 57 66 60 5B 1F [10:09:01]Write to MH i2c: E2 0E 00 DE 6C 80 0D 02 02 06 00 80 57 66 60 5B 1F 00 00 E7 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:01]Read from MH i2c: E2 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 03 00 [10:09:01]MH_I2C_Read... [10:09:01]Read from MH i2c: E2 03 00 DE 6C 00 90 00 BE [10:09:01]RAPDU: 90 00 [10:09:01]wFMCommunicate OK [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 0D 03 02 [10:09:01]Write to MH i2c: E2 08 00 DF 6C 80 0D 03 02 00 00 00 00 C6 [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0B 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0B 00 DF 6C 00 FC BB BB E7 16 22 CA 5D 90 00 7F [10:09:02]RAPDU: FC BB BB E7 16 22 CA 5D 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_SignData done [10:09:02]FM_MakeSignedData done [10:09:02]CreateOFDProtocolMessage [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 11 00 00 [10:09:02]Write to MH i2c: E2 08 00 E0 6C 80 11 00 00 00 00 00 00 C6 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 E0 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 16 [10:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:09:02]wFMCommunicate OK [10:09:02]CreateOFDProtocolMessage done [10:09:02]OFDSenderStorePacket 95358 [10:09:02]StoreOFDPacket docnum=95358 [10:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 FC 32 08 01 AA 47 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 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 46 7B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 74 01 00 35 04 06 00 80 57 66 60 5B 1F FC BB BB E7 16 22 CA 5D [10:09:02]CheckFolder [10:09:02]dirname=/storage/ofd_packets [10:09:02]CheckFolder done [10:09:02]ProducePacketName [10:09:02]name=ofd_packets/00095358 [10:09:02]NVStorageSaveData ofd_packets/00095358 [10:09:02]File name is /storage/ofd_packets/00095358 [10:09:02]Write 302 bytes [10:09:02]NVStorageSaveData done [10:09:02]OFDSenderStorePacket done [10:09:02]KKMCreateOFDPacket done [10:09:02]NVStorageSaveData kkm_last_timestamp [10:09:02]File name is /storage/kkm_last_timestamp [10:09:02]Write 4 bytes [10:09:02]NVStorageSaveData done [10:09:02]ExternCall_PrintAddStr [10:09:02]wPrintStart [10:09:02]Write to MH i2c: 01 00 00 E1 6C 4D [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 E1 6C 00 80 00 00 00 FF 0F E2 [10:09:02]RasterBufferAndPrint [10:09:02]line Счет N : (1)196345 [10:09:02]line ИНН: 02508201610067 [10:09:02]line Контрольно-Кассовый Чек [10:09:02]line ПРОДАЖА [10:09:02]line ТРК (МРК, ГНК) : 33 [10:09:02]line Товар: 2710124130 [10:09:02]line SUPER 92-К-5 [10:09:02]line 10.020 * 63.90 [10:09:02]line = 640.28 [10:09:02]line НДС 12% НСП 1% [10:09:02]line > о реализуемом товаре [10:09:02]line ОКРУГЛЕНИЕ: -0.28 [10:09:02]line ИТОГО: 640.00 [10:09:02]line Внесено: 640.00 [10:09:02]line СДАЧА: 0.00 [10:09:02]line НСП 1% : 5.67 [10:09:02]line НДС 12% : 67.99 [10:09:02]line Наличными: 640.00 [10:09:02]line Безнал.: 0.00 [10:09:02]line Место: АЗС № 6 "Партнер Нефть" [10:09:02]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:09:02]line СНО: Общий режим [10:09:02]line Чек 53 13.03.2024 10:09 [10:09:02]line Смена: 328 ФФД: 1.0 [10:09:02]line ЗНМ: 0300000009 [10:09:02]line РНМ: 0000000000090555 [10:09:02]line Версия ККМ: 001 [10:09:02]line ФМ: 0000000000874811 [10:09:02]line ФД: 95358 [10:09:02]line ФПД: 141112868100895 [10:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T100910&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95358&fm=141112868100895&tin=02508201610067®Number=0000000000090555&sum=64000 [10:09:02]OFD Sender: Processing packet 95358 [packets to send 30, broken 29] [10:09:02]ProducePacketName [10:09:02]name=ofd_packets/00095358 [10:09:02]OFD Sender: To server: pG, [10:09:02]CommunicateWithHost lk.salyk.kg:30040 [10:09:02]ConnectInit lk.salyk.kg [10:09:02]written 0, free lines is 4095 [10:09:02]Connected sock=10 [10:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 FC 32 08 01 AA 47 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 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 46 7B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 74 01 00 35 04 06 00 80 57 66 60 5B 1F FC BB BB E7 16 22 CA 5D [10:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 5C A6 47 00 A1 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7E 74 01 00 F4 03 04 00 99 26 F1 65 B6 04 01 00 00 E8 31 60 D3 4B 8E 66 40 [10:09:02]CommunicateWithHost err = 0 [10:09:02]CheckOFDResponse [10:09:02]1017 (14) - 77093643461234 [10:09:02]1041 (16) - 0000000000874811 [10:09:02]1040 (4) - 95358 [10:09:02]1012 (4) - 13.03.2024 04:07 [10:09:02]1206 (1) - 0 [10:09:02]OFD Sender: Remove packet 95358 [10:09:02]ProducePacketName [10:09:02]name=ofd_packets/00095358 [10:09:02]NVStorageDeleteData [10:09:02]Write to MH i2c: 01 00 00 0C 6D 79 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 0C 6D 00 80 00 00 00 5E 0D 6B [10:09:02]RasterBufferAndPrint [10:09:02]line [10:09:02]line [10:09:02]line [10:09:02]line [10:09:02]line [10:09:02]written 0, free lines is 3428 [10:09:02]process_action close_receipt done [10:09:02]requested_data is exist [10:09:02]produce_requested_data [10:09:02]requested_item fm.sn is exist - process it [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 11 00 00 [10:09:02]Write to MH i2c: E2 08 00 13 6D 80 11 00 00 00 00 00 00 FA [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:03]Read from MH i2c: E2 17 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 17 00 13 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4A [10:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:09:03]wFMCommunicate OK [10:09:03]requested_item fd.num is exist - process it [10:09:03]SAM_PROTO_GetFieldsCounters [10:09:03]wFMCommunicate request_size=4 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 13 00 00 [10:09:03]Write to MH i2c: E2 08 00 14 6D 80 13 00 00 00 00 00 00 FD [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 62 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 62 00 14 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7E 74 01 00 0E 04 04 00 48 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 F5 [10:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7E 74 01 00 0E 04 04 00 48 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 [10:09:03]wFMCommunicate OK [10:09:03]SAM_PROTO_GetFieldsCounters done [10:09:03]requested_item shift.num is exist - process it [10:09:03]requested_item shift.opened is exist - process it [10:09:03]req_shift_opened [10:09:03]FM_GetShiftState [10:09:03]SAM_PROTO_GetShiftState [10:09:03]wFMCommunicate request_size=4 [10:09:03]MH_SAM_APDU [10:09:03]CAPDU: 80 13 01 00 [10:09:03]Write to MH i2c: E2 08 00 15 6D 80 13 01 00 00 00 00 00 FF [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:03]Read from MH i2c: E2 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 0E 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: E2 0E 00 15 6D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E4 [10:09:03]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:09:03]wFMCommunicate OK [10:09:03]SAM_PROTO_GetShiftState done [10:09:03]FM_GetShiftState done [10:09:03]req_shift_opened done [10:09:03]requested_item shift.open_date is exist - process it [10:09:03]req_shift_open_date [10:09:03]req_shift_open_date done [10:09:03]produce_requested_data done [10:09:03]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95358,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:09:03]process_action_free close_receipt [10:09:03]json_value_free [10:09:03]json_value_free done [10:09:03]process_json_proto returns [10:09:03]Send response to host [10:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95358,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:09:03]free response buf [10:09:03]execute_script done [10:09:03]execute_script returns [10:09:03]free content buf [10:09:03]Sock 8.Close socket [10:09:03]Sock 8.Thread stoped [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]accept exits with 9 [10:11:03]New connection [10:11:03]New thread 3066813796 created [10:11:03]Thread 3066957156 joined [10:11:03]Waiting for new connection... [10:11:03] Sock 9.Parse request [10:11:03]Sock 9.Check first char [10:11:03]Sock 9.First char is OK [10:11:03]request: POST /json_proto HTTP/1.0 [10:11:03]Method: POST [10:11:03]URL: /json_proto [10:11:03]Method is POST - this is cgi request [10:11:03]url: /json_proto [10:11:03]query_string will be loaded in cgi processing [10:11:03]execute_cgi json_proto POST (null) [10:11:03]execute_cgi path=json_proto method=POST [10:11:03]POST find Content-Length [10:11:03]Host: 172.17.62.67:8080 [10:11:03]Content-Length: 670 [10:11:03]Content-Type: application/json [10:11:03] [10:11:03]POST finish read [10:11:03]Found Content-Length = 670 [10:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:03]execute_script... [10:11:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 7.830, "sum" : 500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:03]POST & json_proto [10:11:03]process_json_proto [10:11:03]json parsed OK: [10:11:03]protocol is kg_v1.0 [10:11:03]action value=close_receipt [10:11:03]process_action close_receipt [10:11:03]cmd_close_receipt [10:11:03]MH_GetDate [10:11:03]Write to MH i2c: F0 00 00 16 6D 72 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 05 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: F0 05 00 16 6D 00 C1 7B F1 65 09 [10:11:03]GetLastDocTimeStamp 1710324550 [10:11:03]current date 1710324673 [10:11:03]FM_GetShiftState [10:11:03]SAM_PROTO_GetShiftState [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 01 00 [10:11:03]Write to MH i2c: E2 08 00 17 6D 80 13 01 00 00 00 00 00 01 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 17 6D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E6 [10:11:03]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:11:03]wFMCommunicate OK [10:11:03]SAM_PROTO_GetShiftState done [10:11:03]FM_GetShiftState done [10:11:03]opened in 1710288279 [10:11:03]opened+sec_in_day 1710374679 [10:11:03]quantity*price = 50033 [10:11:03]sum+1 = 50035 [10:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 54 13.03.2024 10:11 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95359 ФПД: 92381296366236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101113&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95359&fm=92381296366236&tin=02508201610067®Number=0000000000090555&sum=50000 [10:11:04]StoreToDocumentArchive [10:11:04]shift 328 fd 95359 [10:11:04]save to /storage/0328/doc_00095359 [10:11:04]save last doc name /storage/0328/doc_00095359 to /storage/kkm_last_doc_name [10:11:04]save OK [10:11:04]Clear old archive folders... [10:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:11:04]tlvbuf is 01B21410 [10:11:04]SAM_PROTO_ClearQueue [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 09 00 00 [10:11:04]Write to MH i2c: E2 08 00 24 6D 80 09 00 00 00 00 00 00 03 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 24 6D 00 90 00 05 [10:11:04]RAPDU: 90 00 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_ClearQueue done [10:11:04]KKMCreateOFDPacket [10:11:04]OFDProtocolAddRootSTLVToBuf [10:11:04]FM_MakeSignedData [10:11:04]FM_MakeSignedData [10:11:04]SAM_PROTO_SignData [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 0D 01 02 [10:11:04]Write to MH i2c: E2 08 00 25 6D 80 0D 01 02 00 00 00 00 0B [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 25 6D 00 90 00 06 [10:11:04]RAPDU: 90 00 [10:11:04]wFMCommunicate OK [10:11:04]wFMCommunicate request_size=255 [10:11:04]MH_SAM_APDU [10:11: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 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C1 7B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 74 01 00 35 04 06 00 [10:11:04]Write to MH i2c: E2 02 01 26 6D 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 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C1 7B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 74 01 00 35 04 06 00 00 00 61 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 26 6D 00 90 00 07 [10:11:04]RAPDU: 90 00 [10:11:04]wFMCommunicate OK [10:11:04]wFMCommunicate request_size=11 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 0D 02 02 06 54 05 32 5A 92 9C [10:11:04]Write to MH i2c: E2 0E 00 27 6D 80 0D 02 02 06 00 54 05 32 5A 92 9C 00 00 2D [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 03 00 27 6D 00 90 00 08 [10:11:04]RAPDU: 90 00 [10:11:04]wFMCommunicate OK [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 0D 03 02 [10:11:04]Write to MH i2c: E2 08 00 28 6D 80 0D 03 02 00 00 00 00 10 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 0B 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 0B 00 28 6D 00 98 9A AF C7 DE 05 3C 31 90 00 09 [10:11:04]RAPDU: 98 9A AF C7 DE 05 3C 31 90 00 [10:11:04]wFMCommunicate OK [10:11:04]SAM_PROTO_SignData done [10:11:04]FM_MakeSignedData done [10:11:04]CreateOFDProtocolMessage [10:11:04]wFMCommunicate request_size=4 [10:11:04]MH_SAM_APDU [10:11:04]CAPDU: 80 11 00 00 [10:11:04]Write to MH i2c: E2 08 00 29 6D 80 11 00 00 00 00 00 00 10 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:04]Read from MH i2c: E2 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 17 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: E2 17 00 29 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 60 [10:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:11:04]wFMCommunicate OK [10:11:04]CreateOFDProtocolMessage done [10:11:04]OFDSenderStorePacket 95359 [10:11:04]StoreOFDPacket docnum=95359 [10:11:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C8 D8 08 01 2B 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C1 7B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 74 01 00 35 04 06 00 54 05 32 5A 92 9C 98 9A AF C7 DE 05 3C 31 [10:11:04]CheckFolder [10:11:04]dirname=/storage/ofd_packets [10:11:04]CheckFolder done [10:11:04]ProducePacketName [10:11:04]name=ofd_packets/00095359 [10:11:04]NVStorageSaveData ofd_packets/00095359 [10:11:04]File name is /storage/ofd_packets/00095359 [10:11:04]Write 302 bytes [10:11:04]NVStorageSaveData done [10:11:04]OFDSenderStorePacket done [10:11:04]KKMCreateOFDPacket done [10:11:04]NVStorageSaveData kkm_last_timestamp [10:11:04]File name is /storage/kkm_last_timestamp [10:11:04]Write 4 bytes [10:11:04]NVStorageSaveData done [10:11:04]ExternCall_PrintAddStr [10:11:04]wPrintStart [10:11:04]Write to MH i2c: 01 00 00 2A 6D 97 [10:11:04]Write i2c OK [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: 01 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: 01 07 00 [10:11:04]MH_I2C_Read... [10:11:04]Read from MH i2c: 01 07 00 2A 6D 00 80 00 00 00 FF 0F 2C [10:11:04]RasterBufferAndPrint [10:11:04]line Счет N : (1)196346 [10:11:04]line ИНН: 02508201610067 [10:11:04]line Контрольно-Кассовый Чек [10:11:04]line ПРОДАЖА [10:11:04]line ТРК (МРК, ГНК) : 23 [10:11:04]line Товар: 2710124130 [10:11:04]line SUPER 92-К-5 [10:11:04]line 7.830 * 63.90 [10:11:04]line = 500.34 [10:11:04]line НДС 12% НСП 1% [10:11:04]line > о реализуемом товаре [10:11:04]line ОКРУГЛЕНИЕ: -0.34 [10:11:04]line ИТОГО: 500.00 [10:11:04]line Внесено: 500.00 [10:11:04]line СДАЧА: 0.00 [10:11:04]line НСП 1% : 4.43 [10:11:04]line НДС 12% : 53.13 [10:11:04]line Наличными: 500.00 [10:11:04]line Безнал.: 0.00 [10:11:04]line Место: АЗС № 6 "Партнер Нефть" [10:11:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:11:04]line СНО: Общий режим [10:11:04]line Чек 54 13.03.2024 10:11 [10:11:04]line Смена: 328 ФФД: 1.0 [10:11:04]line ЗНМ: 0300000009 [10:11:04]line РНМ: 0000000000090555 [10:11:04]line Версия ККМ: 001 [10:11:04]line ФМ: 0000000000874811 [10:11:04]line ФД: 95359 [10:11:04]line ФПД: 92381296366236 [10:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101113&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95359&fm=92381296366236&tin=02508201610067®Number=0000000000090555&sum=50000 [10:11:05]OFD Sender: Processing packet 95359 [packets to send 30, broken 29] [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00095359 [10:11:05]OFD Sender: To server: pG, [10:11:05]CommunicateWithHost lk.salyk.kg:30040 [10:11:05]ConnectInit lk.salyk.kg [10:11:05]written 0, free lines is 4095 [10:11:05]Connected sock=10 [10:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C8 D8 08 01 2B 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 96 1E 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 72 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C1 7B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 74 01 00 35 04 06 00 54 05 32 5A 92 9C 98 9A AF C7 DE 05 3C 31 [10:11:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 53 93 47 00 E4 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 7F 74 01 00 F4 03 04 00 14 27 F1 65 B6 04 01 00 00 46 0C E7 52 92 83 01 EA [10:11:05]CommunicateWithHost err = 0 [10:11:05]CheckOFDResponse [10:11:05]1017 (14) - 77093643461234 [10:11:05]1041 (16) - 0000000000874811 [10:11:05]1040 (4) - 95359 [10:11:05]1012 (4) - 13.03.2024 04:09 [10:11:05]1206 (1) - 0 [10:11:05]OFD Sender: Remove packet 95359 [10:11:05]ProducePacketName [10:11:05]name=ofd_packets/00095359 [10:11:05]NVStorageDeleteData [10:11:05]Write to MH i2c: 01 00 00 55 6D C2 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: 01 07 00 55 6D 00 80 00 00 00 53 0D A9 [10:11:05]RasterBufferAndPrint [10:11:05]line [10:11:05]line [10:11:05]line [10:11:05]line [10:11:05]line [10:11:05]written 0, free lines is 3417 [10:11:05]process_action close_receipt done [10:11:05]requested_data is exist [10:11:05]produce_requested_data [10:11:05]requested_item fm.sn is exist - process it [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 11 00 00 [10:11:05]Write to MH i2c: E2 08 00 5C 6D 80 11 00 00 00 00 00 00 43 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 17 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 17 00 5C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 93 [10:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:11:05]wFMCommunicate OK [10:11:05]requested_item fd.num is exist - process it [10:11:05]SAM_PROTO_GetFieldsCounters [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 13 00 00 [10:11:05]Write to MH i2c: E2 08 00 5D 6D 80 13 00 00 00 00 00 00 46 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:05]Read from MH i2c: E2 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 62 00 [10:11:05]MH_I2C_Read... [10:11:05]Read from MH i2c: E2 62 00 5D 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 74 01 00 0E 04 04 00 48 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 42 [10:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 7F 74 01 00 0E 04 04 00 48 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 [10:11:05]wFMCommunicate OK [10:11:05]SAM_PROTO_GetFieldsCounters done [10:11:05]requested_item shift.num is exist - process it [10:11:05]requested_item shift.opened is exist - process it [10:11:05]req_shift_opened [10:11:05]FM_GetShiftState [10:11:05]SAM_PROTO_GetShiftState [10:11:05]wFMCommunicate request_size=4 [10:11:05]MH_SAM_APDU [10:11:05]CAPDU: 80 13 01 00 [10:11:05]Write to MH i2c: E2 08 00 5E 6D 80 13 01 00 00 00 00 00 48 [10:11:05]Write i2c OK [10:11:05]MH_I2C_Read... [10:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:06]Read from MH i2c: E2 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 0E 00 [10:11:06]MH_I2C_Read... [10:11:06]Read from MH i2c: E2 0E 00 5E 6D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2D [10:11:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:11:06]wFMCommunicate OK [10:11:06]SAM_PROTO_GetShiftState done [10:11:06]FM_GetShiftState done [10:11:06]req_shift_opened done [10:11:06]requested_item shift.open_date is exist - process it [10:11:06]req_shift_open_date [10:11:06]req_shift_open_date done [10:11:06]produce_requested_data done [10:11:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95359,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:11:06]process_action_free close_receipt [10:11:06]json_value_free [10:11:06]json_value_free done [10:11:06]process_json_proto returns [10:11:06]Send response to host [10:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95359,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:11:06]free response buf [10:11:06]execute_script done [10:11:06]execute_script returns [10:11:06]free content buf [10:11:06]Sock 9.Close socket [10:11:06]Sock 9.Thread stoped [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:42]accept exits with 8 [10:12:42]New connection [10:12:42]New thread 3066957156 created [10:12:42]Thread 3066813796 joined [10:12:42]Waiting for new connection... [10:12:42] Sock 8.Parse request [10:12:42]Sock 8.Check first char [10:12:42]Sock 8.First char is OK [10:12:42]request: POST /json_proto HTTP/1.0 [10:12:42]Method: POST [10:12:42]URL: /json_proto [10:12:42]Method is POST - this is cgi request [10:12:42]url: /json_proto [10:12:42]query_string will be loaded in cgi processing [10:12:42]execute_cgi json_proto POST (null) [10:12:42]execute_cgi path=json_proto method=POST [10:12:42]POST find Content-Length [10:12:42]Host: 172.17.62.67:8080 [10:12:42]Content-Length: 674 [10:12:42]Content-Type: application/json [10:12:42] [10:12:42]POST finish read [10:12:42]Found Content-Length = 674 [10:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196347", "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" : 70.90, "quantity" : 2.970, "sum" : 210.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:42]execute_script... [10:12:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196347", "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" : 70.90, "quantity" : 2.970, "sum" : 210.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:42]POST & json_proto [10:12:42]process_json_proto [10:12:42]json parsed OK: [10:12:42]protocol is kg_v1.0 [10:12:42]action value=close_receipt [10:12:42]process_action close_receipt [10:12:42]cmd_close_receipt [10:12:42]MH_GetDate [10:12:42]Write to MH i2c: F0 00 00 5F 6D BB [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: F0 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: F0 05 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: F0 05 00 5F 6D 00 24 7C F1 65 B6 [10:12:42]GetLastDocTimeStamp 1710324673 [10:12:42]current date 1710324772 [10:12:42]FM_GetShiftState [10:12:42]SAM_PROTO_GetShiftState [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 13 01 00 [10:12:42]Write to MH i2c: E2 08 00 60 6D 80 13 01 00 00 00 00 00 4A [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 0E 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 0E 00 60 6D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2F [10:12:42]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:12:42]wFMCommunicate OK [10:12:42]SAM_PROTO_GetShiftState done [10:12:42]FM_GetShiftState done [10:12:42]opened in 1710288279 [10:12:42]opened+sec_in_day 1710374679 [10:12:42]quantity*price = 21057 [10:12:42]sum+1 = 21058 [10:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.36 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 55 13.03.2024 10:12 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95360 ФПД: 212035857423667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101252&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95360&fm=212035857423667&tin=02508201610067®Number=0000000000090555&sum=21000 [10:12:43]StoreToDocumentArchive [10:12:43]shift 328 fd 95360 [10:12:43]save to /storage/0328/doc_00095360 [10:12:43]save last doc name /storage/0328/doc_00095360 to /storage/kkm_last_doc_name [10:12:43]save OK [10:12:43]Clear old archive folders... [10:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:12:43]tlvbuf is 01A037A0 [10:12:43]SAM_PROTO_ClearQueue [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 09 00 00 [10:12:43]Write to MH i2c: E2 08 00 6D 6D 80 09 00 00 00 00 00 00 4C [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 6D 6D 00 90 00 4E [10:12:43]RAPDU: 90 00 [10:12:43]wFMCommunicate OK [10:12:43]SAM_PROTO_ClearQueue done [10:12:43]KKMCreateOFDPacket [10:12:43]OFDProtocolAddRootSTLVToBuf [10:12:43]FM_MakeSignedData [10:12:43]FM_MakeSignedData [10:12:43]SAM_PROTO_SignData [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 0D 01 02 [10:12:43]Write to MH i2c: E2 08 00 6E 6D 80 0D 01 02 00 00 00 00 54 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 6E 6D 00 90 00 4F [10:12:43]RAPDU: 90 00 [10:12:43]wFMCommunicate OK [10:12:43]wFMCommunicate request_size=255 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 0B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 41 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 24 7C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 74 01 00 35 04 06 00 C0 D8 71 F6 [10:12:43]Write to MH i2c: E2 02 01 6F 6D 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 9A 0B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 41 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 24 7C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 74 01 00 35 04 06 00 C0 D8 71 F6 00 00 4E [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 6F 6D 00 90 00 50 [10:12:43]RAPDU: 90 00 [10:12:43]wFMCommunicate OK [10:12:43]wFMCommunicate request_size=7 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 0D 02 02 02 1D 33 [10:12:43]Write to MH i2c: E2 0A 00 70 6D 80 0D 02 02 02 00 1D 33 00 00 AB [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 03 00 70 6D 00 90 00 51 [10:12:43]RAPDU: 90 00 [10:12:43]wFMCommunicate OK [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 0D 03 02 [10:12:43]Write to MH i2c: E2 08 00 71 6D 80 0D 03 02 00 00 00 00 59 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0B 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 0B 00 71 6D 00 BF 21 12 86 1A 08 A7 D7 90 00 72 [10:12:43]RAPDU: BF 21 12 86 1A 08 A7 D7 90 00 [10:12:43]wFMCommunicate OK [10:12:43]SAM_PROTO_SignData done [10:12:43]FM_MakeSignedData done [10:12:43]CreateOFDProtocolMessage [10:12:43]wFMCommunicate request_size=4 [10:12:43]MH_SAM_APDU [10:12:43]CAPDU: 80 11 00 00 [10:12:43]Write to MH i2c: E2 08 00 72 6D 80 11 00 00 00 00 00 00 59 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:43]Read from MH i2c: E2 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 17 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: E2 17 00 72 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A9 [10:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:12:43]wFMCommunicate OK [10:12:43]CreateOFDProtocolMessage done [10:12:43]OFDSenderStorePacket 95360 [10:12:43]StoreOFDPacket docnum=95360 [10:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 66 DB 04 01 36 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 9A 0B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 41 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 24 7C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 74 01 00 35 04 06 00 C0 D8 71 F6 1D 33 BF 21 12 86 1A 08 A7 D7 [10:12:43]CheckFolder [10:12:43]dirname=/storage/ofd_packets [10:12:43]CheckFolder done [10:12:43]ProducePacketName [10:12:43]name=ofd_packets/00095360 [10:12:43]NVStorageSaveData ofd_packets/00095360 [10:12:43]File name is /storage/ofd_packets/00095360 [10:12:43]Write 298 bytes [10:12:43]NVStorageSaveData done [10:12:43]OFDSenderStorePacket done [10:12:43]KKMCreateOFDPacket done [10:12:43]NVStorageSaveData kkm_last_timestamp [10:12:43]File name is /storage/kkm_last_timestamp [10:12:43]Write 4 bytes [10:12:43]NVStorageSaveData done [10:12:43]ExternCall_PrintAddStr [10:12:43]wPrintStart [10:12:43]Write to MH i2c: 01 00 00 73 6D E0 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: 01 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: 01 07 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: 01 07 00 73 6D 00 80 00 00 00 FF 0F 75 [10:12:43]RasterBufferAndPrint [10:12:43]line Счет N : (1)196347 [10:12:43]line ИНН: 02508201610067 [10:12:43]line Контрольно-Кассовый Чек [10:12:43]line ПРОДАЖА [10:12:43]line ТРК (МРК, ГНК) : 51 [10:12:43]line Товар: 2710194210 [10:12:43]line ДТ-К-5 [10:12:43]line 2.970 * 70.90 [10:12:43]line = 210.57 [10:12:43]line НДС 12% НСП 1% [10:12:43]line > о реализуемом товаре [10:12:43]line ОКРУГЛЕНИЕ: -0.57 [10:12:43]line ИТОГО: 210.00 [10:12:43]line Внесено: 210.00 [10:12:43]line СДАЧА: 0.00 [10:12:43]line НСП 1% : 1.86 [10:12:43]line НДС 12% : 22.36 [10:12:43]line Наличными: 210.00 [10:12:43]line Безнал.: 0.00 [10:12:43]line Место: АЗС № 6 "Партнер Нефть" [10:12:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:12:43]line СНО: Общий режим [10:12:43]line Чек 55 13.03.2024 10:12 [10:12:43]line Смена: 328 ФФД: 1.0 [10:12:43]line ЗНМ: 0300000009 [10:12:43]line РНМ: 0000000000090555 [10:12:43]line Версия ККМ: 001 [10:12:43]line ФМ: 0000000000874811 [10:12:43]line ФД: 95360 [10:12:43]line ФПД: 212035857423667 [10:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101252&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95360&fm=212035857423667&tin=02508201610067®Number=0000000000090555&sum=21000 [10:12:44]OFD Sender: Processing packet 95360 [packets to send 30, broken 29] [10:12:44]ProducePacketName [10:12:44]name=ofd_packets/00095360 [10:12:44]OFD Sender: To server: pG, [10:12:44]CommunicateWithHost lk.salyk.kg:30040 [10:12:44]ConnectInit lk.salyk.kg [10:12:44]written 0, free lines is 4095 [10:12:44]Write to MH i2c: 01 00 00 9E 6D 0B [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: 01 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: 01 07 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: 01 07 00 9E 6D 00 80 00 00 00 41 0D E0 [10:12:44]RasterBufferAndPrint [10:12:44]line [10:12:44]line [10:12:44]line [10:12:44]line [10:12:44]line [10:12:44]written 0, free lines is 3399 [10:12:44]process_action close_receipt done [10:12:44]requested_data is exist [10:12:44]produce_requested_data [10:12:44]requested_item fm.sn is exist - process it [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 11 00 00 [10:12:44]Write to MH i2c: E2 08 00 A5 6D 80 11 00 00 00 00 00 00 8C [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 17 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 17 00 A5 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DC [10:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:12:44]wFMCommunicate OK [10:12:44]requested_item fd.num is exist - process it [10:12:44]SAM_PROTO_GetFieldsCounters [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 13 00 00 [10:12:44]Write to MH i2c: E2 08 00 A6 6D 80 13 00 00 00 00 00 00 8F [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 62 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 62 00 A6 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 74 01 00 0E 04 04 00 48 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 8F [10:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 80 74 01 00 0E 04 04 00 48 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 [10:12:44]wFMCommunicate OK [10:12:44]SAM_PROTO_GetFieldsCounters done [10:12:44]requested_item shift.num is exist - process it [10:12:44]requested_item shift.opened is exist - process it [10:12:44]req_shift_opened [10:12:44]FM_GetShiftState [10:12:44]SAM_PROTO_GetShiftState [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 13 01 00 [10:12:44]Write to MH i2c: E2 08 00 A7 6D 80 13 01 00 00 00 00 00 91 [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 0E 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 0E 00 A7 6D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 76 [10:12:44]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:12:44]wFMCommunicate OK [10:12:44]SAM_PROTO_GetShiftState done [10:12:44]FM_GetShiftState done [10:12:44]req_shift_opened done [10:12:44]requested_item shift.open_date is exist - process it [10:12:44]req_shift_open_date [10:12:44]req_shift_open_date done [10:12:44]produce_requested_data done [10:12:44]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95360,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:12:44]process_action_free close_receipt [10:12:44]json_value_free [10:12:44]json_value_free done [10:12:44]process_json_proto returns [10:12:44]Send response to host [10:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95360,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:12:44]free response buf [10:12:44]execute_script done [10:12:44]execute_script returns [10:12:44]free content buf [10:12:44]Sock 8.Close socket [10:12:44]Sock 8.Thread stoped [10:12:45]Connected sock=10 [10:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 66 DB 04 01 36 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 9A 0B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 41 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 24 7C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 74 01 00 35 04 06 00 C0 D8 71 F6 1D 33 BF 21 12 86 1A 08 A7 D7 [10:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C6 8D 47 00 2B 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 80 74 01 00 F4 03 04 00 78 27 F1 65 B6 04 01 00 00 44 8A EA 1E 8B 0E A5 3E [10:12:45]CommunicateWithHost err = 0 [10:12:45]CheckOFDResponse [10:12:45]1017 (14) - 77093643461234 [10:12:45]1041 (16) - 0000000000874811 [10:12:45]1040 (4) - 95360 [10:12:45]1012 (4) - 13.03.2024 04:11 [10:12:45]1206 (1) - 0 [10:12:45]OFD Sender: Remove packet 95360 [10:12:45]ProducePacketName [10:12:45]name=ofd_packets/00095360 [10:12:45]NVStorageDeleteData [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:36]accept exits with 9 [10:14:36]New connection [10:14:36]New thread 3066813796 created [10:14:36]Thread 3066957156 joined [10:14:36]Waiting for new connection... [10:14:36] Sock 9.Parse request [10:14:36]Sock 9.Check first char [10:14:36]Sock 9.First char is OK [10:14:36]request: POST /json_proto HTTP/1.0 [10:14:36]Method: POST [10:14:36]URL: /json_proto [10:14:36]Method is POST - this is cgi request [10:14:36]url: /json_proto [10:14:36]query_string will be loaded in cgi processing [10:14:36]execute_cgi json_proto POST (null) [10:14:36]execute_cgi path=json_proto method=POST [10:14:36]POST find Content-Length [10:14:36]Host: 172.17.62.67:8080 [10:14:36]Content-Length: 802 [10:14:36]Content-Type: application/json [10:14:36] [10:14:36]POST finish read [10:14:36]Found Content-Length = 802 [10:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196348", "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" : 70.90, "quantity" : 6.350, "sum" : 450.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:36]execute_script... [10: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 : (1)196348", "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" : 70.90, "quantity" : 6.350, "sum" : 450.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:36]POST & json_proto [10:14:36]process_json_proto [10:14:36]json parsed OK: [10:14:36]protocol is kg_v1.0 [10:14:36]action value=close_receipt [10:14:36]process_action close_receipt [10:14:36]cmd_close_receipt [10:14:36]MH_GetDate [10:14:36]Write to MH i2c: F0 00 00 A8 6D 04 [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: F0 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: F0 05 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: F0 05 00 A8 6D 00 97 7C F1 65 72 [10:14:36]GetLastDocTimeStamp 1710324772 [10:14:36]current date 1710324887 [10:14:36]FM_GetShiftState [10:14:36]SAM_PROTO_GetShiftState [10:14:36]wFMCommunicate request_size=4 [10:14:36]MH_SAM_APDU [10:14:36]CAPDU: 80 13 01 00 [10:14:36]Write to MH i2c: E2 08 00 A9 6D 80 13 01 00 00 00 00 00 93 [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:37]Read from MH i2c: E2 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 0E 00 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 0E 00 A9 6D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 78 [10:14:37]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:14:37]wFMCommunicate OK [10:14:37]SAM_PROTO_GetShiftState done [10:14:37]FM_GetShiftState done [10:14:37]opened in 1710288279 [10:14:37]opened+sec_in_day 1710374679 [10:14:37]quantity*price = 45021 [10:14:37]sum+1 = 45023 [10:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.22 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.22 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 56 13.03.2024 10:14 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95361 ФПД: 263488932031255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101447&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95361&fm=263488932031255&tin=02508201610067®Number=0000000000090555&sum=45022 [10:14:38]StoreToDocumentArchive [10:14:38]shift 328 fd 95361 [10:14:38]save to /storage/0328/doc_00095361 [10:14:38]save last doc name /storage/0328/doc_00095361 to /storage/kkm_last_doc_name [10:14:38]save OK [10:14:38]Clear old archive folders... [10:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:14:38]tlvbuf is 01AFA2C0 [10:14:38]SAM_PROTO_ClearQueue [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 09 00 00 [10:14:38]Write to MH i2c: E2 08 00 B6 6D 80 09 00 00 00 00 00 00 95 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 B6 6D 00 90 00 97 [10:14:38]RAPDU: 90 00 [10:14:38]wFMCommunicate OK [10:14:38]SAM_PROTO_ClearQueue done [10:14:38]KKMCreateOFDPacket [10:14:38]OFDProtocolAddRootSTLVToBuf [10:14:38]FM_MakeSignedData [10:14:38]FM_MakeSignedData [10:14:38]SAM_PROTO_SignData [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 0D 01 02 [10:14:38]Write to MH i2c: E2 08 00 B7 6D 80 0D 01 02 00 00 00 00 9D [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 B7 6D 00 90 00 98 [10:14:38]RAPDU: 90 00 [10:14:38]wFMCommunicate OK [10:14:38]wFMCommunicate request_size=255 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 18 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DE AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 97 7C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 74 01 00 35 04 06 00 EF A4 4C 32 [10:14:38]Write to MH i2c: E2 02 01 B8 6D 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 CE 18 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DE AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 97 7C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 74 01 00 35 04 06 00 EF A4 4C 32 00 00 8F [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 B8 6D 00 90 00 99 [10:14:38]RAPDU: 90 00 [10:14:38]wFMCommunicate OK [10:14:38]wFMCommunicate request_size=7 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 0D 02 02 02 2B 17 [10:14:38]Write to MH i2c: E2 0A 00 B9 6D 80 0D 02 02 02 00 2B 17 00 00 E6 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 03 00 B9 6D 00 90 00 9A [10:14:38]RAPDU: 90 00 [10:14:38]wFMCommunicate OK [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 0D 03 02 [10:14:38]Write to MH i2c: E2 08 00 BA 6D 80 0D 03 02 00 00 00 00 A2 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0B 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0B 00 BA 6D 00 B0 B9 9F 97 F6 37 26 A5 90 00 3A [10:14:38]RAPDU: B0 B9 9F 97 F6 37 26 A5 90 00 [10:14:38]wFMCommunicate OK [10:14:38]SAM_PROTO_SignData done [10:14:38]FM_MakeSignedData done [10:14:38]CreateOFDProtocolMessage [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 11 00 00 [10:14:38]Write to MH i2c: E2 08 00 BB 6D 80 11 00 00 00 00 00 00 A2 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 17 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 17 00 BB 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F2 [10:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:14:38]wFMCommunicate OK [10:14:38]CreateOFDProtocolMessage done [10:14:38]OFDSenderStorePacket 95361 [10:14:38]StoreOFDPacket docnum=95361 [10:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 4A AD 04 01 2C 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 CE 18 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DE AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 97 7C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 74 01 00 35 04 06 00 EF A4 4C 32 2B 17 B0 B9 9F 97 F6 37 26 A5 [10:14:38]CheckFolder [10:14:38]dirname=/storage/ofd_packets [10:14:38]CheckFolder done [10:14:38]ProducePacketName [10:14:38]name=ofd_packets/00095361 [10:14:38]NVStorageSaveData ofd_packets/00095361 [10:14:38]File name is /storage/ofd_packets/00095361 [10:14:38]Write 298 bytes [10:14:38]NVStorageSaveData done [10:14:38]OFDSenderStorePacket done [10:14:38]KKMCreateOFDPacket done [10:14:38]NVStorageSaveData kkm_last_timestamp [10:14:38]File name is /storage/kkm_last_timestamp [10:14:38]Write 4 bytes [10:14:38]NVStorageSaveData done [10:14:38]ExternCall_PrintAddStr [10:14:38]wPrintStart [10:14:38]Write to MH i2c: 01 00 00 BC 6D 29 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: 01 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: 01 07 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: 01 07 00 BC 6D 00 80 00 00 00 FF 0F BE [10:14:38]RasterBufferAndPrint [10:14:38]line Счет N : (1)196348 [10:14:38]line ИНН: 02508201610067 [10:14:38]line Контрольно-Кассовый Чек [10:14:38]line ПРОДАЖА [10:14:38]line ТРК (МРК, ГНК) : 51 [10:14:38]line Товар: 2710194210 [10:14:38]line ДТ-К-5 [10:14:38]line 6.350 * 70.90 [10:14:38]line = 450.22 [10:14:38]line НДС 12% НСП 1% [10:14:38]line > о реализуемом товаре [10:14:38]line ИТОГО: 450.22 [10:14:38]line НСП 1% : 3.98 [10:14:38]line НДС 12% : 47.81 [10:14:38]line Наличными: 0.00 [10:14:38]line Безнал.: 450.22 [10:14:38]line Место: АЗС № 6 "Партнер Нефть" [10:14:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:14:38]line СНО: Общий режим [10:14:38]line Чек 56 13.03.2024 10:14 [10:14:38]line Смена: 328 ФФД: 1.0 [10:14:38]line ЗНМ: 0300000009 [10:14:38]line РНМ: 0000000000090555 [10:14:38]line Версия ККМ: 001 [10:14:38]line Платежная система: О! деньги [10:14:38]line ФМ: 0000000000874811 [10:14:38]line ФД: 95361 [10:14:38]line ФПД: 263488932031255 [10:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101447&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95361&fm=263488932031255&tin=02508201610067®Number=0000000000090555&sum=45022 [10:14:39]written 0, free lines is 4095 [10:14:39]OFD Sender: Processing packet 95361 [packets to send 30, broken 29] [10:14:39]ProducePacketName [10:14:39]name=ofd_packets/00095361 [10:14:39]OFD Sender: To server: pG, [10:14:39]CommunicateWithHost lk.salyk.kg:30040 [10:14:39]ConnectInit lk.salyk.kg [10:14:39]Connected sock=10 [10:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 4A AD 04 01 2C 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 CE 18 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 DE AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DE AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DE AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 97 7C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 74 01 00 35 04 06 00 EF A4 4C 32 2B 17 B0 B9 9F 97 F6 37 26 A5 [10:14:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 65 4D 47 00 9C 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 81 74 01 00 F4 03 04 00 EA 27 F1 65 B6 04 01 00 00 75 98 49 FD D3 A2 B3 46 [10:14:39]CommunicateWithHost err = 0 [10:14:39]CheckOFDResponse [10:14:39]1017 (14) - 77093643461234 [10:14:39]1041 (16) - 0000000000874811 [10:14:39]1040 (4) - 95361 [10:14:39]1012 (4) - 13.03.2024 04:13 [10:14:39]1206 (1) - 0 [10:14:39]OFD Sender: Remove packet 95361 [10:14:39]ProducePacketName [10:14:39]name=ofd_packets/00095361 [10:14:39]NVStorageDeleteData [10:14:39]Write to MH i2c: 01 00 00 E6 6D 53 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: 01 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: 01 07 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: 01 07 00 E6 6D 00 80 00 00 00 5A 0D 41 [10:14:39]RasterBufferAndPrint [10:14:39]line [10:14:39]line [10:14:39]line [10:14:39]line [10:14:39]line [10:14:39]written 0, free lines is 3422 [10:14:39]process_action close_receipt done [10:14:39]requested_data is exist [10:14:39]produce_requested_data [10:14:39]requested_item fm.sn is exist - process it [10:14:39]wFMCommunicate request_size=4 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 11 00 00 [10:14:39]Write to MH i2c: E2 08 00 ED 6D 80 11 00 00 00 00 00 00 D4 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 17 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 17 00 ED 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [10:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:14:39]wFMCommunicate OK [10:14:39]requested_item fd.num is exist - process it [10:14:39]SAM_PROTO_GetFieldsCounters [10:14:39]wFMCommunicate request_size=4 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 13 00 00 [10:14:39]Write to MH i2c: E2 08 00 EE 6D 80 13 00 00 00 00 00 00 D7 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 62 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 62 00 EE 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 81 74 01 00 0E 04 04 00 48 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 DB [10:14:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 81 74 01 00 0E 04 04 00 48 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 [10:14:39]wFMCommunicate OK [10:14:39]SAM_PROTO_GetFieldsCounters done [10:14:39]requested_item shift.num is exist - process it [10:14:39]requested_item shift.opened is exist - process it [10:14:39]req_shift_opened [10:14:39]FM_GetShiftState [10:14:39]SAM_PROTO_GetShiftState [10:14:39]wFMCommunicate request_size=4 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 13 01 00 [10:14:39]Write to MH i2c: E2 08 00 EF 6D 80 13 01 00 00 00 00 00 D9 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 0E 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 0E 00 EF 6D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BE [10:14:39]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:14:39]wFMCommunicate OK [10:14:39]SAM_PROTO_GetShiftState done [10:14:39]FM_GetShiftState done [10:14:39]req_shift_opened done [10:14:39]requested_item shift.open_date is exist - process it [10:14:39]req_shift_open_date [10:14:39]req_shift_open_date done [10:14:39]produce_requested_data done [10:14:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95361,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:14:39]process_action_free close_receipt [10:14:39]json_value_free [10:14:39]json_value_free done [10:14:39]process_json_proto returns [10:14:39]Send response to host [10:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95361,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:14:39]free response buf [10:14:39]execute_script done [10:14:39]execute_script returns [10:14:39]free content buf [10:14:39]Sock 9.Close socket [10:14:39]Sock 9.Thread stoped [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]accept exits with 8 [10:16:24]New connection [10:16:24]New thread 3066957156 created [10:16:24]Thread 3066813796 joined [10:16:24]Waiting for new connection... [10:16:24] Sock 8.Parse request [10:16:24]Sock 8.Check first char [10:16:24]Sock 8.First char is OK [10:16:24]request: POST /json_proto HTTP/1.0 [10:16:24]Method: POST [10:16:24]URL: /json_proto [10:16:24]Method is POST - this is cgi request [10:16:24]url: /json_proto [10:16:24]query_string will be loaded in cgi processing [10:16:24]execute_cgi json_proto POST (null) [10:16:24]execute_cgi path=json_proto method=POST [10:16:24]POST find Content-Length [10:16:24]Host: 172.17.62.67:8080 [10:16:24]Content-Length: 625 [10:16:24]Content-Type: application/json [10:16:24] [10:16:24]POST finish read [10:16:24]Found Content-Length = 625 [10:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11539", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD 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" ] } } [10:16:24]execute_script... [10:16:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11539", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD 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" ] } } [10:16:24]POST & json_proto [10:16:24]process_json_proto [10:16:24]json parsed OK: [10:16:24]protocol is kg_v1.0 [10:16:24]action value=close_receipt [10:16:24]process_action close_receipt [10:16:24]cmd_close_receipt [10:16:24]MH_GetDate [10:16:24]Write to MH i2c: F0 00 00 F0 6D 4C [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: F0 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: F0 05 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: F0 05 00 F0 6D 00 02 7D F1 65 26 [10:16:24]GetLastDocTimeStamp 1710324887 [10:16:24]current date 1710324994 [10:16:24]FM_GetShiftState [10:16:24]SAM_PROTO_GetShiftState [10:16:24]wFMCommunicate request_size=4 [10:16:24]MH_SAM_APDU [10:16:24]CAPDU: 80 13 01 00 [10:16:24]Write to MH i2c: E2 08 00 F1 6D 80 13 01 00 00 00 00 00 DB [10:16:24]Write i2c OK [10:16:24]MH_I2C_Read... [10:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:24]Read from MH i2c: E2 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 0E 00 [10:16:24]MH_I2C_Read... [10:16:24]Read from MH i2c: E2 0E 00 F1 6D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C0 [10:16:24]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:16:24]wFMCommunicate OK [10:16:24]SAM_PROTO_GetShiftState done [10:16:24]FM_GetShiftState done [10:16:24]opened in 1710288279 [10:16:24]opened+sec_in_day 1710374679 [10:16:24]quantity*price = 15000 [10:16:24]sum+1 = 15001 [10:16:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 57 13.03.2024 10:16 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95362 ФПД: 141332607285105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101634&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95362&fm=141332607285105&tin=02508201610067®Number=0000000000090555&sum=15000 0 [10:16:25]StoreToDocumentArchive [10:16:25]shift 328 fd 95362 [10:16:25]save to /storage/0328/doc_00095362 [10:16:25]save last doc name /storage/0328/doc_00095362 to /storage/kkm_last_doc_name [10:16:25]save OK [10:16:25]Clear old archive folders... [10:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:16:25]tlvbuf is 01A28410 [10:16:25]SAM_PROTO_ClearQueue [10:16:25]wFMCommunicate request_size=4 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 09 00 00 [10:16:25]Write to MH i2c: E2 08 00 FE 6D 80 09 00 00 00 00 00 00 DD [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:25]Read from MH i2c: E2 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 03 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 03 00 FE 6D 00 90 00 DF [10:16:25]RAPDU: 90 00 [10:16:25]wFMCommunicate OK [10:16:25]SAM_PROTO_ClearQueue done [10:16:25]KKMCreateOFDPacket [10:16:25]OFDProtocolAddRootSTLVToBuf [10:16:25]FM_MakeSignedData [10:16:25]FM_MakeSignedData [10:16:25]SAM_PROTO_SignData [10:16:25]wFMCommunicate request_size=4 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 0D 01 02 [10:16:25]Write to MH i2c: E2 08 00 FF 6D 80 0D 01 02 00 00 00 00 E5 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:25]Read from MH i2c: E2 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 03 00 [10:16:25]MH_I2C_Read... [10:16:25]Read from MH i2c: E2 03 00 FF 6D 00 90 00 E0 [10:16:25]RAPDU: 90 00 [10:16:25]wFMCommunicate OK [10:16:25]wFMCommunicate request_size=255 [10:16:25]MH_SAM_APDU [10:16:25]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E 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 39 00 00 00 F4 03 04 00 02 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 [10:16:25]Write to MH i2c: E2 02 01 00 6E 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E 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 39 00 00 00 F4 03 04 00 02 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 00 00 E1 [10:16:25]Write i2c OK [10:16:25]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 03 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 03 00 00 6E 00 90 00 E2 [10:16:26]RAPDU: 90 00 [10:16:26]wFMCommunicate OK [10:16:26]wFMCommunicate request_size=37 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 74 01 00 35 04 06 00 80 8A 8F DA 37 71 [10:16:26]Write to MH i2c: E2 28 00 01 6E 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 74 01 00 35 04 06 00 80 8A 8F DA 37 71 00 00 4F [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 03 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 03 00 01 6E 00 90 00 E3 [10:16:26]RAPDU: 90 00 [10:16:26]wFMCommunicate OK [10:16:26]wFMCommunicate request_size=4 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 0D 03 02 [10:16:26]Write to MH i2c: E2 08 00 02 6E 80 0D 03 02 00 00 00 00 EB [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 0B 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 0B 00 02 6E 00 42 CB 07 85 4B 6E 42 A9 90 00 29 [10:16:26]RAPDU: 42 CB 07 85 4B 6E 42 A9 90 00 [10:16:26]wFMCommunicate OK [10:16:26]SAM_PROTO_SignData done [10:16:26]FM_MakeSignedData done [10:16:26]CreateOFDProtocolMessage [10:16:26]wFMCommunicate request_size=4 [10:16:26]MH_SAM_APDU [10:16:26]CAPDU: 80 11 00 00 [10:16:26]Write to MH i2c: E2 08 00 03 6E 80 11 00 00 00 00 00 00 EB [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:26]Read from MH i2c: E2 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 17 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: E2 17 00 03 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3B [10:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:16:26]wFMCommunicate OK [10:16:26]CreateOFDProtocolMessage done [10:16:26]OFDSenderStorePacket 95362 [10:16:26]StoreOFDPacket docnum=95362 [10:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2A 01 00 00 04 63 22 01 94 20 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E 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 39 00 00 00 F4 03 04 00 02 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 74 01 00 35 04 06 00 80 8A 8F DA 37 71 42 CB 07 85 4B 6E 42 A9 [10:16:26]CheckFolder [10:16:26]dirname=/storage/ofd_packets [10:16:26]CheckFolder done [10:16:26]ProducePacketName [10:16:26]name=ofd_packets/00095362 [10:16:26]NVStorageSaveData ofd_packets/00095362 [10:16:26]File name is /storage/ofd_packets/00095362 [10:16:26]Write 328 bytes [10:16:26]NVStorageSaveData done [10:16:26]OFDSenderStorePacket done [10:16:26]KKMCreateOFDPacket done [10:16:26]NVStorageSaveData kkm_last_timestamp [10:16:26]File name is /storage/kkm_last_timestamp [10:16:26]Write 4 bytes [10:16:26]NVStorageSaveData done [10:16:26]ExternCall_PrintAddStr [10:16:26]wPrintStart [10:16:26]Write to MH i2c: 01 00 00 04 6E 72 [10:16:26]Write i2c OK [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 07 00 [10:16:26]MH_I2C_Read... [10:16:26]Read from MH i2c: 01 07 00 04 6E 00 80 00 00 00 FF 0F 07 [10:16:26]RasterBufferAndPrint [10:16:26]line Счет N : (3)11539 [10:16:26]line ИНН: 02508201610067 [10:16:26]line Контрольно-Кассовый Чек [10:16:26]line ПРОДАЖА [10:16:26]line Товар: 48745895 [10:16:26]line Сигареты RICHMOND KS GOLD EDITION [10:16:26]line 1.000 * 150.00 [10:16:26]line = 150.00 [10:16:26]line НДС 12% НСП 1% [10:16:26]line > о реализуемом товаре [10:16:26]line ИТОГО: 150.00 [10:16:26]line НСП 1% : 1.33 [10:16:26]line НДС 12% : 15.93 [10:16:26]line Наличными: 150.00 [10:16:26]line Безнал.: 0.00 [10:16:26]line Место: АЗС № 6 "Партнер Нефть" [10:16:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:16:26]line СНО: Общий режим [10:16:26]line Чек 57 13.03.2024 10:16 [10:16:26]line Смена: 328 ФФД: 1.0 [10:16:26]line ЗНМ: 0300000009 [10:16:26]line РНМ: 0000000000090555 [10:16:26]line Версия ККМ: 001 [10:16:26]line ФМ: 0000000000874811 [10:16:26]line ФД: 95362 [10:16:26]line ФПД: 141332607285105 [10:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101634&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95362&fm=141332607285105&tin=02508201610067®Number=0000000000090555&sum=15000 [10:16:26]line 0 [10:16:26]OFD Sender: Processing packet 95362 [packets to send 30, broken 29] [10:16:26]ProducePacketName [10:16:26]name=ofd_packets/00095362 [10:16:26]OFD Sender: To server: pG, [10:16:26]CommunicateWithHost lk.salyk.kg:30040 [10:16:26]ConnectInit lk.salyk.kg [10:16:26]written 0, free lines is 4095 [10:16:26]Connected sock=10 [10:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2A 01 00 00 04 63 22 01 94 20 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E 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 39 00 00 00 F4 03 04 00 02 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 74 01 00 35 04 06 00 80 8A 8F DA 37 71 42 CB 07 85 4B 6E 42 A9 [10:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 9D B3 47 00 C7 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 82 74 01 00 F4 03 04 00 56 28 F1 65 B6 04 01 00 00 FA 19 F3 9E 61 52 3B 0D [10:16:26]CommunicateWithHost err = 0 [10:16:26]CheckOFDResponse [10:16:26]1017 (14) - 77093643461234 [10:16:26]1041 (16) - 0000000000874811 [10:16:26]1040 (4) - 95362 [10:16:26]1012 (4) - 13.03.2024 04:15 [10:16:26]1206 (1) - 0 [10:16:26]OFD Sender: Remove packet 95362 [10:16:26]ProducePacketName [10:16:26]name=ofd_packets/00095362 [10:16:26]NVStorageDeleteData [10:16:27]Write to MH i2c: 01 00 00 2D 6E 9B [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: 01 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: 01 07 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: 01 07 00 2D 6E 00 80 00 00 00 5C 0D 8B [10:16:27]RasterBufferAndPrint [10:16:27]line [10:16:27]line [10:16:27]line [10:16:27]line [10:16:27]line [10:16:27]written 0, free lines is 3426 [10:16:27]process_action close_receipt done [10:16:27]requested_data is exist [10:16:27]produce_requested_data [10:16:27]requested_item fm.sn is exist - process it [10:16:27]wFMCommunicate request_size=4 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 11 00 00 [10:16:27]Write to MH i2c: E2 08 00 34 6E 80 11 00 00 00 00 00 00 1C [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 17 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 17 00 34 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6C [10:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:16:27]wFMCommunicate OK [10:16:27]requested_item fd.num is exist - process it [10:16:27]SAM_PROTO_GetFieldsCounters [10:16:27]wFMCommunicate request_size=4 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 13 00 00 [10:16:27]Write to MH i2c: E2 08 00 35 6E 80 13 00 00 00 00 00 00 1F [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 62 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 62 00 35 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 82 74 01 00 0E 04 04 00 48 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 27 [10:16:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 82 74 01 00 0E 04 04 00 48 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 [10:16:27]wFMCommunicate OK [10:16:27]SAM_PROTO_GetFieldsCounters done [10:16:27]requested_item shift.num is exist - process it [10:16:27]requested_item shift.opened is exist - process it [10:16:27]req_shift_opened [10:16:27]FM_GetShiftState [10:16:27]SAM_PROTO_GetShiftState [10:16:27]wFMCommunicate request_size=4 [10:16:27]MH_SAM_APDU [10:16:27]CAPDU: 80 13 01 00 [10:16:27]Write to MH i2c: E2 08 00 36 6E 80 13 01 00 00 00 00 00 21 [10:16:27]Write i2c OK [10:16:27]MH_I2C_Read... [10:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:27]Read from MH i2c: E2 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 0E 00 [10:16:27]MH_I2C_Read... [10:16:27]Read from MH i2c: E2 0E 00 36 6E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 06 [10:16:27]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:16:27]wFMCommunicate OK [10:16:27]SAM_PROTO_GetShiftState done [10:16:27]FM_GetShiftState done [10:16:27]req_shift_opened done [10:16:27]requested_item shift.open_date is exist - process it [10:16:27]req_shift_open_date [10:16:27]req_shift_open_date done [10:16:27]produce_requested_data done [10:16:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95362,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:16:27]process_action_free close_receipt [10:16:27]json_value_free [10:16:27]json_value_free done [10:16:27]process_json_proto returns [10:16:27]Send response to host [10:16:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95362,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:16:27]free response buf [10:16:27]execute_script done [10:16:27]execute_script returns [10:16:27]free content buf [10:16:27]Sock 8.Close socket [10:16:27]Sock 8.Thread stoped [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:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:49]accept exits with 9 [10:19:49]New connection [10:19:49]New thread 3066813796 created [10:19:49]Thread 3066957156 joined [10:19:49]Waiting for new connection... [10:19:49] Sock 9.Parse request [10:19:49]Sock 9.Check first char [10:19:49]Sock 9.First char is OK [10:19:49]request: POST /json_proto HTTP/1.0 [10:19:49]Method: POST [10:19:49]URL: /json_proto [10:19:49]Method is POST - this is cgi request [10:19:49]url: /json_proto [10:19:49]query_string will be loaded in cgi processing [10:19:49]execute_cgi json_proto POST (null) [10:19:49]execute_cgi path=json_proto method=POST [10:19:49]POST find Content-Length [10:19:49]Host: 172.17.62.67:8080 [10:19:49]Content-Length: 679 [10:19:49]Content-Type: application/json [10:19:49] [10:19:49]POST finish read [10:19:49]Found Content-Length = 679 [10:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196349", "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" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:49]execute_script... [10:19:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196349", "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" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:49]POST & json_proto [10:19:49]process_json_proto [10:19:49]json parsed OK: [10:19:49]protocol is kg_v1.0 [10:19:49]action value=close_receipt [10:19:49]process_action close_receipt [10:19:49]cmd_close_receipt [10:19:49]MH_GetDate [10:19:49]Write to MH i2c: F0 00 00 37 6E 94 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 05 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 05 00 37 6E 00 CF 7D F1 65 3B [10:19:49]GetLastDocTimeStamp 1710324994 [10:19:49]current date 1710325199 [10:19:49]FM_GetShiftState [10:19:49]SAM_PROTO_GetShiftState [10:19:49]wFMCommunicate request_size=4 [10:19:49]MH_SAM_APDU [10:19:49]CAPDU: 80 13 01 00 [10:19:49]Write to MH i2c: E2 08 00 38 6E 80 13 01 00 00 00 00 00 23 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 0E 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 0E 00 38 6E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 08 [10:19:49]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:19:49]wFMCommunicate OK [10:19:49]SAM_PROTO_GetShiftState done [10:19:49]FM_GetShiftState done [10:19:49]opened in 1710288279 [10:19:49]opened+sec_in_day 1710374679 [10:19:49]quantity*price = 180015 [10:19:49]sum+1 = 180016 [10:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.17 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 58 13.03.2024 10:19 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95363 ФПД: 66174033407722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101959&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95363&fm=66174033407722&tin=02508201610067®Number=0000000000090555&sum=180000 [10:19:50]StoreToDocumentArchive [10:19:50]shift 328 fd 95363 [10:19:50]save to /storage/0328/doc_00095363 [10:19:50]save last doc name /storage/0328/doc_00095363 to /storage/kkm_last_doc_name [10:19:50]save OK [10:19:50]Clear old archive folders... [10:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:50]tlvbuf is 01AECC30 [10:19:50]SAM_PROTO_ClearQueue [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 09 00 00 [10:19:50]Write to MH i2c: E2 08 00 45 6E 80 09 00 00 00 00 00 00 25 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 45 6E 00 90 00 27 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]SAM_PROTO_ClearQueue done [10:19:50]KKMCreateOFDPacket [10:19:50]OFDProtocolAddRootSTLVToBuf [10:19:50]FM_MakeSignedData [10:19:50]FM_MakeSignedData [10:19:50]SAM_PROTO_SignData [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 01 02 [10:19:50]Write to MH i2c: E2 08 00 46 6E 80 0D 01 02 00 00 00 00 2D [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 46 6E 00 90 00 28 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=255 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CF 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 74 01 00 35 04 06 00 3C 2F 57 C1 [10:19:50]Write to MH i2c: E2 02 01 47 6E 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 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CF 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 74 01 00 35 04 06 00 3C 2F 57 C1 00 00 6C [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 47 6E 00 90 00 29 [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=7 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 02 02 02 2E EA [10:19:50]Write to MH i2c: E2 0A 00 48 6E 80 0D 02 02 02 00 2E EA 00 00 4C [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:50]Read from MH i2c: E2 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 [10:19:50]MH_I2C_Read... [10:19:50]Read from MH i2c: E2 03 00 48 6E 00 90 00 2A [10:19:50]RAPDU: 90 00 [10:19:50]wFMCommunicate OK [10:19:50]wFMCommunicate request_size=4 [10:19:50]MH_SAM_APDU [10:19:50]CAPDU: 80 0D 03 02 [10:19:50]Write to MH i2c: E2 08 00 49 6E 80 0D 03 02 00 00 00 00 32 [10:19:50]Write i2c OK [10:19:50]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0B 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0B 00 49 6E 00 C2 92 FE 18 7E 47 9C 47 90 00 45 [10:19:51]RAPDU: C2 92 FE 18 7E 47 9C 47 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_SignData done [10:19:51]FM_MakeSignedData done [10:19:51]CreateOFDProtocolMessage [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 11 00 00 [10:19:51]Write to MH i2c: E2 08 00 4A 6E 80 11 00 00 00 00 00 00 32 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 4A 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 82 [10:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:19:51]wFMCommunicate OK [10:19:51]CreateOFDProtocolMessage done [10:19:51]OFDSenderStorePacket 95363 [10:19:51]StoreOFDPacket docnum=95363 [10:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 35 7D 04 01 11 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CF 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 74 01 00 35 04 06 00 3C 2F 57 C1 2E EA C2 92 FE 18 7E 47 9C 47 [10:19:51]CheckFolder [10:19:51]dirname=/storage/ofd_packets [10:19:51]CheckFolder done [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00095363 [10:19:51]NVStorageSaveData ofd_packets/00095363 [10:19:51]File name is /storage/ofd_packets/00095363 [10:19:51]Write 298 bytes [10:19:51]NVStorageSaveData done [10:19:51]OFDSenderStorePacket done [10:19:51]KKMCreateOFDPacket done [10:19:51]NVStorageSaveData kkm_last_timestamp [10:19:51]File name is /storage/kkm_last_timestamp [10:19:51]Write 4 bytes [10:19:51]NVStorageSaveData done [10:19:51]ExternCall_PrintAddStr [10:19:51]wPrintStart [10:19:51]Write to MH i2c: 01 00 00 4B 6E B9 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 4B 6E 00 80 00 00 00 FF 0F 4E [10:19:51]RasterBufferAndPrint [10:19:51]line Счет N : (1)196349 [10:19:51]line ИНН: 02508201610067 [10:19:51]line Контрольно-Кассовый Чек [10:19:51]line ПРОДАЖА [10:19:51]line ТРК (МРК, ГНК) : 61 [10:19:51]line Товар: 2710194210 [10:19:51]line ДТ-К-5 [10:19:51]line 25.390 * 70.90 [10:19:51]line = 1800.15 [10:19:51]line НДС 12% НСП 1% [10:19:51]line > о реализуемом товаре [10:19:51]line ОКРУГЛЕНИЕ: -0.15 [10:19:51]line ИТОГО: 1800.00 [10:19:51]line Внесено: 1800.00 [10:19:51]line СДАЧА: 0.00 [10:19:51]line НСП 1% : 15.93 [10:19:51]line НДС 12% : 191.17 [10:19:51]line Наличными: 1800.00 [10:19:51]line Безнал.: 0.00 [10:19:51]line Место: АЗС № 6 "Партнер Нефть" [10:19:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:19:51]line СНО: Общий режим [10:19:51]line Чек 58 13.03.2024 10:19 [10:19:51]line Смена: 328 ФФД: 1.0 [10:19:51]line ЗНМ: 0300000009 [10:19:51]line РНМ: 0000000000090555 [10:19:51]line Версия ККМ: 001 [10:19:51]line ФМ: 0000000000874811 [10:19:51]line ФД: 95363 [10:19:51]line ФПД: 66174033407722 [10:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T101959&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95363&fm=66174033407722&tin=02508201610067®Number=0000000000090555&sum=180000 [10:19:51]OFD Sender: Processing packet 95363 [packets to send 30, broken 29] [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00095363 [10:19:51]OFD Sender: To server: pG, [10:19:51]CommunicateWithHost lk.salyk.kg:30040 [10:19:51]ConnectInit lk.salyk.kg [10:19:51]written 0, free lines is 4095 [10:19:51]Connected sock=10 [10:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 35 7D 04 01 11 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 CF 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 74 01 00 35 04 06 00 3C 2F 57 C1 2E EA C2 92 FE 18 7E 47 9C 47 [10:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 C7 52 47 00 75 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 83 74 01 00 F4 03 04 00 22 29 F1 65 B6 04 01 00 00 88 2C 1B 34 1D E1 77 5C [10:19:51]CommunicateWithHost err = 0 [10:19:51]CheckOFDResponse [10:19:51]1017 (14) - 77093643461234 [10:19:51]1041 (16) - 0000000000874811 [10:19:51]1040 (4) - 95363 [10:19:51]1012 (4) - 13.03.2024 04:18 [10:19:51]1206 (1) - 0 [10:19:51]OFD Sender: Remove packet 95363 [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00095363 [10:19:51]NVStorageDeleteData [10:19:51]Write to MH i2c: 01 00 00 76 6E E4 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 76 6E 00 80 00 00 00 50 0D C8 [10:19:51]RasterBufferAndPrint [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]line [10:19:51]written 0, free lines is 3414 [10:19:51]process_action close_receipt done [10:19:51]requested_data is exist [10:19:51]produce_requested_data [10:19:51]requested_item fm.sn is exist - process it [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 11 00 00 [10:19:51]Write to MH i2c: E2 08 00 7D 6E 80 11 00 00 00 00 00 00 65 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:52]Read from MH i2c: E2 17 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 17 00 7D 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B5 [10:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:19:52]wFMCommunicate OK [10:19:52]requested_item fd.num is exist - process it [10:19:52]SAM_PROTO_GetFieldsCounters [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 13 00 00 [10:19:52]Write to MH i2c: E2 08 00 7E 6E 80 13 00 00 00 00 00 00 68 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 62 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 62 00 7E 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 83 74 01 00 0E 04 04 00 48 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 74 [10:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 83 74 01 00 0E 04 04 00 48 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 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_GetFieldsCounters done [10:19:52]requested_item shift.num is exist - process it [10:19:52]requested_item shift.opened is exist - process it [10:19:52]req_shift_opened [10:19:52]FM_GetShiftState [10:19:52]SAM_PROTO_GetShiftState [10:19:52]wFMCommunicate request_size=4 [10:19:52]MH_SAM_APDU [10:19:52]CAPDU: 80 13 01 00 [10:19:52]Write to MH i2c: E2 08 00 7F 6E 80 13 01 00 00 00 00 00 6A [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:52]Read from MH i2c: E2 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 0E 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: E2 0E 00 7F 6E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4F [10:19:52]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:19:52]wFMCommunicate OK [10:19:52]SAM_PROTO_GetShiftState done [10:19:52]FM_GetShiftState done [10:19:52]req_shift_opened done [10:19:52]requested_item shift.open_date is exist - process it [10:19:52]req_shift_open_date [10:19:52]req_shift_open_date done [10:19:52]produce_requested_data done [10:19:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95363,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:19:52]process_action_free close_receipt [10:19:52]json_value_free [10:19:52]json_value_free done [10:19:52]process_json_proto returns [10:19:52]Send response to host [10:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95363,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:19:52]free response buf [10:19:52]execute_script done [10:19:52]execute_script returns [10:19:52]free content buf [10:19:52]Sock 9.Close socket [10:19:52]Sock 9.Thread stoped [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:01]accept exits with 8 [10:20:01]New connection [10:20:01]New thread 3066957156 created [10:20:01]Thread 3066813796 joined [10:20:01]Waiting for new connection... [10:20:01] Sock 8.Parse request [10:20:01]Sock 8.Check first char [10:20:01]Sock 8.First char is OK [10:20:01]request: POST /json_proto HTTP/1.0 [10:20:01]Method: POST [10:20:01]URL: /json_proto [10:20:01]Method is POST - this is cgi request [10:20:01]url: /json_proto [10:20:01]query_string will be loaded in cgi processing [10:20:01]execute_cgi json_proto POST (null) [10:20:01]execute_cgi path=json_proto method=POST [10:20:01]POST find Content-Length [10:20:01]Host: 172.17.62.67:8080 [10:20:01]Content-Length: 735 [10:20:01]Content-Type: application/json [10:20:01] [10:20:01]POST finish read [10:20:01]Found Content-Length = 735 [10:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95363, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196349", "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" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:01]execute_script... [10:20:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95363, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196349", "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" : 70.90, "quantity" : 25.390, "sum" : 1800.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:01]POST & json_proto [10:20:01]process_json_proto [10:20:01]json parsed OK: [10:20:01]protocol is kg_v1.0 [10:20:01]action value=close_receipt [10:20:01]process_action close_receipt [10:20:01]cmd_close_receipt [10:20:01]MH_GetDate [10:20:01]Write to MH i2c: F0 00 00 80 6E DD [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 05 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: F0 05 00 80 6E 00 DB 7D F1 65 90 [10:20:01]GetLastDocTimeStamp 1710325199 [10:20:01]current date 1710325211 [10:20:01]FM_GetShiftState [10:20:01]SAM_PROTO_GetShiftState [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 13 01 00 [10:20:01]Write to MH i2c: E2 08 00 81 6E 80 13 01 00 00 00 00 00 6C [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 81 6E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 51 [10:20:01]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:20:01]wFMCommunicate OK [10:20:01]SAM_PROTO_GetShiftState done [10:20:01]FM_GetShiftState done [10:20:01]opened in 1710288279 [10:20:01]opened+sec_in_day 1710374679 [10:20:01]quantity*price = 180015 [10:20:01]sum+1 = 180016 [10:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1800.00 НСП 1% : 15.93 НДС 12% : 191.17 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 59 13.03.2024 10:20 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95363 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95364 ФПД: 63311645329849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T102011&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95364&fm=63311645329849&tin=02508201610067®Number=0000000000090555&sum=180000 [10:20:02]StoreToDocumentArchive [10:20:02]shift 328 fd 95364 [10:20:02]save to /storage/0328/doc_00095364 [10:20:02]save last doc name /storage/0328/doc_00095364 to /storage/kkm_last_doc_name [10:20:02]save OK [10:20:02]Clear old archive folders... [10:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:20:02]tlvbuf is 01A4C430 [10:20:02]SAM_PROTO_ClearQueue [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 09 00 00 [10:20:02]Write to MH i2c: E2 08 00 90 6E 80 09 00 00 00 00 00 00 70 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 90 6E 00 90 00 72 [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]SAM_PROTO_ClearQueue done [10:20:02]KKMCreateOFDPacket [10:20:02]OFDProtocolAddRootSTLVToBuf [10:20:02]FM_MakeSignedData [10:20:02]FM_MakeSignedData [10:20:02]SAM_PROTO_SignData [10:20:02]wFMCommunicate request_size=4 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 01 02 [10:20:02]Write to MH i2c: E2 08 00 91 6E 80 0D 01 02 00 00 00 00 78 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:02]Read from MH i2c: E2 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 [10:20:02]MH_I2C_Read... [10:20:02]Read from MH i2c: E2 03 00 91 6E 00 90 00 73 [10:20:02]RAPDU: 90 00 [10:20:02]wFMCommunicate OK [10:20:02]wFMCommunicate request_size=255 [10:20:02]MH_SAM_APDU [10:20:02]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 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 DB 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 83 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [10:20:02]Write to MH i2c: E2 02 01 92 6E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 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 DB 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 83 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 33 [10:20:02]Write i2c OK [10:20:02]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 03 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 03 00 92 6E 00 90 00 74 [10:20:03]RAPDU: 90 00 [10:20:03]wFMCommunicate OK [10:20:03]wFMCommunicate request_size=35 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 74 01 00 35 04 06 00 39 94 E4 21 49 B9 [10:20:03]Write to MH i2c: E2 26 00 93 6E 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 74 01 00 35 04 06 00 39 94 E4 21 49 B9 00 00 38 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 03 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 03 00 93 6E 00 90 00 75 [10:20:03]RAPDU: 90 00 [10:20:03]wFMCommunicate OK [10:20:03]wFMCommunicate request_size=4 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 0D 03 02 [10:20:03]Write to MH i2c: E2 08 00 94 6E 80 0D 03 02 00 00 00 00 7D [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 0B 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 0B 00 94 6E 00 85 43 71 37 87 AB 9D 25 90 00 E2 [10:20:03]RAPDU: 85 43 71 37 87 AB 9D 25 90 00 [10:20:03]wFMCommunicate OK [10:20:03]SAM_PROTO_SignData done [10:20:03]FM_MakeSignedData done [10:20:03]CreateOFDProtocolMessage [10:20:03]wFMCommunicate request_size=4 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 11 00 00 [10:20:03]Write to MH i2c: E2 08 00 95 6E 80 11 00 00 00 00 00 00 7D [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 17 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 17 00 95 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CD [10:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:20:03]wFMCommunicate OK [10:20:03]CreateOFDProtocolMessage done [10:20:03]OFDSenderStorePacket 95364 [10:20:03]StoreOFDPacket docnum=95364 [10:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 A8 67 20 01 7B DE 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 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 DB 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 83 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 74 01 00 35 04 06 00 39 94 E4 21 49 B9 85 43 71 37 87 AB 9D 25 [10:20:03]CheckFolder [10:20:03]dirname=/storage/ofd_packets [10:20:03]CheckFolder done [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00095364 [10:20:03]NVStorageSaveData ofd_packets/00095364 [10:20:03]File name is /storage/ofd_packets/00095364 [10:20:03]Write 326 bytes [10:20:03]NVStorageSaveData done [10:20:03]OFDSenderStorePacket done [10:20:03]KKMCreateOFDPacket done [10:20:03]NVStorageSaveData kkm_last_timestamp [10:20:03]File name is /storage/kkm_last_timestamp [10:20:03]Write 4 bytes [10:20:03]NVStorageSaveData done [10:20:03]ExternCall_PrintAddStr [10:20:03]wPrintStart [10:20:03]Write to MH i2c: 01 00 00 96 6E 04 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 96 6E 00 80 00 00 00 FF 0F 99 [10:20:03]RasterBufferAndPrint [10:20:03]line Счет N : (1)196349 [10:20:03]line ИНН: 02508201610067 [10:20:03]line Контрольно-Кассовый Чек [10:20:03]line ВОЗВРАТ ПРОДАЖИ [10:20:03]line ТРК (МРК, ГНК) : 61 [10:20:03]line Товар: 2710194210 [10:20:03]line ДТ-К-5 [10:20:03]line 25.390 * 70.90 [10:20:03]line = 1800.15 [10:20:03]line НДС 12% НСП 1% [10:20:03]line > о реализуемом товаре [10:20:03]line ОКРУГЛЕНИЕ: -0.15 [10:20:03]line ИТОГО: 1800.00 [10:20:03]line НСП 1% : 15.93 [10:20:03]line НДС 12% : 191.17 [10:20:03]line Наличными: 1800.00 [10:20:03]line Безнал.: 0.00 [10:20:03]line Место: АЗС № 6 "Партнер Нефть" [10:20:03]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:20:03]line СНО: Общий режим [10:20:03]line Чек 59 13.03.2024 10:20 [10:20:03]line Смена: 328 ФФД: 1.0 [10:20:03]line ЗНМ: 0300000009 [10:20:03]line РНМ: 0000000000090555 [10:20:03]line Версия ККМ: 001 [10:20:03]line ФД осн.: 95363 [10:20:03]line ФМ осн.: 0000000000874811 [10:20:03]line ФМ: 0000000000874811 [10:20:03]line ФД: 95364 [10:20:03]line ФПД: 63311645329849 [10:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T102011&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95364&fm=63311645329849&tin=02508201610067®Number=0000000000090555&sum=180000 [10:20:03]written 0, free lines is 4095 [10:20:03]OFD Sender: Processing packet 95364 [packets to send 30, broken 29] [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00095364 [10:20:03]OFD Sender: To server: pG, [10:20:03]CommunicateWithHost lk.salyk.kg:30040 [10:20:03]ConnectInit lk.salyk.kg [10:20:03]Connected sock=10 [10:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 A8 67 20 01 7B DE 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 63 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 2F BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 4A 00 00 00 00 07 04 06 00 20 BF 02 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 DB 7D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 83 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 74 01 00 35 04 06 00 39 94 E4 21 49 B9 85 43 71 37 87 AB 9D 25 [10:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B4 1D 47 00 E4 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 84 74 01 00 F4 03 04 00 2E 29 F1 65 B6 04 01 00 00 5A 61 78 AF E1 C6 5A 24 [10:20:03]CommunicateWithHost err = 0 [10:20:03]CheckOFDResponse [10:20:03]1017 (14) - 77093643461234 [10:20:03]1041 (16) - 0000000000874811 [10:20:03]1040 (4) - 95364 [10:20:03]1012 (4) - 13.03.2024 04:18 [10:20:03]1206 (1) - 0 [10:20:03]OFD Sender: Remove packet 95364 [10:20:03]ProducePacketName [10:20:03]name=ofd_packets/00095364 [10:20:03]NVStorageDeleteData [10:20:03]Write to MH i2c: 01 00 00 C1 6E 2F [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: 01 07 00 C1 6E 00 80 00 00 00 6B 0D 2E [10:20:03]RasterBufferAndPrint [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]line [10:20:03]written 0, free lines is 3443 [10:20:03]process_action close_receipt done [10:20:03]requested_data is exist [10:20:03]produce_requested_data [10:20:03]requested_item fm.sn is exist - process it [10:20:03]wFMCommunicate request_size=4 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 11 00 00 [10:20:03]Write to MH i2c: E2 08 00 C8 6E 80 11 00 00 00 00 00 00 B0 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 17 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 17 00 C8 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [10:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:20:03]wFMCommunicate OK [10:20:03]requested_item fd.num is exist - process it [10:20:03]SAM_PROTO_GetFieldsCounters [10:20:03]wFMCommunicate request_size=4 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 13 00 00 [10:20:03]Write to MH i2c: E2 08 00 C9 6E 80 13 00 00 00 00 00 00 B3 [10:20:03]Write i2c OK [10:20:03]MH_I2C_Read... [10:20:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:03]Read from MH i2c: E2 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 62 00 [10:20:03]MH_I2C_Read... [10:20:03]Read from MH i2c: E2 62 00 C9 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 74 01 00 0E 04 04 00 48 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 C3 [10:20:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 74 01 00 0E 04 04 00 48 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 [10:20:03]wFMCommunicate OK [10:20:03]SAM_PROTO_GetFieldsCounters done [10:20:03]requested_item shift.num is exist - process it [10:20:03]requested_item shift.opened is exist - process it [10:20:03]req_shift_opened [10:20:03]FM_GetShiftState [10:20:03]SAM_PROTO_GetShiftState [10:20:03]wFMCommunicate request_size=4 [10:20:03]MH_SAM_APDU [10:20:03]CAPDU: 80 13 01 00 [10:20:04]Write to MH i2c: E2 08 00 CA 6E 80 13 01 00 00 00 00 00 B5 [10:20:04]Write i2c OK [10:20:04]MH_I2C_Read... [10:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:04]Read from MH i2c: E2 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 0E 00 [10:20:04]MH_I2C_Read... [10:20:04]Read from MH i2c: E2 0E 00 CA 6E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 9A [10:20:04]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:20:04]wFMCommunicate OK [10:20:04]SAM_PROTO_GetShiftState done [10:20:04]FM_GetShiftState done [10:20:04]req_shift_opened done [10:20:04]requested_item shift.open_date is exist - process it [10:20:04]req_shift_open_date [10:20:04]req_shift_open_date done [10:20:04]produce_requested_data done [10:20:04]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95364,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:20:04]process_action_free close_receipt [10:20:04]json_value_free [10:20:04]json_value_free done [10:20:04]process_json_proto returns [10:20:04]Send response to host [10:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95364,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:20:04]free response buf [10:20:04]execute_script done [10:20:04]execute_script returns [10:20:04]free content buf [10:20:04]Sock 8.Close socket [10:20:04]Sock 8.Thread stoped [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:45]accept exits with 9 [10:20:45]New connection [10:20:45]New thread 3066813796 created [10:20:45]Thread 3066957156 joined [10:20:45]Waiting for new connection... [10:20:45] Sock 9.Parse request [10:20:45]Sock 9.Check first char [10:20:45]Sock 9.First char is OK [10:20:45]request: POST /json_proto HTTP/1.0 [10:20:45]Method: POST [10:20:45]URL: /json_proto [10:20:45]Method is POST - this is cgi request [10:20:45]url: /json_proto [10:20:45]query_string will be loaded in cgi processing [10:20:45]execute_cgi json_proto POST (null) [10:20:45]execute_cgi path=json_proto method=POST [10:20:45]POST find Content-Length [10:20:45]Host: 172.17.62.67:8080 [10:20:45]Content-Length: 1188 [10:20:45]Content-Type: application/json [10:20:45] [10:20:45]POST finish read [10:20:45]Found Content-Length = 1188 [10:20:45]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196350\u000A13.03.2024 10:15\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3776793\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:45]execute_script... [10:20:45]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196350\u000A13.03.2024 10:15\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3776793\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:45]POST & json_proto [10:20:45]process_json_proto [10:20:45]json parsed OK: [10:20:45]protocol is kg_v1.0 [10:20:45]action value=print_text [10:20:45]process_action print_text [10:20:45]cmd_print_text [10:20:45]ExternCall_PrintAddStr [10:20:45]wPrintStart [10:20:45]Write to MH i2c: 01 00 00 CB 6E 39 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 CB 6E 00 80 00 00 00 FF 0F CE [10:20:45]RasterBufferAndPrint [10:20:45]line *****ТОВАРНЫЙ ЧЕК***** [10:20:45]line АЗС 6 [10:20:45]line Партнер нефть [10:20:45]line 02508201610067 [10:20:45]line Кассир : Сабырбек у. М. [10:20:45]line Счет N : (1)196350 [10:20:45]line 13.03.2024 10:15 [10:20:45]line ПРОДАЖА [10:20:45]line ТРК (МРК, ГНК): 51 [10:20:45]line Вид ГСМ : 2710194210 [10:20:45]line ДТ-К-5 [10:20:45]line 20.000 x 70.90 [10:20:45]line ИТОГ: 1418.00 [10:20:45]line Тип оплаты: Талоны: Партнер нефть [10:20:45]line 3776793 [10:20:45]line ______________________ [10:20:45]line (подпись) [10:20:45]written 0, free lines is 4095 [10:20:46]Write to MH i2c: 01 00 00 DF 6E 4D [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 DF 6E 00 80 00 00 00 66 0E 48 [10:20:46]RasterBufferAndPrint [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]line [10:20:46]written 0, free lines is 3690 [10:20:46]process_action print_text done [10:20:46]requested_data is exist [10:20:46]produce_requested_data [10:20:46]requested_item fm.sn is exist - process it [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 11 00 00 [10:20:46]Write to MH i2c: E2 08 00 E6 6E 80 11 00 00 00 00 00 00 CE [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 E6 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1E [10:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:20:46]wFMCommunicate OK [10:20:46]requested_item fd.num is exist - process it [10:20:46]SAM_PROTO_GetFieldsCounters [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 13 00 00 [10:20:46]Write to MH i2c: E2 08 00 E7 6E 80 13 00 00 00 00 00 00 D1 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 62 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 62 00 E7 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 74 01 00 0E 04 04 00 48 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 E1 [10:20:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 84 74 01 00 0E 04 04 00 48 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 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_GetFieldsCounters done [10:20:46]requested_item shift.num is exist - process it [10:20:46]requested_item shift.opened is exist - process it [10:20:46]req_shift_opened [10:20:46]FM_GetShiftState [10:20:46]SAM_PROTO_GetShiftState [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 13 01 00 [10:20:46]Write to MH i2c: E2 08 00 E8 6E 80 13 01 00 00 00 00 00 D3 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0E 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 0E 00 E8 6E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B8 [10:20:46]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:20:46]wFMCommunicate OK [10:20:46]SAM_PROTO_GetShiftState done [10:20:46]FM_GetShiftState done [10:20:46]req_shift_opened done [10:20:46]requested_item shift.open_date is exist - process it [10:20:46]req_shift_open_date [10:20:46]req_shift_open_date done [10:20:46]produce_requested_data done [10:20:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95364,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:20:46]process_action_free print_text [10:20:46]json_value_free [10:20:46]json_value_free done [10:20:46]process_json_proto returns [10:20:46]Send response to host [10:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95364,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:20:46]free response buf [10:20:46]execute_script done [10:20:46]execute_script returns [10:20:46]free content buf [10:20:46]Sock 9.Close socket [10:20:46]Sock 9.Thread stoped [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:29]accept exits with 8 [10:21:29]New connection [10:21:29]New thread 3066957156 created [10:21:29]Thread 3066813796 joined [10:21:29]Waiting for new connection... [10:21:29] Sock 8.Parse request [10:21:29]Sock 8.Check first char [10:21:29]Sock 8.First char is OK [10:21:29]request: POST /json_proto HTTP/1.0 [10:21:29]Method: POST [10:21:29]URL: /json_proto [10:21:29]Method is POST - this is cgi request [10:21:29]url: /json_proto [10:21:29]query_string will be loaded in cgi processing [10:21:29]execute_cgi json_proto POST (null) [10:21:29]execute_cgi path=json_proto method=POST [10:21:29]POST find Content-Length [10:21:29]Host: 172.17.62.67:8080 [10:21:29]Content-Length: 674 [10:21:29]Content-Type: application/json [10:21:29] [10:21:29]POST finish read [10:21:29]Found Content-Length = 674 [10:21:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196351", "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" : 70.90, "quantity" : 5.390, "sum" : 382.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 382.00, "total" : 382.00, "payments": [ { "type": 0, "sum" : 382.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:29]execute_script... [10:21:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196351", "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" : 70.90, "quantity" : 5.390, "sum" : 382.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 382.00, "total" : 382.00, "payments": [ { "type": 0, "sum" : 382.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:29]POST & json_proto [10:21:29]process_json_proto [10:21:29]json parsed OK: [10:21:29]protocol is kg_v1.0 [10:21:29]action value=close_receipt [10:21:29]process_action close_receipt [10:21:29]cmd_close_receipt [10:21:29]MH_GetDate [10:21:29]Write to MH i2c: F0 00 00 E9 6E 46 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: F0 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: F0 05 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: F0 05 00 E9 6E 00 33 7E F1 65 52 [10:21:29]GetLastDocTimeStamp 1710325211 [10:21:29]current date 1710325299 [10:21:29]FM_GetShiftState [10:21:29]SAM_PROTO_GetShiftState [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 13 01 00 [10:21:29]Write to MH i2c: E2 08 00 EA 6E 80 13 01 00 00 00 00 00 D5 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:29]Read from MH i2c: E2 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 0E 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 0E 00 EA 6E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BA [10:21:29]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:21:29]wFMCommunicate OK [10:21:29]SAM_PROTO_GetShiftState done [10:21:29]FM_GetShiftState done [10:21:29]opened in 1710288279 [10:21:29]opened+sec_in_day 1710374679 [10:21:29]quantity*price = 38215 [10:21:29]sum+1 = 38216 [10:21:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 382.00 Внесено: 382.00 СДАЧА: 0.00 НСП 1% : 3.38 НДС 12% : 40.58 Наличными: 382.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 60 13.03.2024 10:21 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95365 ФПД: 143027659242266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T102139&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95365&fm=143027659242266&tin=02508201610067®Number=0000000000090555&sum=38200 [10:21:30]StoreToDocumentArchive [10:21:30]shift 328 fd 95365 [10:21:30]save to /storage/0328/doc_00095365 [10:21:30]save last doc name /storage/0328/doc_00095365 to /storage/kkm_last_doc_name [10:21:30]save OK [10:21:30]Clear old archive folders... [10:21:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:21:30]tlvbuf is 01A45E40 [10:21:30]SAM_PROTO_ClearQueue [10:21:30]wFMCommunicate request_size=4 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 09 00 00 [10:21:30]Write to MH i2c: E2 08 00 F7 6E 80 09 00 00 00 00 00 00 D7 [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 [10:21:30]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:30]Read from MH i2c: E2 03 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 03 00 F7 6E 00 90 00 D9 [10:21:30]RAPDU: 90 00 [10:21:30]wFMCommunicate OK [10:21:30]SAM_PROTO_ClearQueue done [10:21:30]KKMCreateOFDPacket [10:21:30]OFDProtocolAddRootSTLVToBuf [10:21:30]FM_MakeSignedData [10:21:30]FM_MakeSignedData [10:21:30]SAM_PROTO_SignData [10:21:30]wFMCommunicate request_size=4 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 0D 01 02 [10:21:30]Write to MH i2c: E2 08 00 F8 6E 80 0D 01 02 00 00 00 00 DF [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:30]Read from MH i2c: E2 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 03 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 03 00 F8 6E 00 90 00 DA [10:21:30]RAPDU: 90 00 [10:21:30]wFMCommunicate OK [10:21:30]wFMCommunicate request_size=255 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 47 95 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 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 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 3C 00 00 00 F4 03 04 00 33 7E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 74 01 00 35 04 06 00 82 15 38 D2 [10:21:30]Write to MH i2c: E2 02 01 F9 6E 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 0E 15 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 47 95 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 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 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 3C 00 00 00 F4 03 04 00 33 7E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 74 01 00 35 04 06 00 82 15 38 D2 00 00 01 [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:31]Read from MH i2c: E2 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 03 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 03 00 F9 6E 00 90 00 DB [10:21:31]RAPDU: 90 00 [10:21:31]wFMCommunicate OK [10:21:31]wFMCommunicate request_size=7 [10:21:31]MH_SAM_APDU [10:21:31]CAPDU: 80 0D 02 02 02 7B 1A [10:21:31]Write to MH i2c: E2 0A 00 FA 6E 80 0D 02 02 02 00 7B 1A 00 00 7B [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:31]Read from MH i2c: E2 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 03 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 03 00 FA 6E 00 90 00 DC [10:21:31]RAPDU: 90 00 [10:21:31]wFMCommunicate OK [10:21:31]wFMCommunicate request_size=4 [10:21:31]MH_SAM_APDU [10:21:31]CAPDU: 80 0D 03 02 [10:21:31]Write to MH i2c: E2 08 00 FB 6E 80 0D 03 02 00 00 00 00 E4 [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:31]Read from MH i2c: E2 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 0B 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 0B 00 FB 6E 00 3F 3F CB 60 36 CC CF 7D 90 00 DC [10:21:31]RAPDU: 3F 3F CB 60 36 CC CF 7D 90 00 [10:21:31]wFMCommunicate OK [10:21:31]SAM_PROTO_SignData done [10:21:31]FM_MakeSignedData done [10:21:31]CreateOFDProtocolMessage [10:21:31]wFMCommunicate request_size=4 [10:21:31]MH_SAM_APDU [10:21:31]CAPDU: 80 11 00 00 [10:21:31]Write to MH i2c: E2 08 00 FC 6E 80 11 00 00 00 00 00 00 E4 [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:31]Read from MH i2c: E2 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 17 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 17 00 FC 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 34 [10:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:21:31]wFMCommunicate OK [10:21:31]CreateOFDProtocolMessage done [10:21:31]OFDSenderStorePacket 95365 [10:21:31]StoreOFDPacket docnum=95365 [10:21:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 AB E0 04 01 99 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 47 95 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 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 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 3C 00 00 00 F4 03 04 00 33 7E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 74 01 00 35 04 06 00 82 15 38 D2 7B 1A 3F 3F CB 60 36 CC CF 7D [10:21:31]CheckFolder [10:21:31]dirname=/storage/ofd_packets [10:21:31]CheckFolder done [10:21:31]ProducePacketName [10:21:31]name=ofd_packets/00095365 [10:21:31]NVStorageSaveData ofd_packets/00095365 [10:21:31]File name is /storage/ofd_packets/00095365 [10:21:31]Write 298 bytes [10:21:31]NVStorageSaveData done [10:21:31]OFDSenderStorePacket done [10:21:31]KKMCreateOFDPacket done [10:21:31]NVStorageSaveData kkm_last_timestamp [10:21:31]File name is /storage/kkm_last_timestamp [10:21:31]Write 4 bytes [10:21:31]NVStorageSaveData done [10:21:31]ExternCall_PrintAddStr [10:21:31]wPrintStart [10:21:31]Write to MH i2c: 01 00 00 FD 6E 6B [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: 01 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: 01 07 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: 01 07 00 FD 6E 00 80 00 00 00 FF 0F 00 [10:21:31]RasterBufferAndPrint [10:21:31]line Счет N : (1)196351 [10:21:31]line ИНН: 02508201610067 [10:21:31]line Контрольно-Кассовый Чек [10:21:31]line ПРОДАЖА [10:21:31]line ТРК (МРК, ГНК) : 51 [10:21:31]line Товар: 2710194210 [10:21:31]line ДТ-К-5 [10:21:31]line 5.390 * 70.90 [10:21:31]line = 382.15 [10:21:31]line НДС 12% НСП 1% [10:21:31]line > о реализуемом товаре [10:21:31]line ОКРУГЛЕНИЕ: -0.15 [10:21:31]line ИТОГО: 382.00 [10:21:31]line Внесено: 382.00 [10:21:31]line СДАЧА: 0.00 [10:21:31]line НСП 1% : 3.38 [10:21:31]line НДС 12% : 40.58 [10:21:31]line Наличными: 382.00 [10:21:31]line Безнал.: 0.00 [10:21:31]line Место: АЗС № 6 "Партнер Нефть" [10:21:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:21:31]line СНО: Общий режим [10:21:31]line Чек 60 13.03.2024 10:21 [10:21:31]line Смена: 328 ФФД: 1.0 [10:21:31]line ЗНМ: 0300000009 [10:21:31]line РНМ: 0000000000090555 [10:21:31]line Версия ККМ: 001 [10:21:31]line ФМ: 0000000000874811 [10:21:31]line ФД: 95365 [10:21:31]line ФПД: 143027659242266 [10:21:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T102139&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95365&fm=143027659242266&tin=02508201610067®Number=0000000000090555&sum=38200 [10:21:31]OFD Sender: Processing packet 95365 [packets to send 30, broken 29] [10:21:31]ProducePacketName [10:21:31]name=ofd_packets/00095365 [10:21:31]OFD Sender: To server: pG, [10:21:31]CommunicateWithHost lk.salyk.kg:30040 [10:21:31]ConnectInit lk.salyk.kg [10:21:31]written 0, free lines is 4095 [10:21:31]Connected sock=10 [10:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 AB E0 04 01 99 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 15 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 47 95 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 52 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 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 3C 00 00 00 F4 03 04 00 33 7E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 74 01 00 35 04 06 00 82 15 38 D2 7B 1A 3F 3F CB 60 36 CC CF 7D [10:21:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D4 AA 47 00 8D D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 85 74 01 00 F4 03 04 00 87 29 F1 65 B6 04 01 00 00 73 6C 5C 6A 57 93 0F 9B [10:21:31]CommunicateWithHost err = 0 [10:21:31]CheckOFDResponse [10:21:31]1017 (14) - 77093643461234 [10:21:31]1041 (16) - 0000000000874811 [10:21:31]1040 (4) - 95365 [10:21:31]1012 (4) - 13.03.2024 04:20 [10:21:31]1206 (1) - 0 [10:21:31]OFD Sender: Remove packet 95365 [10:21:31]ProducePacketName [10:21:31]name=ofd_packets/00095365 [10:21:31]NVStorageDeleteData [10:21:32]Write to MH i2c: 01 00 00 28 6F 97 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 07 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 07 00 28 6F 00 80 00 00 00 54 0D 7F [10:21:32]RasterBufferAndPrint [10:21:32]line [10:21:32]line [10:21:32]line [10:21:32]line [10:21:32]line [10:21:32]written 0, free lines is 3418 [10:21:32]process_action close_receipt done [10:21:32]requested_data is exist [10:21:32]produce_requested_data [10:21:32]requested_item fm.sn is exist - process it [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 11 00 00 [10:21:32]Write to MH i2c: E2 08 00 2F 6F 80 11 00 00 00 00 00 00 18 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 17 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 17 00 2F 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 68 [10:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:21:32]wFMCommunicate OK [10:21:32]requested_item fd.num is exist - process it [10:21:32]SAM_PROTO_GetFieldsCounters [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 13 00 00 [10:21:32]Write to MH i2c: E2 08 00 30 6F 80 13 00 00 00 00 00 00 1B [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 62 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 62 00 30 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 85 74 01 00 0E 04 04 00 48 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 2F [10:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 85 74 01 00 0E 04 04 00 48 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 [10:21:32]wFMCommunicate OK [10:21:32]SAM_PROTO_GetFieldsCounters done [10:21:32]requested_item shift.num is exist - process it [10:21:32]requested_item shift.opened is exist - process it [10:21:32]req_shift_opened [10:21:32]FM_GetShiftState [10:21:32]SAM_PROTO_GetShiftState [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 13 01 00 [10:21:32]Write to MH i2c: E2 08 00 31 6F 80 13 01 00 00 00 00 00 1D [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 0E 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 0E 00 31 6F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 02 [10:21:32]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:21:32]wFMCommunicate OK [10:21:32]SAM_PROTO_GetShiftState done [10:21:32]FM_GetShiftState done [10:21:32]req_shift_opened done [10:21:32]requested_item shift.open_date is exist - process it [10:21:32]req_shift_open_date [10:21:32]req_shift_open_date done [10:21:32]produce_requested_data done [10:21:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95365,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:21:32]process_action_free close_receipt [10:21:32]json_value_free [10:21:32]json_value_free done [10:21:32]process_json_proto returns [10:21:32]Send response to host [10:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95365,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:21:32]free response buf [10:21:32]execute_script done [10:21:32]execute_script returns [10:21:32]free content buf [10:21:32]Sock 8.Close socket [10:21:32]Sock 8.Thread stoped [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:20]accept exits with 9 [10:24:20]New connection [10:24:20]New thread 3066813796 created [10:24:20]Thread 3066957156 joined [10:24:20]Waiting for new connection... [10:24:20] Sock 9.Parse request [10:24:20]Sock 9.Check first char [10:24:20]Sock 9.First char is OK [10:24:20]request: POST /json_proto HTTP/1.0 [10:24:20]Method: POST [10:24:20]URL: /json_proto [10:24:20]Method is POST - this is cgi request [10:24:20]url: /json_proto [10:24:20]query_string will be loaded in cgi processing [10:24:20]execute_cgi json_proto POST (null) [10:24:20]execute_cgi path=json_proto method=POST [10:24:20]POST find Content-Length [10:24:20]Host: 172.17.62.67:8080 [10:24:20]Content-Length: 677 [10:24:20]Content-Type: application/json [10:24:20] [10:24:20]POST finish read [10:24:20]Found Content-Length = 677 [10:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196352", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:20]execute_script... [10:24:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196352", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:20]POST & json_proto [10:24:20]process_json_proto [10:24:20]json parsed OK: [10:24:20]protocol is kg_v1.0 [10:24:20]action value=close_receipt [10:24:20]process_action close_receipt [10:24:20]cmd_close_receipt [10:24:20]MH_GetDate [10:24:20]Write to MH i2c: F0 00 00 32 6F 90 [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: F0 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: F0 05 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: F0 05 00 32 6F 00 DE 7E F1 65 47 [10:24:20]GetLastDocTimeStamp 1710325299 [10:24:20]current date 1710325470 [10:24:20]FM_GetShiftState [10:24:20]SAM_PROTO_GetShiftState [10:24:20]wFMCommunicate request_size=4 [10:24:20]MH_SAM_APDU [10:24:20]CAPDU: 80 13 01 00 [10:24:20]Write to MH i2c: E2 08 00 33 6F 80 13 01 00 00 00 00 00 1F [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:20]Read from MH i2c: E2 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 0E 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 0E 00 33 6F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 04 [10:24:20]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:24:20]wFMCommunicate OK [10:24:20]SAM_PROTO_GetShiftState done [10:24:20]FM_GetShiftState done [10:24:20]opened in 1710288279 [10:24:20]opened+sec_in_day 1710374679 [10:24:20]quantity*price = 50005 [10:24:20]sum+1 = 50007 [10:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 61 13.03.2024 10:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95366 ФПД: 135495552534283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T102430&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95366&fm=135495552534283&tin=02508201610067®Number=0000000000090555&sum=50000 [10:24:21]StoreToDocumentArchive [10:24:21]shift 328 fd 95366 [10:24:21]save to /storage/0328/doc_00095366 [10:24:21]save last doc name /storage/0328/doc_00095366 to /storage/kkm_last_doc_name [10:24:21]save OK [10:24:21]Clear old archive folders... [10:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:21]tlvbuf is 01A464B0 [10:24:21]SAM_PROTO_ClearQueue [10:24:21]wFMCommunicate request_size=4 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 09 00 00 [10:24:21]Write to MH i2c: E2 08 00 40 6F 80 09 00 00 00 00 00 00 21 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 [10:24:21]MH_I2C_Read... [10:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:21]Read from MH i2c: E2 03 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 40 6F 00 90 00 23 [10:24:21]RAPDU: 90 00 [10:24:21]wFMCommunicate OK [10:24:21]SAM_PROTO_ClearQueue done [10:24:21]KKMCreateOFDPacket [10:24:21]OFDProtocolAddRootSTLVToBuf [10:24:21]FM_MakeSignedData [10:24:21]FM_MakeSignedData [10:24:21]SAM_PROTO_SignData [10:24:21]wFMCommunicate request_size=4 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 0D 01 02 [10:24:21]Write to MH i2c: E2 08 00 41 6F 80 0D 01 02 00 00 00 00 29 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:21]Read from MH i2c: E2 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 [10:24:21]MH_I2C_Read... [10:24:21]Read from MH i2c: E2 03 00 41 6F 00 90 00 24 [10:24:21]RAPDU: 90 00 [10:24:21]wFMCommunicate OK [10:24:21]wFMCommunicate request_size=255 [10:24:21]MH_SAM_APDU [10:24:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 DE 7E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 74 01 00 35 04 06 00 7B [10:24:21]Write to MH i2c: E2 02 01 42 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 DE 7E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 74 01 00 35 04 06 00 7B 00 00 80 [10:24:21]Write i2c OK [10:24:21]MH_I2C_Read... [10:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:22]Read from MH i2c: E2 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: E2 03 00 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: E2 03 00 42 6F 00 90 00 25 [10:24:22]RAPDU: 90 00 [10:24:22]wFMCommunicate OK [10:24:22]wFMCommunicate request_size=10 [10:24:22]MH_SAM_APDU [10:24:22]CAPDU: 80 0D 02 02 05 3B 84 47 07 0B [10:24:22]Write to MH i2c: E2 0D 00 43 6F 80 0D 02 02 05 00 3B 84 47 07 0B 00 00 4E [10:24:22]Write i2c OK [10:24:22]MH_I2C_Read... [10:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:22]Read from MH i2c: E2 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: E2 03 00 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: E2 03 00 43 6F 00 90 00 26 [10:24:22]RAPDU: 90 00 [10:24:22]wFMCommunicate OK [10:24:22]wFMCommunicate request_size=4 [10:24:22]MH_SAM_APDU [10:24:22]CAPDU: 80 0D 03 02 [10:24:22]Write to MH i2c: E2 08 00 44 6F 80 0D 03 02 00 00 00 00 2E [10:24:22]Write i2c OK [10:24:22]MH_I2C_Read... [10:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:22]Read from MH i2c: E2 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: E2 0B 00 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: E2 0B 00 44 6F 00 82 EF 75 38 81 7D 39 74 90 00 F8 [10:24:22]RAPDU: 82 EF 75 38 81 7D 39 74 90 00 [10:24:22]wFMCommunicate OK [10:24:22]SAM_PROTO_SignData done [10:24:22]FM_MakeSignedData done [10:24:22]CreateOFDProtocolMessage [10:24:22]wFMCommunicate request_size=4 [10:24:22]MH_SAM_APDU [10:24:22]CAPDU: 80 11 00 00 [10:24:22]Write to MH i2c: E2 08 00 45 6F 80 11 00 00 00 00 00 00 2E [10:24:22]Write i2c OK [10:24:22]MH_I2C_Read... [10:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:22]Read from MH i2c: E2 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: E2 17 00 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: E2 17 00 45 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7E [10:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:24:22]wFMCommunicate OK [10:24:22]CreateOFDProtocolMessage done [10:24:22]OFDSenderStorePacket 95366 [10:24:22]StoreOFDPacket docnum=95366 [10:24:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 12 41 07 01 58 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 DE 7E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 74 01 00 35 04 06 00 7B 3B 84 47 07 0B 82 EF 75 38 81 7D 39 74 [10:24:22]CheckFolder [10:24:22]dirname=/storage/ofd_packets [10:24:22]CheckFolder done [10:24:22]ProducePacketName [10:24:22]name=ofd_packets/00095366 [10:24:22]NVStorageSaveData ofd_packets/00095366 [10:24:22]File name is /storage/ofd_packets/00095366 [10:24:22]Write 301 bytes [10:24:22]NVStorageSaveData done [10:24:22]OFDSenderStorePacket done [10:24:22]KKMCreateOFDPacket done [10:24:22]NVStorageSaveData kkm_last_timestamp [10:24:22]File name is /storage/kkm_last_timestamp [10:24:22]Write 4 bytes [10:24:22]NVStorageSaveData done [10:24:22]ExternCall_PrintAddStr [10:24:22]wPrintStart [10:24:22]Write to MH i2c: 01 00 00 46 6F B5 [10:24:22]Write i2c OK [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: 01 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: 01 07 00 [10:24:22]MH_I2C_Read... [10:24:22]Read from MH i2c: 01 07 00 46 6F 00 80 00 00 00 FF 0F 4A [10:24:22]RasterBufferAndPrint [10:24:22]line Счет N : (1)196352 [10:24:22]line ИНН: 02508201610067 [10:24:22]line Контрольно-Кассовый Чек [10:24:22]line ПРОДАЖА [10:24:22]line ТРК (МРК, ГНК) : 22 [10:24:22]line Товар: 2710124130 [10:24:22]line Аи-92-К-5 [10:24:22]line 7.950 * 62.90 [10:24:22]line = 500.06 [10:24:22]line НДС 12% НСП 1% [10:24:22]line > о реализуемом товаре [10:24:22]line ОКРУГЛЕНИЕ: -0.06 [10:24:22]line ИТОГО: 500.00 [10:24:22]line Внесено: 500.00 [10:24:22]line СДАЧА: 0.00 [10:24:22]line НСП 1% : 4.42 [10:24:22]line НДС 12% : 53.10 [10:24:22]line Наличными: 500.00 [10:24:22]line Безнал.: 0.00 [10:24:22]line Место: АЗС № 6 "Партнер Нефть" [10:24:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:24:22]line СНО: Общий режим [10:24:22]line Чек 61 13.03.2024 10:24 [10:24:22]line Смена: 328 ФФД: 1.0 [10:24:22]line ЗНМ: 0300000009 [10:24:22]line РНМ: 0000000000090555 [10:24:22]line Версия ККМ: 001 [10:24:22]line ФМ: 0000000000874811 [10:24:22]line ФД: 95366 [10:24:22]line ФПД: 135495552534283 [10:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T102430&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95366&fm=135495552534283&tin=02508201610067®Number=0000000000090555&sum=50000 [10:24:22]written 0, free lines is 4095 [10:24:22]OFD Sender: Processing packet 95366 [packets to send 30, broken 29] [10:24:22]ProducePacketName [10:24:22]name=ofd_packets/00095366 [10:24:22]OFD Sender: To server: pG, [10:24:22]CommunicateWithHost lk.salyk.kg:30040 [10:24:22]ConnectInit lk.salyk.kg [10:24:22]Connected sock=8 [10:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 12 41 07 01 58 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 DE 7E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 74 01 00 35 04 06 00 7B 3B 84 47 07 0B 82 EF 75 38 81 7D 39 74 [10:24:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A6 87 47 00 00 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 86 74 01 00 F4 03 04 00 32 2A F1 65 B6 04 01 00 00 A1 82 BB 71 6A BD C8 33 [10:24:22]CommunicateWithHost err = 0 [10:24:22]CheckOFDResponse [10:24:22]1017 (14) - 77093643461234 [10:24:22]1041 (16) - 0000000000874811 [10:24:22]1040 (4) - 95366 [10:24:22]1012 (4) - 13.03.2024 04:23 [10:24:22]1206 (1) - 0 [10:24:22]OFD Sender: Remove packet 95366 [10:24:22]ProducePacketName [10:24:22]name=ofd_packets/00095366 [10:24:22]NVStorageDeleteData [10:24:23]Write to MH i2c: 01 00 00 71 6F E0 [10:24:23]Write i2c OK [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: 01 [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: 01 07 00 [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: 01 07 00 71 6F 00 80 00 00 00 52 0D C6 [10:24:23]RasterBufferAndPrint [10:24:23]line [10:24:23]line [10:24:23]line [10:24:23]line [10:24:23]line [10:24:23]written 0, free lines is 3418 [10:24:23]process_action close_receipt done [10:24:23]requested_data is exist [10:24:23]produce_requested_data [10:24:23]requested_item fm.sn is exist - process it [10:24:23]wFMCommunicate request_size=4 [10:24:23]MH_SAM_APDU [10:24:23]CAPDU: 80 11 00 00 [10:24:23]Write to MH i2c: E2 08 00 78 6F 80 11 00 00 00 00 00 00 61 [10:24:23]Write i2c OK [10:24:23]MH_I2C_Read... [10:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:23]Read from MH i2c: E2 [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: E2 17 00 [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: E2 17 00 78 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B1 [10:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:24:23]wFMCommunicate OK [10:24:23]requested_item fd.num is exist - process it [10:24:23]SAM_PROTO_GetFieldsCounters [10:24:23]wFMCommunicate request_size=4 [10:24:23]MH_SAM_APDU [10:24:23]CAPDU: 80 13 00 00 [10:24:23]Write to MH i2c: E2 08 00 79 6F 80 13 00 00 00 00 00 00 64 [10:24:23]Write i2c OK [10:24:23]MH_I2C_Read... [10:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:23]Read from MH i2c: E2 [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: E2 62 00 [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: E2 62 00 79 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 74 01 00 0E 04 04 00 48 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 7C [10:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 86 74 01 00 0E 04 04 00 48 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 [10:24:23]wFMCommunicate OK [10:24:23]SAM_PROTO_GetFieldsCounters done [10:24:23]requested_item shift.num is exist - process it [10:24:23]requested_item shift.opened is exist - process it [10:24:23]req_shift_opened [10:24:23]FM_GetShiftState [10:24:23]SAM_PROTO_GetShiftState [10:24:23]wFMCommunicate request_size=4 [10:24:23]MH_SAM_APDU [10:24:23]CAPDU: 80 13 01 00 [10:24:23]Write to MH i2c: E2 08 00 7A 6F 80 13 01 00 00 00 00 00 66 [10:24:23]Write i2c OK [10:24:23]MH_I2C_Read... [10:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:23]OFD Sender: No OFD packet to send [10:24:23]Read from MH i2c: E2 [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: E2 0E 00 [10:24:23]MH_I2C_Read... [10:24:23]Read from MH i2c: E2 0E 00 7A 6F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4B [10:24:23]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:24:23]wFMCommunicate OK [10:24:23]SAM_PROTO_GetShiftState done [10:24:23]FM_GetShiftState done [10:24:23]req_shift_opened done [10:24:23]requested_item shift.open_date is exist - process it [10:24:23]req_shift_open_date [10:24:23]req_shift_open_date done [10:24:23]produce_requested_data done [10:24:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95366,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:24:23]process_action_free close_receipt [10:24:23]json_value_free [10:24:23]json_value_free done [10:24:23]process_json_proto returns [10:24:23]Send response to host [10:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95366,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:24:23]free response buf [10:24:23]execute_script done [10:24:23]execute_script returns [10:24:23]free content buf [10:24:23]Sock 9.Close socket [10:24:23]Sock 9.Thread stoped [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:54]accept exits with 10 [10:26:54]New connection [10:26:54]New thread 3066957156 created [10:26:54]Thread 3066813796 joined [10:26:54]Waiting for new connection... [10:26:54] Sock 10.Parse request [10:26:54]Sock 10.Check first char [10:26:54]Sock 10.First char is OK [10:26:54]request: POST /json_proto HTTP/1.0 [10:26:54]Method: POST [10:26:54]URL: /json_proto [10:26:54]Method is POST - this is cgi request [10:26:54]url: /json_proto [10:26:54]query_string will be loaded in cgi processing [10:26:54]execute_cgi json_proto POST (null) [10:26:54]execute_cgi path=json_proto method=POST [10:26:54]POST find Content-Length [10:26:54]Host: 172.17.62.67:8080 [10:26:54]Content-Length: 677 [10:26:54]Content-Type: application/json [10:26:54] [10:26:54]POST finish read [10:26:54]Found Content-Length = 677 [10:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196353", "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" : 62.90, "quantity" : 2.000, "sum" : 125.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 125.00, "total" : 125.00, "payments": [ { "type": 0, "sum" : 125.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:54]execute_script... [10:26:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196353", "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" : 62.90, "quantity" : 2.000, "sum" : 125.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 125.00, "total" : 125.00, "payments": [ { "type": 0, "sum" : 125.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:54]POST & json_proto [10:26:54]process_json_proto [10:26:54]json parsed OK: [10:26:54]protocol is kg_v1.0 [10:26:54]action value=close_receipt [10:26:54]process_action close_receipt [10:26:54]cmd_close_receipt [10:26:54]MH_GetDate [10:26:54]Write to MH i2c: F0 00 00 7B 6F D9 [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: F0 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: F0 05 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: F0 05 00 7B 6F 00 78 7F F1 65 2B [10:26:54]GetLastDocTimeStamp 1710325470 [10:26:54]current date 1710325624 [10:26:54]FM_GetShiftState [10:26:54]SAM_PROTO_GetShiftState [10:26:54]wFMCommunicate request_size=4 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 13 01 00 [10:26:54]Write to MH i2c: E2 08 00 7C 6F 80 13 01 00 00 00 00 00 68 [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0E 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0E 00 7C 6F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4D [10:26:54]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:26:54]wFMCommunicate OK [10:26:54]SAM_PROTO_GetShiftState done [10:26:54]FM_GetShiftState done [10:26:54]opened in 1710288279 [10:26:54]opened+sec_in_day 1710374679 [10:26:54]quantity*price = 12580 [10:26:54]sum+1 = 12581 [10:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.80 ИТОГО: 125.00 Внесено: 125.00 СДАЧА: 0.00 НСП 1% : 1.11 НДС 12% : 13.36 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 62 13.03.2024 10:27 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95367 ФПД: 137161030527537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T102704&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95367&fm=137161030527537&tin=02508201610067®Number=0000000000090555&sum=12500 [10:26:55]StoreToDocumentArchive [10:26:55]shift 328 fd 95367 [10:26:55]save to /storage/0328/doc_00095367 [10:26:55]save last doc name /storage/0328/doc_00095367 to /storage/kkm_last_doc_name [10:26:55]save OK [10:26:55]Clear old archive folders... [10:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:55]tlvbuf is 01B6D740 [10:26:55]SAM_PROTO_ClearQueue [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 09 00 00 [10:26:55]Write to MH i2c: E2 08 00 89 6F 80 09 00 00 00 00 00 00 6A [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:55]Read from MH i2c: E2 03 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 03 00 89 6F 00 90 00 6C [10:26:55]RAPDU: 90 00 [10:26:55]wFMCommunicate OK [10:26:55]SAM_PROTO_ClearQueue done [10:26:55]KKMCreateOFDPacket [10:26:55]OFDProtocolAddRootSTLVToBuf [10:26:55]FM_MakeSignedData [10:26:55]FM_MakeSignedData [10:26:55]SAM_PROTO_SignData [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 0D 01 02 [10:26:55]Write to MH i2c: E2 08 00 8A 6F 80 0D 01 02 00 00 00 00 72 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:55]Read from MH i2c: E2 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 03 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 03 00 8A 6F 00 90 00 6D [10:26:55]RAPDU: 90 00 [10:26:55]wFMCommunicate OK [10:26:55]wFMCommunicate request_size=255 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 24 31 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 38 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 3E 00 00 00 F4 03 04 00 78 7F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 74 01 00 35 04 06 00 7C [10:26:55]Write to MH i2c: E2 02 01 8B 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 24 31 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 38 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 3E 00 00 00 F4 03 04 00 78 7F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 74 01 00 35 04 06 00 7C 00 00 4E [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 8B 6F 00 90 00 6E [10:26:56]RAPDU: 90 00 [10:26:56]wFMCommunicate OK [10:26:56]wFMCommunicate request_size=10 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 0D 02 02 05 BF 4A 80 6A 31 [10:26:56]Write to MH i2c: E2 0D 00 8C 6F 80 0D 02 02 05 00 BF 4A 80 6A 31 00 00 A3 [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 8C 6F 00 90 00 6F [10:26:56]RAPDU: 90 00 [10:26:56]wFMCommunicate OK [10:26:56]wFMCommunicate request_size=4 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 0D 03 02 [10:26:56]Write to MH i2c: E2 08 00 8D 6F 80 0D 03 02 00 00 00 00 77 [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 0B 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 0B 00 8D 6F 00 BF B4 F9 A5 38 BE 39 99 90 00 51 [10:26:56]RAPDU: BF B4 F9 A5 38 BE 39 99 90 00 [10:26:56]wFMCommunicate OK [10:26:56]SAM_PROTO_SignData done [10:26:56]FM_MakeSignedData done [10:26:56]CreateOFDProtocolMessage [10:26:56]wFMCommunicate request_size=4 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 11 00 00 [10:26:56]Write to MH i2c: E2 08 00 8E 6F 80 11 00 00 00 00 00 00 77 [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 17 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 17 00 8E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [10:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:26:56]wFMCommunicate OK [10:26:56]CreateOFDProtocolMessage done [10:26:56]OFDSenderStorePacket 95367 [10:26:56]StoreOFDPacket docnum=95367 [10:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 63 53 07 01 BE 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 24 31 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 38 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 3E 00 00 00 F4 03 04 00 78 7F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 74 01 00 35 04 06 00 7C BF 4A 80 6A 31 BF B4 F9 A5 38 BE 39 99 [10:26:56]CheckFolder [10:26:56]dirname=/storage/ofd_packets [10:26:56]CheckFolder done [10:26:56]ProducePacketName [10:26:56]name=ofd_packets/00095367 [10:26:56]NVStorageSaveData ofd_packets/00095367 [10:26:56]File name is /storage/ofd_packets/00095367 [10:26:56]Write 301 bytes [10:26:56]NVStorageSaveData done [10:26:56]OFDSenderStorePacket done [10:26:56]KKMCreateOFDPacket done [10:26:56]NVStorageSaveData kkm_last_timestamp [10:26:56]File name is /storage/kkm_last_timestamp [10:26:56]Write 4 bytes [10:26:56]NVStorageSaveData done [10:26:56]ExternCall_PrintAddStr [10:26:56]wPrintStart [10:26:56]Write to MH i2c: 01 00 00 8F 6F FE [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: 01 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: 01 07 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: 01 07 00 8F 6F 00 80 00 00 00 FF 0F 93 [10:26:56]RasterBufferAndPrint [10:26:56]line Счет N : (1)196353 [10:26:56]line ИНН: 02508201610067 [10:26:56]line Контрольно-Кассовый Чек [10:26:56]line ПРОДАЖА [10:26:56]line ТРК (МРК, ГНК) : 12 [10:26:56]line Товар: 2710124130 [10:26:56]line Аи-92-К-5 [10:26:56]line 2.000 * 62.90 [10:26:56]line = 125.80 [10:26:56]line НДС 12% НСП 1% [10:26:56]line > о реализуемом товаре [10:26:56]line ОКРУГЛЕНИЕ: -0.80 [10:26:56]line ИТОГО: 125.00 [10:26:56]line Внесено: 125.00 [10:26:56]line СДАЧА: 0.00 [10:26:56]line НСП 1% : 1.11 [10:26:56]line НДС 12% : 13.36 [10:26:56]line Наличными: 125.00 [10:26:56]line Безнал.: 0.00 [10:26:56]line Место: АЗС № 6 "Партнер Нефть" [10:26:56]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:26:56]line СНО: Общий режим [10:26:56]line Чек 62 13.03.2024 10:27 [10:26:56]line Смена: 328 ФФД: 1.0 [10:26:56]line ЗНМ: 0300000009 [10:26:56]line РНМ: 0000000000090555 [10:26:56]line Версия ККМ: 001 [10:26:56]line ФМ: 0000000000874811 [10:26:56]line ФД: 95367 [10:26:56]line ФПД: 137161030527537 [10:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T102704&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95367&fm=137161030527537&tin=02508201610067®Number=0000000000090555&sum=12500 [10:26:56]written 0, free lines is 4095 [10:26:56]OFD Sender: Processing packet 95367 [packets to send 30, broken 29] [10:26:56]ProducePacketName [10:26:56]name=ofd_packets/00095367 [10:26:56]OFD Sender: To server: pG, [10:26:56]CommunicateWithHost lk.salyk.kg:30040 [10:26:56]ConnectInit lk.salyk.kg [10:26:56]Connected sock=9 [10:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 63 53 07 01 BE 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 24 31 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 38 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 3E 00 00 00 F4 03 04 00 78 7F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 87 74 01 00 35 04 06 00 7C BF 4A 80 6A 31 BF B4 F9 A5 38 BE 39 99 [10:26:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 30 0F 47 00 A4 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 34 38 31 31 10 04 04 00 87 74 01 00 F4 03 04 00 CC 2A F1 65 B6 04 01 00 00 91 89 55 17 C6 24 33 36 [10:26:56]CommunicateWithHost err = 0 [10:26:56]CheckOFDResponse [10:26:56]1017 (14) - 77093643461234 [10:26:56]1041 (16) - 0000000000874811 [10:26:56]1040 (4) - 95367 [10:26:56]1012 (4) - 13.03.2024 04:25 [10:26:56]1206 (1) - 0 [10:26:56]OFD Sender: Remove packet 95367 [10:26:56]ProducePacketName [10:26:56]name=ofd_packets/00095367 [10:26:56]NVStorageDeleteData [10:26:57]Write to MH i2c: 01 00 00 BA 6F 29 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 BA 6F 00 80 00 00 00 4C 0D 09 [10:26:57]RasterBufferAndPrint [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]written 0, free lines is 3410 [10:26:57]process_action close_receipt done [10:26:57]requested_data is exist [10:26:57]produce_requested_data [10:26:57]requested_item fm.sn is exist - process it [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 11 00 00 [10:26:57]Write to MH i2c: E2 08 00 C1 6F 80 11 00 00 00 00 00 00 AA [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 C1 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FA [10:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:26:57]wFMCommunicate OK [10:26:57]requested_item fd.num is exist - process it [10:26:57]SAM_PROTO_GetFieldsCounters [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 13 00 00 [10:26:57]Write to MH i2c: E2 08 00 C2 6F 80 13 00 00 00 00 00 00 AD [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 62 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 62 00 C2 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 87 74 01 00 0E 04 04 00 48 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 C9 [10:26:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 87 74 01 00 0E 04 04 00 48 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 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_GetFieldsCounters done [10:26:57]requested_item shift.num is exist - process it [10:26:57]requested_item shift.opened is exist - process it [10:26:57]req_shift_opened [10:26:57]FM_GetShiftState [10:26:57]SAM_PROTO_GetShiftState [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 13 01 00 [10:26:57]Write to MH i2c: E2 08 00 C3 6F 80 13 01 00 00 00 00 00 AF [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0E 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0E 00 C3 6F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 94 [10:26:57]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_GetShiftState done [10:26:57]FM_GetShiftState done [10:26:57]req_shift_opened done [10:26:57]requested_item shift.open_date is exist - process it [10:26:57]req_shift_open_date [10:26:57]req_shift_open_date done [10:26:57]produce_requested_data done [10:26:57]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95367,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:26:57]process_action_free close_receipt [10:26:57]json_value_free [10:26:57]json_value_free done [10:26:57]process_json_proto returns [10:26:57]Send response to host [10:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95367,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:26:57]free response buf [10:26:57]execute_script done [10:26:57]execute_script returns [10:26:57]free content buf [10:26:57]Sock 10.Close socket [10:26:57]Sock 10.Thread stoped [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:06]accept exits with 8 [10:34:06]New connection [10:34:06]New thread 3066813796 created [10:34:06]Thread 3066957156 joined [10:34:06]Waiting for new connection... [10:34:06] Sock 8.Parse request [10:34:06]Sock 8.Check first char [10:34:06]Sock 8.First char is OK [10:34:06]request: POST /json_proto HTTP/1.0 [10:34:06]Method: POST [10:34:06]URL: /json_proto [10:34:06]Method is POST - this is cgi request [10:34:06]url: /json_proto [10:34:06]query_string will be loaded in cgi processing [10:34:06]execute_cgi json_proto POST (null) [10:34:06]execute_cgi path=json_proto method=POST [10:34:06]POST find Content-Length [10:34:06]Host: 172.17.62.67:8080 [10:34:06]Content-Length: 904 [10:34:06]Content-Type: application/json [10:34:06] [10:34:06]POST finish read [10:34:06]Found Content-Length = 904 [10:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11540", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:06]execute_script... [10:34: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)11540", "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" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:06]POST & json_proto [10:34:06]process_json_proto [10:34:06]json parsed OK: [10:34:06]protocol is kg_v1.0 [10:34:06]action value=close_receipt [10:34:06]process_action close_receipt [10:34:06]cmd_close_receipt [10:34:06]MH_GetDate [10:34:06]Write to MH i2c: F0 00 00 C4 6F 22 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: F0 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: F0 05 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: F0 05 00 C4 6F 00 29 81 F1 65 27 [10:34:06]GetLastDocTimeStamp 1710325624 [10:34:06]current date 1710326057 [10:34:06]FM_GetShiftState [10:34:06]SAM_PROTO_GetShiftState [10:34:06]wFMCommunicate request_size=4 [10:34:06]MH_SAM_APDU [10:34:06]CAPDU: 80 13 01 00 [10:34:06]Write to MH i2c: E2 08 00 C5 6F 80 13 01 00 00 00 00 00 B1 [10:34:06]Write i2c OK [10:34:06]MH_I2C_Read... [10:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:06]Read from MH i2c: E2 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 0E 00 [10:34:06]MH_I2C_Read... [10:34:06]Read from MH i2c: E2 0E 00 C5 6F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 96 [10:34:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:34:06]wFMCommunicate OK [10:34:06]SAM_PROTO_GetShiftState done [10:34:06]FM_GetShiftState done [10:34:06]opened in 1710288279 [10:34:06]opened+sec_in_day 1710374679 [10:34:06]quantity*price = 11000 [10:34:06]sum+1 = 11001 [10:34:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030092567 Сигареты Esse Exchange Summer Red 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.48 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 63 13.03.2024 10:34 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95368 ФПД: 281209199350119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T103417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95368&fm=281209199350119&tin=02508201610067®Number=0000000000090555&sum=24000 0 [10:34:07]StoreToDocumentArchive [10:34:07]shift 328 fd 95368 [10:34:07]save to /storage/0328/doc_00095368 [10:34:07]save last doc name /storage/0328/doc_00095368 to /storage/kkm_last_doc_name [10:34:07]save OK [10:34:07]Clear old archive folders... [10:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=391 [10:34:07]tlvbuf is 01A085C0 [10:34:07]SAM_PROTO_ClearQueue [10:34:07]wFMCommunicate request_size=4 [10:34:07]MH_SAM_APDU [10:34:07]CAPDU: 80 09 00 00 [10:34:07]Write to MH i2c: E2 08 00 D2 6F 80 09 00 00 00 00 00 00 B3 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:07]Read from MH i2c: E2 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 03 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 03 00 D2 6F 00 90 00 B5 [10:34:07]RAPDU: 90 00 [10:34:07]wFMCommunicate OK [10:34:07]SAM_PROTO_ClearQueue done [10:34:07]KKMCreateOFDPacket [10:34:07]OFDProtocolAddRootSTLVToBuf [10:34:07]FM_MakeSignedData [10:34:07]FM_MakeSignedData [10:34:07]SAM_PROTO_SignData [10:34:07]wFMCommunicate request_size=4 [10:34:07]MH_SAM_APDU [10:34:07]CAPDU: 80 0D 01 02 [10:34:07]Write to MH i2c: E2 08 00 D3 6F 80 0D 01 02 00 00 00 00 BB [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:07]Read from MH i2c: E2 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 03 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 03 00 D3 6F 00 90 00 B6 [10:34:07]RAPDU: 90 00 [10:34:07]wFMCommunicate OK [10:34:07]wFMCommunicate request_size=255 [10:34:07]MH_SAM_APDU [10:34:07]CAPDU: 80 0D 02 02 FA 03 00 87 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 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 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [10:34:07]Write to MH i2c: E2 02 01 D4 6F 80 0D 02 02 FA 00 03 00 87 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 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 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 B4 [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:08]Read from MH i2c: E2 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 03 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 03 00 D4 6F 00 90 00 B7 [10:34:08]RAPDU: 90 00 [10:34:08]wFMCommunicate OK [10:34:08]wFMCommunicate request_size=150 [10:34:08]MH_SAM_APDU [10:34:08]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 29 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 74 01 00 35 04 06 00 FF C2 1E 6F 51 67 [10:34:08]Write to MH i2c: E2 99 00 D5 6F 80 0D 02 02 91 00 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 29 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 74 01 00 35 04 06 00 FF C2 1E 6F 51 67 00 00 84 [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:08]Read from MH i2c: E2 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 03 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 03 00 D5 6F 00 90 00 B8 [10:34:08]RAPDU: 90 00 [10:34:08]wFMCommunicate OK [10:34:08]wFMCommunicate request_size=4 [10:34:08]MH_SAM_APDU [10:34:08]CAPDU: 80 0D 03 02 [10:34:08]Write to MH i2c: E2 08 00 D6 6F 80 0D 03 02 00 00 00 00 C0 [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:08]Read from MH i2c: E2 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 0B 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 0B 00 D6 6F 00 62 A7 19 C0 A1 B4 96 B9 90 00 47 [10:34:08]RAPDU: 62 A7 19 C0 A1 B4 96 B9 90 00 [10:34:08]wFMCommunicate OK [10:34:08]SAM_PROTO_SignData done [10:34:08]FM_MakeSignedData done [10:34:08]CreateOFDProtocolMessage [10:34:08]wFMCommunicate request_size=4 [10:34:08]MH_SAM_APDU [10:34:08]CAPDU: 80 11 00 00 [10:34:08]Write to MH i2c: E2 08 00 D7 6F 80 11 00 00 00 00 00 00 C0 [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:08]Read from MH i2c: E2 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 17 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: E2 17 00 D7 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [10:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:34:08]wFMCommunicate OK [10:34:08]CreateOFDProtocolMessage done [10:34:08]OFDSenderStorePacket 95368 [10:34:08]StoreOFDPacket docnum=95368 [10:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 9B 01 00 00 97 0F 93 01 D7 EC 5A 03 01 00 03 00 87 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 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 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 29 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 74 01 00 35 04 06 00 FF C2 1E 6F 51 67 62 A7 19 C0 A1 B4 96 B9 [10:34:08]CheckFolder [10:34:08]dirname=/storage/ofd_packets [10:34:08]CheckFolder done [10:34:08]ProducePacketName [10:34:08]name=ofd_packets/00095368 [10:34:08]NVStorageSaveData ofd_packets/00095368 [10:34:08]File name is /storage/ofd_packets/00095368 [10:34:08]Write 441 bytes [10:34:08]NVStorageSaveData done [10:34:08]OFDSenderStorePacket done [10:34:08]KKMCreateOFDPacket done [10:34:08]NVStorageSaveData kkm_last_timestamp [10:34:08]File name is /storage/kkm_last_timestamp [10:34:08]Write 4 bytes [10:34:08]NVStorageSaveData done [10:34:08]ExternCall_PrintAddStr [10:34:08]wPrintStart [10:34:08]Write to MH i2c: 01 00 00 D8 6F 47 [10:34:08]Write i2c OK [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: 01 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: 01 07 00 [10:34:08]MH_I2C_Read... [10:34:08]Read from MH i2c: 01 07 00 D8 6F 00 80 00 00 00 FF 0F DC [10:34:08]RasterBufferAndPrint [10:34:08]line Счет N : (3)11540 [10:34:08]line ИНН: 02508201610067 [10:34:08]line Контрольно-Кассовый Чек [10:34:08]line ПРОДАЖА [10:34:08]line Товар: 5449000054227 [10:34:08]line Напиток Кока-Кола 1л [10:34:08]line 1.000 * 110.00 [10:34:08]line = 110.00 [10:34:08]line НДС 12% НСП 1% [10:34:08]line > о реализуемом товаре [10:34:08]line Товар: 4640030092567 [10:34:08]line Сигареты Esse Exchange Summer Red [10:34:08]line 1.000 * 130.00 [10:34:08]line = 130.00 [10:34:08]line НДС 12% НСП 1% [10:34:08]line > о реализуемом товаре [10:34:08]line ИТОГО: 240.00 [10:34:08]line НСП 1% : 2.12 [10:34:08]line НДС 12% : 25.48 [10:34:08]line Наличными: 240.00 [10:34:08]line Безнал.: 0.00 [10:34:08]line Место: АЗС № 6 "Партнер Нефть" [10:34:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:34:08]line СНО: Общий режим [10:34:08]line Чек 63 13.03.2024 10:34 [10:34:08]line Смена: 328 ФФД: 1.0 [10:34:08]line ЗНМ: 0300000009 [10:34:08]line РНМ: 0000000000090555 [10:34:08]line Версия ККМ: 001 [10:34:08]line ФМ: 0000000000874811 [10:34:08]line ФД: 95368 [10:34:08]line ФПД: 281209199350119 [10:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T103417&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95368&fm=281209199350119&tin=02508201610067®Number=0000000000090555&sum=24000 [10:34:08]line 0 [10:34:08]OFD Sender: Processing packet 95368 [packets to send 30, broken 29] [10:34:08]ProducePacketName [10:34:08]name=ofd_packets/00095368 [10:34:08]OFD Sender: To server: pG, [10:34:08]CommunicateWithHost lk.salyk.kg:30040 [10:34:08]ConnectInit lk.salyk.kg [10:34:08]written 0, free lines is 4095 [10:34:08]Connected sock=10 [10:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 9B 01 00 00 97 0F 93 01 D7 EC 5A 03 01 00 03 00 87 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 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 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 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 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 29 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 74 01 00 35 04 06 00 FF C2 1E 6F 51 67 62 A7 19 C0 A1 B4 96 B9 [10:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 49 B5 47 00 0F 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 88 74 01 00 F4 03 04 00 7C 2C F1 65 B6 04 01 00 00 74 66 87 1C A6 AF D4 F4 [10:34:09]CommunicateWithHost err = 0 [10:34:09]CheckOFDResponse [10:34:09]1017 (14) - 77093643461234 [10:34:09]1041 (16) - 0000000000874811 [10:34:09]1040 (4) - 95368 [10:34:09]1012 (4) - 13.03.2024 04:33 [10:34:09]1206 (1) - 0 [10:34:09]OFD Sender: Remove packet 95368 [10:34:09]ProducePacketName [10:34:09]name=ofd_packets/00095368 [10:34:09]NVStorageDeleteData [10:34:09]Write to MH i2c: 01 00 00 07 70 77 [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: 01 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: 01 07 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: 01 07 00 07 70 00 80 00 00 00 28 0D 33 [10:34:09]RasterBufferAndPrint [10:34:09]line [10:34:09]line [10:34:09]line [10:34:09]line [10:34:09]line [10:34:09]written 0, free lines is 3374 [10:34:09]process_action close_receipt done [10:34:09]requested_data is exist [10:34:09]produce_requested_data [10:34:09]requested_item fm.sn is exist - process it [10:34:09]wFMCommunicate request_size=4 [10:34:09]MH_SAM_APDU [10:34:09]CAPDU: 80 11 00 00 [10:34:09]Write to MH i2c: E2 08 00 0E 70 80 11 00 00 00 00 00 00 F8 [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:09]Read from MH i2c: E2 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 17 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 17 00 0E 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 48 [10:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:34:09]wFMCommunicate OK [10:34:09]requested_item fd.num is exist - process it [10:34:09]SAM_PROTO_GetFieldsCounters [10:34:09]wFMCommunicate request_size=4 [10:34:09]MH_SAM_APDU [10:34:09]CAPDU: 80 13 00 00 [10:34:09]Write to MH i2c: E2 08 00 0F 70 80 13 00 00 00 00 00 00 FB [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:09]Read from MH i2c: E2 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 62 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 62 00 0F 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 88 74 01 00 0E 04 04 00 48 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 [10:34:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 88 74 01 00 0E 04 04 00 48 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 [10:34:09]wFMCommunicate OK [10:34:09]SAM_PROTO_GetFieldsCounters done [10:34:09]requested_item shift.num is exist - process it [10:34:09]requested_item shift.opened is exist - process it [10:34:09]req_shift_opened [10:34:09]FM_GetShiftState [10:34:09]SAM_PROTO_GetShiftState [10:34:09]wFMCommunicate request_size=4 [10:34:09]MH_SAM_APDU [10:34:09]CAPDU: 80 13 01 00 [10:34:09]Write to MH i2c: E2 08 00 10 70 80 13 01 00 00 00 00 00 FD [10:34:09]Write i2c OK [10:34:09]MH_I2C_Read... [10:34:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:09]Read from MH i2c: E2 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 0E 00 [10:34:09]MH_I2C_Read... [10:34:09]Read from MH i2c: E2 0E 00 10 70 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E2 [10:34:09]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:34:09]wFMCommunicate OK [10:34:09]SAM_PROTO_GetShiftState done [10:34:09]FM_GetShiftState done [10:34:09]req_shift_opened done [10:34:09]requested_item shift.open_date is exist - process it [10:34:09]req_shift_open_date [10:34:09]req_shift_open_date done [10:34:09]produce_requested_data done [10:34:09]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95368,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:34:09]process_action_free close_receipt [10:34:09]json_value_free [10:34:09]json_value_free done [10:34:09]process_json_proto returns [10:34:09]Send response to host [10:34:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95368,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:34:09]free response buf [10:34:09]execute_script done [10:34:09]execute_script returns [10:34:09]free content buf [10:34:09]Sock 8.Close socket [10:34:09]Sock 8.Thread stoped [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:50]accept exits with 9 [10:35:50]New connection [10:35:50]New thread 3066957156 created [10:35:50]Thread 3066813796 joined [10:35:50]Waiting for new connection... [10:35:50] Sock 9.Parse request [10:35:50]Sock 9.Check first char [10:35:50]Sock 9.First char is OK [10:35:50]request: POST /json_proto HTTP/1.0 [10:35:50]Method: POST [10:35:50]URL: /json_proto [10:35:50]Method is POST - this is cgi request [10:35:50]url: /json_proto [10:35:50]query_string will be loaded in cgi processing [10:35:50]execute_cgi json_proto POST (null) [10:35:50]execute_cgi path=json_proto method=POST [10:35:50]POST find Content-Length [10:35:50]Host: 172.17.62.67:8080 [10:35:50]Content-Length: 816 [10:35:50]Content-Type: application/json [10:35:50] [10:35:50]POST finish read [10:35:50]Found Content-Length = 816 [10:35:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196354", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:50]execute_script... [10:35: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)196354", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:50]POST & json_proto [10:35:50]process_json_proto [10:35:50]json parsed OK: [10:35:50]protocol is kg_v1.0 [10:35:50]action value=close_receipt [10:35:50]process_action close_receipt [10:35:50]cmd_close_receipt [10:35:50]MH_GetDate [10:35:50]Write to MH i2c: F0 00 00 11 70 70 [10:35:50]Write i2c OK [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: F0 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: F0 05 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: F0 05 00 11 70 00 90 81 F1 65 DC [10:35:50]GetLastDocTimeStamp 1710326057 [10:35:50]current date 1710326160 [10:35:50]FM_GetShiftState [10:35:50]SAM_PROTO_GetShiftState [10:35:50]wFMCommunicate request_size=4 [10:35:50]MH_SAM_APDU [10:35:50]CAPDU: 80 13 01 00 [10:35:50]Write to MH i2c: E2 08 00 12 70 80 13 01 00 00 00 00 00 FF [10:35:50]Write i2c OK [10:35:50]MH_I2C_Read... [10:35:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:50]Read from MH i2c: E2 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 0E 00 [10:35:50]MH_I2C_Read... [10:35:50]Read from MH i2c: E2 0E 00 12 70 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E4 [10:35:50]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:35:50]wFMCommunicate OK [10:35:50]SAM_PROTO_GetShiftState done [10:35:50]FM_GetShiftState done [10:35:50]opened in 1710288279 [10:35:50]opened+sec_in_day 1710374679 [10:35:50]quantity*price = 50005 [10:35:50]sum+1 = 50007 [10:35:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 64 13.03.2024 10:36 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95369 ФПД: 123951267044766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T103600&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95369&fm=123951267044766&tin=02508201610067®Number=0000000000090555&sum=50006 [10:35:51]StoreToDocumentArchive [10:35:51]shift 328 fd 95369 [10:35:51]save to /storage/0328/doc_00095369 [10:35:51]save last doc name /storage/0328/doc_00095369 to /storage/kkm_last_doc_name [10:35:51]save OK [10:35:51]Clear old archive folders... [10:35:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:51]tlvbuf is 01A08140 [10:35:51]SAM_PROTO_ClearQueue [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 09 00 00 [10:35:51]Write to MH i2c: E2 08 00 1F 70 80 09 00 00 00 00 00 00 01 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 1F 70 00 90 00 03 [10:35:51]RAPDU: 90 00 [10:35:51]wFMCommunicate OK [10:35:51]SAM_PROTO_ClearQueue done [10:35:51]KKMCreateOFDPacket [10:35:51]OFDProtocolAddRootSTLVToBuf [10:35:51]FM_MakeSignedData [10:35:51]FM_MakeSignedData [10:35:51]SAM_PROTO_SignData [10:35:51]wFMCommunicate request_size=4 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 0D 01 02 [10:35:51]Write to MH i2c: E2 08 00 20 70 80 0D 01 02 00 00 00 00 09 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 20 70 00 90 00 04 [10:35:51]RAPDU: 90 00 [10:35:51]wFMCommunicate OK [10:35:51]wFMCommunicate request_size=255 [10:35:51]MH_SAM_APDU [10:35: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 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 90 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 74 01 00 35 04 06 00 70 [10:35:51]Write to MH i2c: E2 02 01 21 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 90 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 74 01 00 35 04 06 00 70 00 00 1C [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:51]Read from MH i2c: E2 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 [10:35:51]MH_I2C_Read... [10:35:51]Read from MH i2c: E2 03 00 21 70 00 90 00 05 [10:35:51]RAPDU: 90 00 [10:35:51]wFMCommunicate OK [10:35:51]wFMCommunicate request_size=10 [10:35:51]MH_SAM_APDU [10:35:51]CAPDU: 80 0D 02 02 05 BB A7 3D DD 9E [10:35:51]Write to MH i2c: E2 0D 00 22 70 80 0D 02 02 05 00 BB A7 3D DD 9E 00 00 30 [10:35:51]Write i2c OK [10:35:51]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 03 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 03 00 22 70 00 90 00 06 [10:35:52]RAPDU: 90 00 [10:35:52]wFMCommunicate OK [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 0D 03 02 [10:35:52]Write to MH i2c: E2 08 00 23 70 80 0D 03 02 00 00 00 00 0E [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 0B 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 0B 00 23 70 00 12 AC 23 EE F3 F2 19 5F 90 00 3B [10:35:52]RAPDU: 12 AC 23 EE F3 F2 19 5F 90 00 [10:35:52]wFMCommunicate OK [10:35:52]SAM_PROTO_SignData done [10:35:52]FM_MakeSignedData done [10:35:52]CreateOFDProtocolMessage [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 11 00 00 [10:35:52]Write to MH i2c: E2 08 00 24 70 80 11 00 00 00 00 00 00 0E [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 17 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 17 00 24 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5E [10:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:35:52]wFMCommunicate OK [10:35:52]CreateOFDProtocolMessage done [10:35:52]OFDSenderStorePacket 95369 [10:35:52]StoreOFDPacket docnum=95369 [10:35:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7C 15 07 01 51 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 90 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 74 01 00 35 04 06 00 70 BB A7 3D DD 9E 12 AC 23 EE F3 F2 19 5F [10:35:52]CheckFolder [10:35:52]dirname=/storage/ofd_packets [10:35:52]CheckFolder done [10:35:52]ProducePacketName [10:35:52]name=ofd_packets/00095369 [10:35:52]NVStorageSaveData ofd_packets/00095369 [10:35:52]File name is /storage/ofd_packets/00095369 [10:35:52]Write 301 bytes [10:35:52]NVStorageSaveData done [10:35:52]OFDSenderStorePacket done [10:35:52]KKMCreateOFDPacket done [10:35:52]NVStorageSaveData kkm_last_timestamp [10:35:52]File name is /storage/kkm_last_timestamp [10:35:52]Write 4 bytes [10:35:52]NVStorageSaveData done [10:35:52]ExternCall_PrintAddStr [10:35:52]wPrintStart [10:35:52]Write to MH i2c: 01 00 00 25 70 95 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 07 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 07 00 25 70 00 80 00 00 00 FF 0F 2A [10:35:52]RasterBufferAndPrint [10:35:52]line Счет N : (1)196354 [10:35:52]line ИНН: 02508201610067 [10:35:52]line Контрольно-Кассовый Чек [10:35:52]line ПРОДАЖА [10:35:52]line ТРК (МРК, ГНК) : 42 [10:35:52]line Товар: 2710124130 [10:35:52]line Аи-92-К-5 [10:35:52]line 7.950 * 62.90 [10:35:52]line = 500.06 [10:35:52]line НДС 12% НСП 1% [10:35:52]line > о реализуемом товаре [10:35:52]line ИТОГО: 500.06 [10:35:52]line НСП 1% : 4.42 [10:35:52]line НДС 12% : 53.10 [10:35:52]line Наличными: 0.00 [10:35:52]line Безнал.: 500.06 [10:35:52]line Место: АЗС № 6 "Партнер Нефть" [10:35:52]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:35:52]line СНО: Общий режим [10:35:52]line Чек 64 13.03.2024 10:36 [10:35:52]line Смена: 328 ФФД: 1.0 [10:35:52]line ЗНМ: 0300000009 [10:35:52]line РНМ: 0000000000090555 [10:35:52]line Версия ККМ: 001 [10:35:52]line Платежная система: Бакай Банк [10:35:52]line ФМ: 0000000000874811 [10:35:52]line ФД: 95369 [10:35:52]line ФПД: 123951267044766 [10:35:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T103600&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95369&fm=123951267044766&tin=02508201610067®Number=0000000000090555&sum=50006 [10:35:52]OFD Sender: Processing packet 95369 [packets to send 30, broken 29] [10:35:52]ProducePacketName [10:35:52]name=ofd_packets/00095369 [10:35:52]OFD Sender: To server: pG, [10:35:52]CommunicateWithHost lk.salyk.kg:30040 [10:35:52]ConnectInit lk.salyk.kg [10:35:52]written 0, free lines is 4095 [10:35:52]Write to MH i2c: 01 00 00 4F 70 BF [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 07 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: 01 07 00 4F 70 00 80 00 00 00 5F 0D B2 [10:35:52]RasterBufferAndPrint [10:35:52]line [10:35:52]line [10:35:52]line [10:35:52]line [10:35:52]line [10:35:52]written 0, free lines is 3429 [10:35:52]process_action close_receipt done [10:35:52]requested_data is exist [10:35:52]produce_requested_data [10:35:52]requested_item fm.sn is exist - process it [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 11 00 00 [10:35:52]Write to MH i2c: E2 08 00 56 70 80 11 00 00 00 00 00 00 40 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 17 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 17 00 56 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 90 [10:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:35:53]wFMCommunicate OK [10:35:53]requested_item fd.num is exist - process it [10:35:53]SAM_PROTO_GetFieldsCounters [10:35:53]wFMCommunicate request_size=4 [10:35:53]MH_SAM_APDU [10:35:53]CAPDU: 80 13 00 00 [10:35:53]Write to MH i2c: E2 08 00 57 70 80 13 00 00 00 00 00 00 43 [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 62 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 62 00 57 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 89 74 01 00 0E 04 04 00 48 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 67 [10:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 89 74 01 00 0E 04 04 00 48 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 [10:35:53]wFMCommunicate OK [10:35:53]SAM_PROTO_GetFieldsCounters done [10:35:53]requested_item shift.num is exist - process it [10:35:53]requested_item shift.opened is exist - process it [10:35:53]req_shift_opened [10:35:53]FM_GetShiftState [10:35:53]SAM_PROTO_GetShiftState [10:35:53]wFMCommunicate request_size=4 [10:35:53]MH_SAM_APDU [10:35:53]CAPDU: 80 13 01 00 [10:35:53]Write to MH i2c: E2 08 00 58 70 80 13 01 00 00 00 00 00 45 [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 0E 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 0E 00 58 70 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2A [10:35:53]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:35:53]wFMCommunicate OK [10:35:53]SAM_PROTO_GetShiftState done [10:35:53]FM_GetShiftState done [10:35:53]req_shift_opened done [10:35:53]requested_item shift.open_date is exist - process it [10:35:53]req_shift_open_date [10:35:53]req_shift_open_date done [10:35:53]produce_requested_data done [10:35:53]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95369,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:35:53]process_action_free close_receipt [10:35:53]json_value_free [10:35:53]json_value_free done [10:35:53]process_json_proto returns [10:35:53]Send response to host [10:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95369,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:35:53]free response buf [10:35:53]execute_script done [10:35:53]execute_script returns [10:35:53]free content buf [10:35:53]Sock 9.Close socket [10:35:53]Sock 9.Thread stoped [10:35:53]Connected sock=10 [10:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7C 15 07 01 51 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 90 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 74 01 00 35 04 06 00 70 BB A7 3D DD 9E 12 AC 23 EE F3 F2 19 5F [10:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F7 34 47 00 5D 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 89 74 01 00 F4 03 04 00 E4 2C F1 65 B6 04 01 00 00 AB 8F C5 E9 B5 1B 8C 87 [10:35:53]CommunicateWithHost err = 0 [10:35:53]CheckOFDResponse [10:35:53]1017 (14) - 77093643461234 [10:35:53]1041 (16) - 0000000000874811 [10:35:53]1040 (4) - 95369 [10:35:53]1012 (4) - 13.03.2024 04:34 [10:35:53]1206 (1) - 0 [10:35:53]OFD Sender: Remove packet 95369 [10:35:53]ProducePacketName [10:35:53]name=ofd_packets/00095369 [10:35:53]NVStorageDeleteData [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]accept exits with 8 [10:37:24]New connection [10:37:24]New thread 3066813796 created [10:37:24]Thread 3066957156 joined [10:37:24]Waiting for new connection... [10:37:24] Sock 8.Parse request [10:37:24]Sock 8.Check first char [10:37:24]Sock 8.First char is OK [10:37:24]request: POST /json_proto HTTP/1.0 [10:37:24]Method: POST [10:37:24]URL: /json_proto [10:37:24]Method is POST - this is cgi request [10:37:24]url: /json_proto [10:37:24]query_string will be loaded in cgi processing [10:37:24]execute_cgi json_proto POST (null) [10:37:24]execute_cgi path=json_proto method=POST [10:37:24]POST find Content-Length [10:37:24]Host: 172.17.62.67:8080 [10:37:24]Content-Length: 682 [10:37:24]Content-Type: application/json [10:37:24] [10:37:24]POST finish read [10:37:24]Found Content-Length = 682 [10:37:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196355", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:24]execute_script... [10:37:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196355", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:24]POST & json_proto [10:37:24]process_json_proto [10:37:24]json parsed OK: [10:37:24]protocol is kg_v1.0 [10:37:24]action value=close_receipt [10:37:24]process_action close_receipt [10:37:24]cmd_close_receipt [10:37:24]MH_GetDate [10:37:24]Write to MH i2c: F0 00 00 59 70 B8 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: F0 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: F0 05 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: F0 05 00 59 70 00 EE 81 F1 65 82 [10:37:24]GetLastDocTimeStamp 1710326160 [10:37:24]current date 1710326254 [10:37:24]FM_GetShiftState [10:37:24]SAM_PROTO_GetShiftState [10:37:24]wFMCommunicate request_size=4 [10:37:24]MH_SAM_APDU [10:37:24]CAPDU: 80 13 01 00 [10:37:24]Write to MH i2c: E2 08 00 5A 70 80 13 01 00 00 00 00 00 47 [10:37:24]Write i2c OK [10:37:24]MH_I2C_Read... [10:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:24]OFD Sender: No OFD packet to send [10:37:24]Read from MH i2c: E2 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 0E 00 [10:37:24]MH_I2C_Read... [10:37:24]Read from MH i2c: E2 0E 00 5A 70 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2C [10:37:24]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:37:24]wFMCommunicate OK [10:37:24]SAM_PROTO_GetShiftState done [10:37:24]FM_GetShiftState done [10:37:24]opened in 1710288279 [10:37:24]opened+sec_in_day 1710374679 [10:37:24]quantity*price = 100011 [10:37:24]sum+1 = 100012 [10:37:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 65 13.03.2024 10:37 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95370 ФПД: 123609464575167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T103734&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95370&fm=123609464575167&tin=02508201610067®Number=0000000000090555&sum=100000 [10:37:25]StoreToDocumentArchive [10:37:25]shift 328 fd 95370 [10:37:25]save to /storage/0328/doc_00095370 [10:37:25]save last doc name /storage/0328/doc_00095370 to /storage/kkm_last_doc_name [10:37:25]save OK [10:37:25]Clear old archive folders... [10:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:25]tlvbuf is 01C777F0 [10:37:25]SAM_PROTO_ClearQueue [10:37:25]wFMCommunicate request_size=4 [10:37:25]MH_SAM_APDU [10:37:25]CAPDU: 80 09 00 00 [10:37:25]Write to MH i2c: E2 08 00 67 70 80 09 00 00 00 00 00 00 49 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 [10:37:25]MH_I2C_Read... [10:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:25]Read from MH i2c: E2 03 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 03 00 67 70 00 90 00 4B [10:37:25]RAPDU: 90 00 [10:37:25]wFMCommunicate OK [10:37:25]SAM_PROTO_ClearQueue done [10:37:25]KKMCreateOFDPacket [10:37:25]OFDProtocolAddRootSTLVToBuf [10:37:25]FM_MakeSignedData [10:37:25]FM_MakeSignedData [10:37:25]SAM_PROTO_SignData [10:37:25]wFMCommunicate request_size=4 [10:37:25]MH_SAM_APDU [10:37:25]CAPDU: 80 0D 01 02 [10:37:25]Write to MH i2c: E2 08 00 68 70 80 0D 01 02 00 00 00 00 51 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:25]Read from MH i2c: E2 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 03 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 03 00 68 70 00 90 00 4C [10:37:25]RAPDU: 90 00 [10:37:25]wFMCommunicate OK [10:37:25]wFMCommunicate request_size=255 [10:37:25]MH_SAM_APDU [10:37:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EE 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 74 01 00 35 04 06 00 70 [10:37:25]Write to MH i2c: E2 02 01 69 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EE 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 74 01 00 35 04 06 00 70 00 00 B7 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:25]Read from MH i2c: E2 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 03 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 03 00 69 70 00 90 00 4D [10:37:25]RAPDU: 90 00 [10:37:25]wFMCommunicate OK [10:37:25]wFMCommunicate request_size=10 [10:37:25]MH_SAM_APDU [10:37:25]CAPDU: 80 0D 02 02 05 6C 12 3A 14 BF [10:37:25]Write to MH i2c: E2 0D 00 6A 70 80 0D 02 02 05 00 6C 12 3A 14 BF 00 00 E9 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:25]Read from MH i2c: E2 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 03 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 03 00 6A 70 00 90 00 4E [10:37:25]RAPDU: 90 00 [10:37:25]wFMCommunicate OK [10:37:25]wFMCommunicate request_size=4 [10:37:25]MH_SAM_APDU [10:37:25]CAPDU: 80 0D 03 02 [10:37:25]Write to MH i2c: E2 08 00 6B 70 80 0D 03 02 00 00 00 00 56 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:25]Read from MH i2c: E2 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 0B 00 [10:37:25]MH_I2C_Read... [10:37:25]Read from MH i2c: E2 0B 00 6B 70 00 56 6C 29 60 46 12 84 75 90 00 F3 [10:37:25]RAPDU: 56 6C 29 60 46 12 84 75 90 00 [10:37:25]wFMCommunicate OK [10:37:25]SAM_PROTO_SignData done [10:37:25]FM_MakeSignedData done [10:37:25]CreateOFDProtocolMessage [10:37:25]wFMCommunicate request_size=4 [10:37:25]MH_SAM_APDU [10:37:25]CAPDU: 80 11 00 00 [10:37:25]Write to MH i2c: E2 08 00 6C 70 80 11 00 00 00 00 00 00 56 [10:37:25]Write i2c OK [10:37:25]MH_I2C_Read... [10:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 17 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 17 00 6C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A6 [10:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:37:26]wFMCommunicate OK [10:37:26]CreateOFDProtocolMessage done [10:37:26]OFDSenderStorePacket 95370 [10:37:26]StoreOFDPacket docnum=95370 [10:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1D 11 07 01 60 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EE 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 74 01 00 35 04 06 00 70 6C 12 3A 14 BF 56 6C 29 60 46 12 84 75 [10:37:26]CheckFolder [10:37:26]dirname=/storage/ofd_packets [10:37:26]CheckFolder done [10:37:26]ProducePacketName [10:37:26]name=ofd_packets/00095370 [10:37:26]NVStorageSaveData ofd_packets/00095370 [10:37:26]File name is /storage/ofd_packets/00095370 [10:37:26]Write 301 bytes [10:37:26]NVStorageSaveData done [10:37:26]OFDSenderStorePacket done [10:37:26]KKMCreateOFDPacket done [10:37:26]NVStorageSaveData kkm_last_timestamp [10:37:26]File name is /storage/kkm_last_timestamp [10:37:26]Write 4 bytes [10:37:26]NVStorageSaveData done [10:37:26]ExternCall_PrintAddStr [10:37:26]wPrintStart [10:37:26]Write to MH i2c: 01 00 00 6D 70 DD [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: 01 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: 01 07 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: 01 07 00 6D 70 00 80 00 00 00 FF 0F 72 [10:37:26]RasterBufferAndPrint [10:37:26]line Счет N : (1)196355 [10:37:26]line ИНН: 02508201610067 [10:37:26]line Контрольно-Кассовый Чек [10:37:26]line ПРОДАЖА [10:37:26]line ТРК (МРК, ГНК) : 12 [10:37:26]line Товар: 2710124130 [10:37:26]line Аи-92-К-5 [10:37:26]line 15.900 * 62.90 [10:37:26]line = 1000.11 [10:37:26]line НДС 12% НСП 1% [10:37:26]line > о реализуемом товаре [10:37:26]line ОКРУГЛЕНИЕ: -0.11 [10:37:26]line ИТОГО: 1000.00 [10:37:26]line Внесено: 1000.00 [10:37:26]line СДАЧА: 0.00 [10:37:26]line НСП 1% : 8.85 [10:37:26]line НДС 12% : 106.21 [10:37:26]line Наличными: 1000.00 [10:37:26]line Безнал.: 0.00 [10:37:26]line Место: АЗС № 6 "Партнер Нефть" [10:37:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:37:26]line СНО: Общий режим [10:37:26]line Чек 65 13.03.2024 10:37 [10:37:26]line Смена: 328 ФФД: 1.0 [10:37:26]line ЗНМ: 0300000009 [10:37:26]line РНМ: 0000000000090555 [10:37:26]line Версия ККМ: 001 [10:37:26]line ФМ: 0000000000874811 [10:37:26]line ФД: 95370 [10:37:26]line ФПД: 123609464575167 [10:37:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T103734&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95370&fm=123609464575167&tin=02508201610067®Number=0000000000090555&sum=100000 [10:37:26]written 0, free lines is 4095 [10:37:26]OFD Sender: Processing packet 95370 [packets to send 30, broken 29] [10:37:26]ProducePacketName [10:37:26]name=ofd_packets/00095370 [10:37:26]OFD Sender: To server: pG, [10:37:26]CommunicateWithHost lk.salyk.kg:30040 [10:37:26]ConnectInit lk.salyk.kg [10:37:26]Connected sock=10 [10:37:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1D 11 07 01 60 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 EE 81 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 74 01 00 35 04 06 00 70 6C 12 3A 14 BF 56 6C 29 60 46 12 84 75 [10:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A1 A4 47 00 97 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8A 74 01 00 F4 03 04 00 41 2D F1 65 B6 04 01 00 00 26 91 47 1A 7E 8F 0B CE [10:37:26]CommunicateWithHost err = 0 [10:37:26]CheckOFDResponse [10:37:26]1017 (14) - 77093643461234 [10:37:26]1041 (16) - 0000000000874811 [10:37:26]1040 (4) - 95370 [10:37:26]1012 (4) - 13.03.2024 04:36 [10:37:26]1206 (1) - 0 [10:37:26]OFD Sender: Remove packet 95370 [10:37:26]ProducePacketName [10:37:26]name=ofd_packets/00095370 [10:37:26]NVStorageDeleteData [10:37:26]Write to MH i2c: 01 00 00 98 70 08 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: 01 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: 01 07 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: 01 07 00 98 70 00 80 00 00 00 4F 0D EB [10:37:26]RasterBufferAndPrint [10:37:26]line [10:37:26]line [10:37:26]line [10:37:26]line [10:37:26]line [10:37:26]written 0, free lines is 3414 [10:37:26]process_action close_receipt done [10:37:26]requested_data is exist [10:37:26]produce_requested_data [10:37:26]requested_item fm.sn is exist - process it [10:37:26]wFMCommunicate request_size=4 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 11 00 00 [10:37:26]Write to MH i2c: E2 08 00 9F 70 80 11 00 00 00 00 00 00 89 [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:26]Read from MH i2c: E2 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 17 00 [10:37:26]MH_I2C_Read... [10:37:26]Read from MH i2c: E2 17 00 9F 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D9 [10:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:37:26]wFMCommunicate OK [10:37:26]requested_item fd.num is exist - process it [10:37:26]SAM_PROTO_GetFieldsCounters [10:37:26]wFMCommunicate request_size=4 [10:37:26]MH_SAM_APDU [10:37:26]CAPDU: 80 13 00 00 [10:37:26]Write to MH i2c: E2 08 00 A0 70 80 13 00 00 00 00 00 00 8C [10:37:26]Write i2c OK [10:37:26]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 62 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 62 00 A0 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8A 74 01 00 0E 04 04 00 48 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 B4 [10:37:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8A 74 01 00 0E 04 04 00 48 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 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_GetFieldsCounters done [10:37:27]requested_item shift.num is exist - process it [10:37:27]requested_item shift.opened is exist - process it [10:37:27]req_shift_opened [10:37:27]FM_GetShiftState [10:37:27]SAM_PROTO_GetShiftState [10:37:27]wFMCommunicate request_size=4 [10:37:27]MH_SAM_APDU [10:37:27]CAPDU: 80 13 01 00 [10:37:27]Write to MH i2c: E2 08 00 A1 70 80 13 01 00 00 00 00 00 8E [10:37:27]Write i2c OK [10:37:27]MH_I2C_Read... [10:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:27]Read from MH i2c: E2 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0E 00 [10:37:27]MH_I2C_Read... [10:37:27]Read from MH i2c: E2 0E 00 A1 70 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 73 [10:37:27]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:37:27]wFMCommunicate OK [10:37:27]SAM_PROTO_GetShiftState done [10:37:27]FM_GetShiftState done [10:37:27]req_shift_opened done [10:37:27]requested_item shift.open_date is exist - process it [10:37:27]req_shift_open_date [10:37:27]req_shift_open_date done [10:37:27]produce_requested_data done [10:37:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95370,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:37:27]process_action_free close_receipt [10:37:27]json_value_free [10:37:27]json_value_free done [10:37:27]process_json_proto returns [10:37:27]Send response to host [10:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95370,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:37:27]free response buf [10:37:27]execute_script done [10:37:27]execute_script returns [10:37:27]free content buf [10:37:27]Sock 8.Close socket [10:37:27]Sock 8.Thread stoped [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:22]accept exits with 9 [10:39:22]New connection [10:39:22]New thread 3066957156 created [10:39:22]Thread 3066813796 joined [10:39:22]Waiting for new connection... [10:39:22] Sock 9.Parse request [10:39:22]Sock 9.Check first char [10:39:22]Sock 9.First char is OK [10:39:22]request: POST /json_proto HTTP/1.0 [10:39:22]Method: POST [10:39:22]URL: /json_proto [10:39:22]Method is POST - this is cgi request [10:39:22]url: /json_proto [10:39:22]query_string will be loaded in cgi processing [10:39:22]execute_cgi json_proto POST (null) [10:39:22]execute_cgi path=json_proto method=POST [10:39:22]POST find Content-Length [10:39:22]Host: 172.17.62.67:8080 [10:39:22]Content-Length: 682 [10:39:22]Content-Type: application/json [10:39:22] [10:39:22]POST finish read [10:39:22]Found Content-Length = 682 [10:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196356", "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" : 62.90, "quantity" : 23.850, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:22]execute_script... [10: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 : (1)196356", "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" : 62.90, "quantity" : 23.850, "sum" : 1500.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:22]POST & json_proto [10:39:22]process_json_proto [10:39:22]json parsed OK: [10:39:22]protocol is kg_v1.0 [10:39:22]action value=close_receipt [10:39:22]process_action close_receipt [10:39:22]cmd_close_receipt [10:39:22]MH_GetDate [10:39:22]Write to MH i2c: F0 00 00 A2 70 01 [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 05 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 05 00 A2 70 00 65 82 F1 65 43 [10:39:22]GetLastDocTimeStamp 1710326254 [10:39:22]current date 1710326373 [10:39:22]FM_GetShiftState [10:39:22]SAM_PROTO_GetShiftState [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 13 01 00 [10:39:22]Write to MH i2c: E2 08 00 A3 70 80 13 01 00 00 00 00 00 90 [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:22]Read from MH i2c: E2 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 0E 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 0E 00 A3 70 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 75 [10:39:22]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:39:22]wFMCommunicate OK [10:39:22]SAM_PROTO_GetShiftState done [10:39:22]FM_GetShiftState done [10:39:22]opened in 1710288279 [10:39:22]opened+sec_in_day 1710374679 [10:39:22]quantity*price = 150016 [10:39:22]sum+1 = 150018 [10:39:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 66 13.03.2024 10:39 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95371 ФПД: 196461232158437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T103933&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95371&fm=196461232158437&tin=02508201610067®Number=0000000000090555&sum=150000 [10:39:23]StoreToDocumentArchive [10:39:23]shift 328 fd 95371 [10:39:23]save to /storage/0328/doc_00095371 [10:39:23]save last doc name /storage/0328/doc_00095371 to /storage/kkm_last_doc_name [10:39:23]save OK [10:39:23]Clear old archive folders... [10:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:23]tlvbuf is 01AF2D60 [10:39:23]SAM_PROTO_ClearQueue [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 09 00 00 [10:39:23]Write to MH i2c: E2 08 00 B0 70 80 09 00 00 00 00 00 00 92 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:23]Read from MH i2c: E2 03 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 03 00 B0 70 00 90 00 94 [10:39:23]RAPDU: 90 00 [10:39:23]wFMCommunicate OK [10:39:23]SAM_PROTO_ClearQueue done [10:39:23]KKMCreateOFDPacket [10:39:23]OFDProtocolAddRootSTLVToBuf [10:39:23]FM_MakeSignedData [10:39:23]FM_MakeSignedData [10:39:23]SAM_PROTO_SignData [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 0D 01 02 [10:39:23]Write to MH i2c: E2 08 00 B1 70 80 0D 01 02 00 00 00 00 9A [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 B1 70 00 90 00 95 [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]wFMCommunicate request_size=255 [10:39:24]MH_SAM_APDU [10:39: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 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 65 82 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 74 01 00 35 04 06 00 B2 [10:39:24]Write to MH i2c: E2 02 01 B2 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 65 82 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 74 01 00 35 04 06 00 B2 00 00 BC [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 B2 70 00 90 00 96 [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]wFMCommunicate request_size=10 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 0D 02 02 05 AE 31 F4 76 E5 [10:39:24]Write to MH i2c: E2 0D 00 B3 70 80 0D 02 02 05 00 AE 31 F4 76 E5 00 00 D5 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 B3 70 00 90 00 97 [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 0D 03 02 [10:39:24]Write to MH i2c: E2 08 00 B4 70 80 0D 03 02 00 00 00 00 9F [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0B 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0B 00 B4 70 00 C5 30 72 B3 7F A4 0C C7 90 00 B0 [10:39:24]RAPDU: C5 30 72 B3 7F A4 0C C7 90 00 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_SignData done [10:39:24]FM_MakeSignedData done [10:39:24]CreateOFDProtocolMessage [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 11 00 00 [10:39:24]Write to MH i2c: E2 08 00 B5 70 80 11 00 00 00 00 00 00 9F [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 17 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 17 00 B5 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EF [10:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:39:24]wFMCommunicate OK [10:39:24]CreateOFDProtocolMessage done [10:39:24]OFDSenderStorePacket 95371 [10:39:24]StoreOFDPacket docnum=95371 [10:39:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BA 61 07 01 CF 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 65 82 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 74 01 00 35 04 06 00 B2 AE 31 F4 76 E5 C5 30 72 B3 7F A4 0C C7 [10:39:24]CheckFolder [10:39:24]dirname=/storage/ofd_packets [10:39:24]CheckFolder done [10:39:24]ProducePacketName [10:39:24]name=ofd_packets/00095371 [10:39:24]NVStorageSaveData ofd_packets/00095371 [10:39:24]File name is /storage/ofd_packets/00095371 [10:39:24]Write 301 bytes [10:39:24]NVStorageSaveData done [10:39:24]OFDSenderStorePacket done [10:39:24]KKMCreateOFDPacket done [10:39:24]NVStorageSaveData kkm_last_timestamp [10:39:24]File name is /storage/kkm_last_timestamp [10:39:24]Write 4 bytes [10:39:24]NVStorageSaveData done [10:39:24]ExternCall_PrintAddStr [10:39:24]wPrintStart [10:39:24]Write to MH i2c: 01 00 00 B6 70 26 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 B6 70 00 80 00 00 00 FF 0F BB [10:39:24]RasterBufferAndPrint [10:39:24]line Счет N : (1)196356 [10:39:24]line ИНН: 02508201610067 [10:39:24]line Контрольно-Кассовый Чек [10:39:24]line ПРОДАЖА [10:39:24]line ТРК (МРК, ГНК) : 32 [10:39:24]line Товар: 2710124130 [10:39:24]line Аи-92-К-5 [10:39:24]line 23.850 * 62.90 [10:39:24]line = 1500.17 [10:39:24]line НДС 12% НСП 1% [10:39:24]line > о реализуемом товаре [10:39:24]line ОКРУГЛЕНИЕ: -0.17 [10:39:24]line ИТОГО: 1500.00 [10:39:24]line Внесено: 1500.00 [10:39:24]line СДАЧА: 0.00 [10:39:24]line НСП 1% : 13.28 [10:39:24]line НДС 12% : 159.31 [10:39:24]line Наличными: 1500.00 [10:39:24]line Безнал.: 0.00 [10:39:24]line Место: АЗС № 6 "Партнер Нефть" [10:39:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:39:24]line СНО: Общий режим [10:39:24]line Чек 66 13.03.2024 10:39 [10:39:24]line Смена: 328 ФФД: 1.0 [10:39:24]line ЗНМ: 0300000009 [10:39:24]line РНМ: 0000000000090555 [10:39:24]line Версия ККМ: 001 [10:39:24]line ФМ: 0000000000874811 [10:39:24]line ФД: 95371 [10:39:24]line ФПД: 196461232158437 [10:39:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T103933&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95371&fm=196461232158437&tin=02508201610067®Number=0000000000090555&sum=150000 [10:39:24]written 0, free lines is 4095 [10:39:24]OFD Sender: Processing packet 95371 [packets to send 30, broken 29] [10:39:24]ProducePacketName [10:39:24]name=ofd_packets/00095371 [10:39:24]OFD Sender: To server: pG, [10:39:24]CommunicateWithHost lk.salyk.kg:30040 [10:39:24]ConnectInit lk.salyk.kg [10:39:24]Connected sock=10 [10:39:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 BA 61 07 01 CF 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 5D 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 01 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 65 82 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 74 01 00 35 04 06 00 B2 AE 31 F4 76 E5 C5 30 72 B3 7F A4 0C C7 [10:39:25]Write to MH i2c: 01 00 00 E1 70 51 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 07 00 [10:39:25]MH_I2C_Read... [10:39:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3F 09 47 00 1C 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8B 74 01 00 F4 03 04 00 B8 2D F1 65 B6 04 01 00 00 33 58 10 3F 60 EB 9A 09 [10:39:25]CommunicateWithHost err = 0 [10:39:25]CheckOFDResponse [10:39:25]1017 (14) - 77093643461234 [10:39:25]1041 (16) - 0000000000874811 [10:39:25]1040 (4) - 95371 [10:39:25]1012 (4) - 13.03.2024 04:38 [10:39:25]1206 (1) - 0 [10:39:25]OFD Sender: Remove packet 95371 [10:39:25]ProducePacketName [10:39:25]name=ofd_packets/00095371 [10:39:25]NVStorageDeleteData [10:39:25]Read from MH i2c: 01 07 00 E1 70 00 80 00 00 00 4E 0D 33 [10:39:25]RasterBufferAndPrint [10:39:25]line [10:39:25]line [10:39:25]line [10:39:25]line [10:39:25]line [10:39:25]written 0, free lines is 3456 [10:39:25]process_action close_receipt done [10:39:25]requested_data is exist [10:39:25]produce_requested_data [10:39:25]requested_item fm.sn is exist - process it [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 11 00 00 [10:39:25]Write to MH i2c: E2 08 00 E8 70 80 11 00 00 00 00 00 00 D2 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 17 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 17 00 E8 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 22 [10:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:39:25]wFMCommunicate OK [10:39:25]requested_item fd.num is exist - process it [10:39:25]SAM_PROTO_GetFieldsCounters [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 13 00 00 [10:39:25]Write to MH i2c: E2 08 00 E9 70 80 13 00 00 00 00 00 00 D5 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 62 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 62 00 E9 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8B 74 01 00 0E 04 04 00 48 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 01 [10:39:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8B 74 01 00 0E 04 04 00 48 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 [10:39:25]wFMCommunicate OK [10:39:25]SAM_PROTO_GetFieldsCounters done [10:39:25]requested_item shift.num is exist - process it [10:39:25]requested_item shift.opened is exist - process it [10:39:25]req_shift_opened [10:39:25]FM_GetShiftState [10:39:25]SAM_PROTO_GetShiftState [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 13 01 00 [10:39:25]Write to MH i2c: E2 08 00 EA 70 80 13 01 00 00 00 00 00 D7 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 0E 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 0E 00 EA 70 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BC [10:39:25]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:39:25]wFMCommunicate OK [10:39:25]SAM_PROTO_GetShiftState done [10:39:25]FM_GetShiftState done [10:39:25]req_shift_opened done [10:39:25]requested_item shift.open_date is exist - process it [10:39:25]req_shift_open_date [10:39:25]req_shift_open_date done [10:39:25]produce_requested_data done [10:39:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95371,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:39:25]process_action_free close_receipt [10:39:25]json_value_free [10:39:25]json_value_free done [10:39:25]process_json_proto returns [10:39:25]Send response to host [10:39:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95371,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:39:25]free response buf [10:39:25]execute_script done [10:39:25]execute_script returns [10:39:25]free content buf [10:39:25]Sock 9.Close socket [10:39:25]Sock 9.Thread stoped [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:31]accept exits with 8 [10:41:31]New connection [10:41:31]New thread 3066813796 created [10:41:31] Sock 8.Parse request [10:41:31]Sock 8.Check first char [10:41:31]Thread 3066957156 joined [10:41:31]Sock 8.First char is OK [10:41:31]Waiting for new connection... [10:41:31]request: POST /json_proto HTTP/1.0 [10:41:31]Method: POST [10:41:31]URL: /json_proto [10:41:31]Method is POST - this is cgi request [10:41:31]url: /json_proto [10:41:31]query_string will be loaded in cgi processing [10:41:31]execute_cgi json_proto POST (null) [10:41:31]execute_cgi path=json_proto method=POST [10:41:31]POST find Content-Length [10:41:31]Host: 172.17.62.67:8080 [10:41:31]Content-Length: 1194 [10:41:31]Content-Type: application/json [10:41:31] [10:41:31]POST finish read [10:41:31]Found Content-Length = 1194 [10:41:31]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196357\u000A13.03.2024 10:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 3545.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\u000A3776794;95;11\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:31]execute_script... [10:41:31]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196357\u000A13.03.2024 10:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 3545.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\u000A3776794;95;11\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:31]POST & json_proto [10:41:31]process_json_proto [10:41:31]json parsed OK: [10:41:31]protocol is kg_v1.0 [10:41:31]action value=print_text [10:41:31]process_action print_text [10:41:31]cmd_print_text [10:41:31]ExternCall_PrintAddStr [10:41:31]wPrintStart [10:41:31]Write to MH i2c: 01 00 00 EB 70 5B [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 07 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 07 00 EB 70 00 80 00 00 00 FF 0F F0 [10:41:31]RasterBufferAndPrint [10:41:31]line *****ТОВАРНЫЙ ЧЕК***** [10:41:31]line АЗС 6 [10:41:31]line Партнер нефть [10:41:31]line 02508201610067 [10:41:31]line Кассир : Сабырбек у. М. [10:41:31]line Счет N : (1)196357 [10:41:31]line 13.03.2024 10:35 [10:41:31]line ПРОДАЖА [10:41:31]line ТРК (МРК, ГНК): 61 [10:41:31]line Вид ГСМ : 2710194210 [10:41:31]line ДТ-К-5 [10:41:31]line 50.000 x 70.90 [10:41:31]line ИТОГ: 3545.00 [10:41:31]line Тип оплаты: Талоны: Партнер нефть [10:41:31]line 3776794;95;11 [10:41:31]line ______________________ [10:41:31]line (подпись) [10:41:31]written 0, free lines is 4095 [10:41:31]Write to MH i2c: 01 00 00 FF 70 6F [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 07 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 07 00 FF 70 00 80 00 00 00 6B 0E 6F [10:41:31]RasterBufferAndPrint [10:41:31]line [10:41:31]line [10:41:31]line [10:41:31]line [10:41:31]line [10:41:31]written 0, free lines is 3695 [10:41:31]process_action print_text done [10:41:31]requested_data is exist [10:41:31]produce_requested_data [10:41:31]requested_item fm.sn is exist - process it [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 11 00 00 [10:41:31]Write to MH i2c: E2 08 00 06 71 80 11 00 00 00 00 00 00 F1 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 17 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 17 00 06 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 41 [10:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:41:31]wFMCommunicate OK [10:41:31]requested_item fd.num is exist - process it [10:41:31]SAM_PROTO_GetFieldsCounters [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 13 00 00 [10:41:31]Write to MH i2c: E2 08 00 07 71 80 13 00 00 00 00 00 00 F4 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 62 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 62 00 07 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8B 74 01 00 0E 04 04 00 48 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 20 [10:41:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8B 74 01 00 0E 04 04 00 48 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 [10:41:32]wFMCommunicate OK [10:41:32]SAM_PROTO_GetFieldsCounters done [10:41:32]requested_item shift.num is exist - process it [10:41:32]requested_item shift.opened is exist - process it [10:41:32]req_shift_opened [10:41:32]FM_GetShiftState [10:41:32]SAM_PROTO_GetShiftState [10:41:32]wFMCommunicate request_size=4 [10:41:32]MH_SAM_APDU [10:41:32]CAPDU: 80 13 01 00 [10:41:32]Write to MH i2c: E2 08 00 08 71 80 13 01 00 00 00 00 00 F6 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:32]Read from MH i2c: E2 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 0E 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: E2 0E 00 08 71 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 DB [10:41:32]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:41:32]wFMCommunicate OK [10:41:32]SAM_PROTO_GetShiftState done [10:41:32]FM_GetShiftState done [10:41:32]req_shift_opened done [10:41:32]requested_item shift.open_date is exist - process it [10:41:32]req_shift_open_date [10:41:32]req_shift_open_date done [10:41:32]produce_requested_data done [10:41:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95371,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:41:32]process_action_free print_text [10:41:32]json_value_free [10:41:32]json_value_free done [10:41:32]process_json_proto returns [10:41:32]Send response to host [10:41:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95371,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:41:32]free response buf [10:41:32]execute_script done [10:41:32]execute_script returns [10:41:32]free content buf [10:41:32]Sock 8.Close socket [10:41:32]Sock 8.Thread stoped [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:49]accept exits with 9 [10:41:49]New connection [10:41:49]New thread 3066957156 created [10:41:49]Thread 3066813796 joined [10:41:49]Waiting for new connection... [10:41:49] Sock 9.Parse request [10:41:49]Sock 9.Check first char [10:41:49]Sock 9.First char is OK [10:41:49]request: POST /json_proto HTTP/1.0 [10:41:49]Method: POST [10:41:49]URL: /json_proto [10:41:49]Method is POST - this is cgi request [10:41:49]url: /json_proto [10:41:49]query_string will be loaded in cgi processing [10:41:49]execute_cgi json_proto POST (null) [10:41:49]execute_cgi path=json_proto method=POST [10:41:49]POST find Content-Length [10:41:49]Host: 172.17.62.67:8080 [10:41:49]Content-Length: 674 [10:41:49]Content-Type: application/json [10:41:49] [10:41:49]POST finish read [10:41:49]Found Content-Length = 674 [10:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196358", "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" : 70.90, "quantity" : 6.420, "sum" : 455.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 455.00, "total" : 455.00, "payments": [ { "type": 0, "sum" : 455.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:49]execute_script... [10:41:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196358", "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" : 70.90, "quantity" : 6.420, "sum" : 455.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 455.00, "total" : 455.00, "payments": [ { "type": 0, "sum" : 455.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:49]POST & json_proto [10:41:49]process_json_proto [10:41:49]json parsed OK: [10:41:49]protocol is kg_v1.0 [10:41:49]action value=close_receipt [10:41:49]process_action close_receipt [10:41:49]cmd_close_receipt [10:41:49]MH_GetDate [10:41:49]Write to MH i2c: F0 00 00 09 71 69 [10:41:49]Write i2c OK [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: F0 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: F0 05 00 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: F0 05 00 09 71 00 F8 82 F1 65 3E [10:41:49]GetLastDocTimeStamp 1710326373 [10:41:49]current date 1710326520 [10:41:49]FM_GetShiftState [10:41:49]SAM_PROTO_GetShiftState [10:41:49]wFMCommunicate request_size=4 [10:41:49]MH_SAM_APDU [10:41:49]CAPDU: 80 13 01 00 [10:41:49]Write to MH i2c: E2 08 00 0A 71 80 13 01 00 00 00 00 00 F8 [10:41:49]Write i2c OK [10:41:49]MH_I2C_Read... [10:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:49]Read from MH i2c: E2 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: E2 0E 00 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: E2 0E 00 0A 71 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 DD [10:41:49]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:41:49]wFMCommunicate OK [10:41:49]SAM_PROTO_GetShiftState done [10:41:49]FM_GetShiftState done [10:41:49]opened in 1710288279 [10:41:49]opened+sec_in_day 1710374679 [10:41:49]quantity*price = 45517 [10:41:49]sum+1 = 45519 [10:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 455.00 Внесено: 455.00 СДАЧА: 0.00 НСП 1% : 4.03 НДС 12% : 48.34 Наличными: 455.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 67 13.03.2024 10:42 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95372 ФПД: 110113115873663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T104200&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95372&fm=110113115873663&tin=02508201610067®Number=0000000000090555&sum=45500 [10:41:51]StoreToDocumentArchive [10:41:51]shift 328 fd 95372 [10:41:51]save to /storage/0328/doc_00095372 [10:41:51]save last doc name /storage/0328/doc_00095372 to /storage/kkm_last_doc_name [10:41:51]save OK [10:41:51]Clear old archive folders... [10:41:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:41:51]tlvbuf is 01A288E0 [10:41:51]SAM_PROTO_ClearQueue [10:41:51]wFMCommunicate request_size=4 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 09 00 00 [10:41:51]Write to MH i2c: E2 08 00 17 71 80 09 00 00 00 00 00 00 FA [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:51]Read from MH i2c: E2 03 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 03 00 17 71 00 90 00 FC [10:41:51]RAPDU: 90 00 [10:41:51]wFMCommunicate OK [10:41:51]SAM_PROTO_ClearQueue done [10:41:51]KKMCreateOFDPacket [10:41:51]OFDProtocolAddRootSTLVToBuf [10:41:51]FM_MakeSignedData [10:41:51]FM_MakeSignedData [10:41:51]SAM_PROTO_SignData [10:41:51]wFMCommunicate request_size=4 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 0D 01 02 [10:41:51]Write to MH i2c: E2 08 00 18 71 80 0D 01 02 00 00 00 00 02 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 03 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 03 00 18 71 00 90 00 FD [10:41:51]RAPDU: 90 00 [10:41:51]wFMCommunicate OK [10:41:51]wFMCommunicate request_size=255 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 CE B1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 12 00 00 00 00 07 04 06 00 BC B1 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 F8 82 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 74 01 00 35 04 06 00 64 25 B5 28 [10:41:51]Write to MH i2c: E2 02 01 19 71 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 14 19 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 CE B1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 12 00 00 00 00 07 04 06 00 BC B1 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 F8 82 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 74 01 00 35 04 06 00 64 25 B5 28 00 00 F9 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 03 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 03 00 19 71 00 90 00 FE [10:41:51]RAPDU: 90 00 [10:41:51]wFMCommunicate OK [10:41:51]wFMCommunicate request_size=7 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 0D 02 02 02 21 7F [10:41:51]Write to MH i2c: E2 0A 00 1A 71 80 0D 02 02 02 00 21 7F 00 00 A9 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 03 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 03 00 1A 71 00 90 00 FF [10:41:51]RAPDU: 90 00 [10:41:51]wFMCommunicate OK [10:41:51]wFMCommunicate request_size=4 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 0D 03 02 [10:41:51]Write to MH i2c: E2 08 00 1B 71 80 0D 03 02 00 00 00 00 07 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 0B 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 0B 00 1B 71 00 16 C3 E8 24 BD 6A 33 E1 90 00 28 [10:41:51]RAPDU: 16 C3 E8 24 BD 6A 33 E1 90 00 [10:41:51]wFMCommunicate OK [10:41:51]SAM_PROTO_SignData done [10:41:51]FM_MakeSignedData done [10:41:51]CreateOFDProtocolMessage [10:41:51]wFMCommunicate request_size=4 [10:41:51]MH_SAM_APDU [10:41:51]CAPDU: 80 11 00 00 [10:41:51]Write to MH i2c: E2 08 00 1C 71 80 11 00 00 00 00 00 00 07 [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:51]Read from MH i2c: E2 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 17 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: E2 17 00 1C 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [10:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:41:51]wFMCommunicate OK [10:41:51]CreateOFDProtocolMessage done [10:41:51]OFDSenderStorePacket 95372 [10:41:51]StoreOFDPacket docnum=95372 [10:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 E3 FD 04 01 5A 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 CE B1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 12 00 00 00 00 07 04 06 00 BC B1 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 F8 82 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 74 01 00 35 04 06 00 64 25 B5 28 21 7F 16 C3 E8 24 BD 6A 33 E1 [10:41:51]CheckFolder [10:41:51]dirname=/storage/ofd_packets [10:41:51]CheckFolder done [10:41:51]ProducePacketName [10:41:51]name=ofd_packets/00095372 [10:41:51]NVStorageSaveData ofd_packets/00095372 [10:41:51]File name is /storage/ofd_packets/00095372 [10:41:51]Write 298 bytes [10:41:51]NVStorageSaveData done [10:41:51]OFDSenderStorePacket done [10:41:51]KKMCreateOFDPacket done [10:41:51]NVStorageSaveData kkm_last_timestamp [10:41:51]File name is /storage/kkm_last_timestamp [10:41:51]Write 4 bytes [10:41:51]NVStorageSaveData done [10:41:51]ExternCall_PrintAddStr [10:41:51]wPrintStart [10:41:51]Write to MH i2c: 01 00 00 1D 71 8E [10:41:51]Write i2c OK [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: 01 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: 01 07 00 [10:41:51]MH_I2C_Read... [10:41:51]Read from MH i2c: 01 07 00 1D 71 00 80 00 00 00 FF 0F 23 [10:41:51]RasterBufferAndPrint [10:41:51]line Счет N : (1)196358 [10:41:51]line ИНН: 02508201610067 [10:41:51]line Контрольно-Кассовый Чек [10:41:51]line ПРОДАЖА [10:41:51]line ТРК (МРК, ГНК) : 61 [10:41:51]line Товар: 2710194210 [10:41:51]line ДТ-К-5 [10:41:51]line 6.420 * 70.90 [10:41:51]line = 455.18 [10:41:51]line НДС 12% НСП 1% [10:41:51]line > о реализуемом товаре [10:41:51]line ОКРУГЛЕНИЕ: -0.18 [10:41:51]line ИТОГО: 455.00 [10:41:51]line Внесено: 455.00 [10:41:51]line СДАЧА: 0.00 [10:41:51]line НСП 1% : 4.03 [10:41:51]line НДС 12% : 48.34 [10:41:51]line Наличными: 455.00 [10:41:51]line Безнал.: 0.00 [10:41:51]line Место: АЗС № 6 "Партнер Нефть" [10:41:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:41:51]line СНО: Общий режим [10:41:51]line Чек 67 13.03.2024 10:42 [10:41:51]line Смена: 328 ФФД: 1.0 [10:41:51]line ЗНМ: 0300000009 [10:41:51]line РНМ: 0000000000090555 [10:41:51]line Версия ККМ: 001 [10:41:51]line ФМ: 0000000000874811 [10:41:51]line ФД: 95372 [10:41:51]line ФПД: 110113115873663 [10:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T104200&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95372&fm=110113115873663&tin=02508201610067®Number=0000000000090555&sum=45500 [10:41:51]OFD Sender: Processing packet 95372 [packets to send 30, broken 29] [10:41:51]ProducePacketName [10:41:51]name=ofd_packets/00095372 [10:41:51]OFD Sender: To server: pG, [10:41:51]CommunicateWithHost lk.salyk.kg:30040 [10:41:51]ConnectInit lk.salyk.kg [10:41:51]written 0, free lines is 4095 [10:41:52]Connected sock=10 [10:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 E3 FD 04 01 5A 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 19 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 CE B1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 12 00 00 00 00 07 04 06 00 BC B1 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 F8 82 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 74 01 00 35 04 06 00 64 25 B5 28 21 7F 16 C3 E8 24 BD 6A 33 E1 [10:41:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1E 60 47 00 09 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8C 74 01 00 F4 03 04 00 4B 2E F1 65 B6 04 01 00 00 BE 5F 06 FB 39 DB 06 66 [10:41:52]CommunicateWithHost err = 0 [10:41:52]CheckOFDResponse [10:41:52]1017 (14) - 77093643461234 [10:41:52]1041 (16) - 0000000000874811 [10:41:52]1040 (4) - 95372 [10:41:52]1012 (4) - 13.03.2024 04:40 [10:41:52]1206 (1) - 0 [10:41:52]OFD Sender: Remove packet 95372 [10:41:52]ProducePacketName [10:41:52]name=ofd_packets/00095372 [10:41:52]NVStorageDeleteData [10:41:52]Write to MH i2c: 01 00 00 48 71 B9 [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: 01 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: 01 07 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: 01 07 00 48 71 00 80 00 00 00 49 0D 96 [10:41:52]RasterBufferAndPrint [10:41:52]line [10:41:52]line [10:41:52]line [10:41:52]line [10:41:52]line [10:41:52]written 0, free lines is 3407 [10:41:52]process_action close_receipt done [10:41:52]requested_data is exist [10:41:52]produce_requested_data [10:41:52]requested_item fm.sn is exist - process it [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 11 00 00 [10:41:52]Write to MH i2c: E2 08 00 4F 71 80 11 00 00 00 00 00 00 3A [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 17 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 17 00 4F 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8A [10:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:41:52]wFMCommunicate OK [10:41:52]requested_item fd.num is exist - process it [10:41:52]SAM_PROTO_GetFieldsCounters [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 13 00 00 [10:41:52]Write to MH i2c: E2 08 00 50 71 80 13 00 00 00 00 00 00 3D [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 62 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 62 00 50 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8C 74 01 00 0E 04 04 00 48 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 6D [10:41:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8C 74 01 00 0E 04 04 00 48 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 [10:41:52]wFMCommunicate OK [10:41:52]SAM_PROTO_GetFieldsCounters done [10:41:52]requested_item shift.num is exist - process it [10:41:52]requested_item shift.opened is exist - process it [10:41:52]req_shift_opened [10:41:52]FM_GetShiftState [10:41:52]SAM_PROTO_GetShiftState [10:41:52]wFMCommunicate request_size=4 [10:41:52]MH_SAM_APDU [10:41:52]CAPDU: 80 13 01 00 [10:41:52]Write to MH i2c: E2 08 00 51 71 80 13 01 00 00 00 00 00 3F [10:41:52]Write i2c OK [10:41:52]MH_I2C_Read... [10:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:52]Read from MH i2c: E2 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 0E 00 [10:41:52]MH_I2C_Read... [10:41:52]Read from MH i2c: E2 0E 00 51 71 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 24 [10:41:52]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:41:52]wFMCommunicate OK [10:41:52]SAM_PROTO_GetShiftState done [10:41:52]FM_GetShiftState done [10:41:52]req_shift_opened done [10:41:52]requested_item shift.open_date is exist - process it [10:41:52]req_shift_open_date [10:41:52]req_shift_open_date done [10:41:52]produce_requested_data done [10:41:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95372,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:41:52]process_action_free close_receipt [10:41:52]json_value_free [10:41:52]json_value_free done [10:41:52]process_json_proto returns [10:41:52]Send response to host [10:41:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95372,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:41:52]free response buf [10:41:52]execute_script done [10:41:52]execute_script returns [10:41:52]free content buf [10:41:52]Sock 9.Close socket [10:41:52]Sock 9.Thread stoped [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:38]accept exits with 8 [10:44:38]New connection [10:44:38]New thread 3066813796 created [10:44:38]Thread 3066957156 joined [10:44:38]Waiting for new connection... [10:44:38] Sock 8.Parse request [10:44:38]Sock 8.Check first char [10:44:38]Sock 8.First char is OK [10:44:38]request: POST /json_proto HTTP/1.0 [10:44:38]Method: POST [10:44:38]URL: /json_proto [10:44:38]Method is POST - this is cgi request [10:44:38]url: /json_proto [10:44:38]query_string will be loaded in cgi processing [10:44:38]execute_cgi json_proto POST (null) [10:44:38]execute_cgi path=json_proto method=POST [10:44:38]POST find Content-Length [10:44:38]Host: 172.17.62.67:8080 [10:44:38]Content-Length: 817 [10:44:38]Content-Type: application/json [10:44:38] [10:44:38]POST finish read [10:44:38]Found Content-Length = 817 [10:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196359", "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" : 62.90, "quantity" : 10.000, "sum" : 629.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" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:38]execute_script... [10:44:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196359", "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" : 62.90, "quantity" : 10.000, "sum" : 629.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" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:38]POST & json_proto [10:44:38]process_json_proto [10:44:38]json parsed OK: [10:44:38]protocol is kg_v1.0 [10:44:38]action value=close_receipt [10:44:38]process_action close_receipt [10:44:38]cmd_close_receipt [10:44:38]MH_GetDate [10:44:38]Write to MH i2c: F0 00 00 52 71 B2 [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: F0 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: F0 05 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: F0 05 00 52 71 00 A0 83 F1 65 30 [10:44:38]GetLastDocTimeStamp 1710326520 [10:44:38]current date 1710326688 [10:44:38]FM_GetShiftState [10:44:38]SAM_PROTO_GetShiftState [10:44:38]wFMCommunicate request_size=4 [10:44:38]MH_SAM_APDU [10:44:38]CAPDU: 80 13 01 00 [10:44:38]Write to MH i2c: E2 08 00 53 71 80 13 01 00 00 00 00 00 41 [10:44:38]Write i2c OK [10:44:38]MH_I2C_Read... [10:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:38]Read from MH i2c: E2 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 0E 00 [10:44:38]MH_I2C_Read... [10:44:38]Read from MH i2c: E2 0E 00 53 71 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 26 [10:44:38]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:44:38]wFMCommunicate OK [10:44:38]SAM_PROTO_GetShiftState done [10:44:38]FM_GetShiftState done [10:44:38]opened in 1710288279 [10:44:38]opened+sec_in_day 1710374679 [10:44:38]quantity*price = 62900 [10:44:38]sum+1 = 62901 [10:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 68 13.03.2024 10:44 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95373 ФПД: 253598461640981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T104448&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95373&fm=253598461640981&tin=02508201610067®Number=0000000000090555&sum=62900 [10:44:39]StoreToDocumentArchive [10:44:39]shift 328 fd 95373 [10:44:39]save to /storage/0328/doc_00095373 [10:44:39]save last doc name /storage/0328/doc_00095373 to /storage/kkm_last_doc_name [10:44:39]save OK [10:44:39]Clear old archive folders... [10:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:39]tlvbuf is 01C08ED0 [10:44:39]SAM_PROTO_ClearQueue [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 09 00 00 [10:44:39]Write to MH i2c: E2 08 00 60 71 80 09 00 00 00 00 00 00 43 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 60 71 00 90 00 45 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_ClearQueue done [10:44:39]KKMCreateOFDPacket [10:44:39]OFDProtocolAddRootSTLVToBuf [10:44:39]FM_MakeSignedData [10:44:39]FM_MakeSignedData [10:44:39]SAM_PROTO_SignData [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 01 02 [10:44:39]Write to MH i2c: E2 08 00 61 71 80 0D 01 02 00 00 00 00 4B [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 61 71 00 90 00 46 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=255 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A0 83 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 74 01 00 35 04 06 00 E6 [10:44:39]Write to MH i2c: E2 02 01 62 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A0 83 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 74 01 00 35 04 06 00 E6 00 00 7C [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 62 71 00 90 00 47 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=10 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 02 02 05 A5 7E 38 C1 15 [10:44:39]Write to MH i2c: E2 0D 00 63 71 80 0D 02 02 05 00 A5 7E 38 C1 15 00 00 89 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 03 00 63 71 00 90 00 48 [10:44:39]RAPDU: 90 00 [10:44:39]wFMCommunicate OK [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 0D 03 02 [10:44:39]Write to MH i2c: E2 08 00 64 71 80 0D 03 02 00 00 00 00 50 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0B 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 0B 00 64 71 00 3C 14 9F 5C 57 C5 8D BA 90 00 FF [10:44:39]RAPDU: 3C 14 9F 5C 57 C5 8D BA 90 00 [10:44:39]wFMCommunicate OK [10:44:39]SAM_PROTO_SignData done [10:44:39]FM_MakeSignedData done [10:44:39]CreateOFDProtocolMessage [10:44:39]wFMCommunicate request_size=4 [10:44:39]MH_SAM_APDU [10:44:39]CAPDU: 80 11 00 00 [10:44:39]Write to MH i2c: E2 08 00 65 71 80 11 00 00 00 00 00 00 50 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:39]Read from MH i2c: E2 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 17 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: E2 17 00 65 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [10:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:44:39]wFMCommunicate OK [10:44:39]CreateOFDProtocolMessage done [10:44:39]OFDSenderStorePacket 95373 [10:44:39]StoreOFDPacket docnum=95373 [10:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 81 03 07 01 E3 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A0 83 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 74 01 00 35 04 06 00 E6 A5 7E 38 C1 15 3C 14 9F 5C 57 C5 8D BA [10:44:39]CheckFolder [10:44:39]dirname=/storage/ofd_packets [10:44:39]CheckFolder done [10:44:39]ProducePacketName [10:44:39]name=ofd_packets/00095373 [10:44:39]NVStorageSaveData ofd_packets/00095373 [10:44:39]File name is /storage/ofd_packets/00095373 [10:44:39]Write 301 bytes [10:44:39]NVStorageSaveData done [10:44:39]OFDSenderStorePacket done [10:44:39]KKMCreateOFDPacket done [10:44:39]NVStorageSaveData kkm_last_timestamp [10:44:39]File name is /storage/kkm_last_timestamp [10:44:39]Write 4 bytes [10:44:39]NVStorageSaveData done [10:44:39]ExternCall_PrintAddStr [10:44:39]wPrintStart [10:44:39]Write to MH i2c: 01 00 00 66 71 D7 [10:44:39]Write i2c OK [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 07 00 [10:44:39]MH_I2C_Read... [10:44:39]Read from MH i2c: 01 07 00 66 71 00 80 00 00 00 FF 0F 6C [10:44:39]RasterBufferAndPrint [10:44:39]line Счет N : (1)196359 [10:44:39]line ИНН: 02508201610067 [10:44:39]line Контрольно-Кассовый Чек [10:44:39]line ПРОДАЖА [10:44:39]line ТРК (МРК, ГНК) : 22 [10:44:39]line Товар: 2710124130 [10:44:39]line Аи-92-К-5 [10:44:39]line 10.000 * 62.90 [10:44:39]line = 629.00 [10:44:39]line НДС 12% НСП 1% [10:44:39]line > о реализуемом товаре [10:44:39]line ИТОГО: 629.00 [10:44:39]line НСП 1% : 5.57 [10:44:39]line НДС 12% : 66.80 [10:44:39]line Наличными: 0.00 [10:44:39]line Безнал.: 629.00 [10:44:39]line Место: АЗС № 6 "Партнер Нефть" [10:44:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:44:39]line СНО: Общий режим [10:44:39]line Чек 68 13.03.2024 10:44 [10:44:39]line Смена: 328 ФФД: 1.0 [10:44:39]line ЗНМ: 0300000009 [10:44:39]line РНМ: 0000000000090555 [10:44:39]line Версия ККМ: 001 [10:44:39]line Платежная система: Бакай Банк [10:44:39]line ФМ: 0000000000874811 [10:44:39]line ФД: 95373 [10:44:39]line ФПД: 253598461640981 [10:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T104448&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95373&fm=253598461640981&tin=02508201610067®Number=0000000000090555&sum=62900 [10:44:40]OFD Sender: Processing packet 95373 [packets to send 30, broken 29] [10:44:40]ProducePacketName [10:44:40]name=ofd_packets/00095373 [10:44:40]OFD Sender: To server: pG, [10:44:40]CommunicateWithHost lk.salyk.kg:30040 [10:44:40]ConnectInit lk.salyk.kg [10:44:40]written 0, free lines is 4095 [10:44:40]Connected sock=10 [10:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 81 03 07 01 E3 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A0 83 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 74 01 00 35 04 06 00 E6 A5 7E 38 C1 15 3C 14 9F 5C 57 C5 8D BA [10:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 67 B6 47 00 04 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8D 74 01 00 F4 03 04 00 F3 2E F1 65 B6 04 01 00 00 6C 62 81 3A 81 C8 A3 AE [10:44:40]CommunicateWithHost err = 0 [10:44:40]CheckOFDResponse [10:44:40]1017 (14) - 77093643461234 [10:44:40]1041 (16) - 0000000000874811 [10:44:40]1040 (4) - 95373 [10:44:40]1012 (4) - 13.03.2024 04:43 [10:44:40]1206 (1) - 0 [10:44:40]OFD Sender: Remove packet 95373 [10:44:40]ProducePacketName [10:44:40]name=ofd_packets/00095373 [10:44:40]NVStorageDeleteData [10:44:40]Write to MH i2c: 01 00 00 90 71 01 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: 01 07 00 90 71 00 80 00 00 00 60 0D F5 [10:44:40]RasterBufferAndPrint [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]line [10:44:40]written 0, free lines is 3432 [10:44:40]process_action close_receipt done [10:44:40]requested_data is exist [10:44:40]produce_requested_data [10:44:40]requested_item fm.sn is exist - process it [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 11 00 00 [10:44:40]Write to MH i2c: E2 08 00 97 71 80 11 00 00 00 00 00 00 82 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 17 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 17 00 97 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D2 [10:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:44:40]wFMCommunicate OK [10:44:40]requested_item fd.num is exist - process it [10:44:40]SAM_PROTO_GetFieldsCounters [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 13 00 00 [10:44:40]Write to MH i2c: E2 08 00 98 71 80 13 00 00 00 00 00 00 85 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 62 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 62 00 98 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8D 74 01 00 0E 04 04 00 48 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 B9 [10:44:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8D 74 01 00 0E 04 04 00 48 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 [10:44:40]wFMCommunicate OK [10:44:40]SAM_PROTO_GetFieldsCounters done [10:44:40]requested_item shift.num is exist - process it [10:44:40]requested_item shift.opened is exist - process it [10:44:40]req_shift_opened [10:44:40]FM_GetShiftState [10:44:40]SAM_PROTO_GetShiftState [10:44:40]wFMCommunicate request_size=4 [10:44:40]MH_SAM_APDU [10:44:40]CAPDU: 80 13 01 00 [10:44:40]Write to MH i2c: E2 08 00 99 71 80 13 01 00 00 00 00 00 87 [10:44:40]Write i2c OK [10:44:40]MH_I2C_Read... [10:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:40]OFD Sender: No OFD packet to send [10:44:40]Read from MH i2c: E2 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 0E 00 [10:44:40]MH_I2C_Read... [10:44:40]Read from MH i2c: E2 0E 00 99 71 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 6C [10:44:40]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:44:40]wFMCommunicate OK [10:44:40]SAM_PROTO_GetShiftState done [10:44:40]FM_GetShiftState done [10:44:40]req_shift_opened done [10:44:40]requested_item shift.open_date is exist - process it [10:44:40]req_shift_open_date [10:44:40]req_shift_open_date done [10:44:40]produce_requested_data done [10:44:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95373,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:44:40]process_action_free close_receipt [10:44:40]json_value_free [10:44:40]json_value_free done [10:44:40]process_json_proto returns [10:44:40]Send response to host [10:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95373,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:44:40]free response buf [10:44:40]execute_script done [10:44:40]execute_script returns [10:44:40]free content buf [10:44:40]Sock 8.Close socket [10:44:40]Sock 8.Thread stoped [10:44:45]OFD Sender: No OFD packet to send [10:44:47]int [10:44:47]Write to MH i2c: 01 00 00 9A 71 0B [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 07 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 07 00 9A 71 00 81 00 00 00 FF 0F A1 [10:44:47]state=0 [10:44:47]No paper [10:44:47]int [10:44:47]Write to MH i2c: 01 00 00 9B 71 0C [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 07 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: 01 07 00 9B 71 00 83 00 00 00 FF 0F A4 [10:44:47]state=0 [10:44:47]No paper [10:44:47]Cover opened [10:44:50]OFD Sender: No OFD packet to send [10:44:52]Write to MH i2c: 01 00 00 9C 71 0D [10:44:52]Write i2c OK [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 07 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: 01 07 00 9C 71 00 83 00 00 00 FF 0F A5 [10:44:52]state=3 [10:44:52]No paper [10:44:52]Cover opened [10:44:55]OFD Sender: No OFD packet to send [10:44:57]Write to MH i2c: 01 00 00 9D 71 0E [10:44:57]Write i2c OK [10:44:57]MH_I2C_Read... [10:44:57]Read from MH i2c: 01 [10:44:57]MH_I2C_Read... [10:44:57]Read from MH i2c: 01 07 00 [10:44:57]MH_I2C_Read... [10:44:57]Read from MH i2c: 01 07 00 9D 71 00 83 00 00 00 FF 0F A6 [10:44:57]state=3 [10:44:57]No paper [10:44:57]Cover opened [10:45:00]OFD Sender: No OFD packet to send [10:45:02]Write to MH i2c: 01 00 00 9E 71 0F [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 07 00 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: 01 07 00 9E 71 00 83 00 00 00 FF 0F A7 [10:45:02]state=3 [10:45:02]No paper [10:45:02]Cover opened [10:45:05]OFD Sender: No OFD packet to send [10:45:07]Write to MH i2c: 01 00 00 9F 71 10 [10:45:07]Write i2c OK [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: 01 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: 01 07 00 [10:45:07]MH_I2C_Read... [10:45:07]Read from MH i2c: 01 07 00 9F 71 00 83 00 00 00 FF 0F A8 [10:45:07]state=3 [10:45:07]No paper [10:45:07]Cover opened [10:45:10]OFD Sender: No OFD packet to send [10:45:12]Write to MH i2c: 01 00 00 A0 71 11 [10:45:12]Write i2c OK [10:45:12]MH_I2C_Read... [10:45:12]Read from MH i2c: 01 [10:45:12]MH_I2C_Read... [10:45:12]Read from MH i2c: 01 07 00 [10:45:12]MH_I2C_Read... [10:45:12]Read from MH i2c: 01 07 00 A0 71 00 83 00 00 00 FF 0F A9 [10:45:12]state=3 [10:45:12]No paper [10:45:12]Cover opened [10:45:15]OFD Sender: No OFD packet to send [10:45:17]Write to MH i2c: 01 00 00 A1 71 12 [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: 01 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: 01 07 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: 01 07 00 A1 71 00 83 00 00 00 FF 0F AA [10:45:17]state=3 [10:45:17]No paper [10:45:17]Cover opened [10:45:20]int [10:45:20]Write to MH i2c: 01 00 00 A2 71 13 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 A2 71 00 81 00 00 00 FF 0F A9 [10:45:20]state=3 [10:45:20]No paper [10:45:20]Cover closed [10:45:20]int [10:45:20]Write to MH i2c: 01 00 00 A3 71 14 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 A3 71 00 80 00 00 00 FF 0F A9 [10:45:20]state=0 [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]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:43]accept exits with 9 [10:50:43]New connection [10:50:43]New thread 3066957156 created [10:50:43]Thread 3066813796 joined [10:50:43]Waiting for new connection... [10:50:43] Sock 9.Parse request [10:50:43]Sock 9.Check first char [10:50:43]Sock 9.First char is OK [10:50:43]request: POST /json_proto HTTP/1.0 [10:50:43]Method: POST [10:50:43]URL: /json_proto [10:50:43]Method is POST - this is cgi request [10:50:43]url: /json_proto [10:50:43]query_string will be loaded in cgi processing [10:50:43]execute_cgi json_proto POST (null) [10:50:43]execute_cgi path=json_proto method=POST [10:50:43]POST find Content-Length [10:50:43]Host: 172.17.62.67:8080 [10:50:43]Content-Length: 660 [10:50:43]Content-Type: application/json [10:50:43] [10:50:43]POST finish read [10:50:43]Found Content-Length = 660 [10:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196360", "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" : 70.90, "quantity" : 20.000, "sum" : 1418.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1418.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:43]execute_script... [10:50:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196360", "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" : 70.90, "quantity" : 20.000, "sum" : 1418.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1418.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:43]POST & json_proto [10:50:43]process_json_proto [10:50:43]json parsed OK: [10:50:43]protocol is kg_v1.0 [10:50:43]action value=close_receipt [10:50:43]process_action close_receipt [10:50:43]cmd_close_receipt [10:50:43]MH_GetDate [10:50:43]Write to MH i2c: F0 00 00 A4 71 04 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: F0 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: F0 05 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: F0 05 00 A4 71 00 0E 85 F1 65 F2 [10:50:43]GetLastDocTimeStamp 1710326688 [10:50:43]current date 1710327054 [10:50:43]FM_GetShiftState [10:50:43]SAM_PROTO_GetShiftState [10:50:43]wFMCommunicate request_size=4 [10:50:43]MH_SAM_APDU [10:50:43]CAPDU: 80 13 01 00 [10:50:43]Write to MH i2c: E2 08 00 A5 71 80 13 01 00 00 00 00 00 93 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:43]Read from MH i2c: E2 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 0E 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 0E 00 A5 71 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 78 [10:50:43]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:50:43]wFMCommunicate OK [10:50:43]SAM_PROTO_GetShiftState done [10:50:43]FM_GetShiftState done [10:50:43]opened in 1710288279 [10:50:43]opened+sec_in_day 1710374679 [10:50:43]quantity*price = 141800 [10:50:43]sum+1 = 141801 [10:50:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1418.00 Внесено: 2000.00 СДАЧА: 582.00 НСП 1% : 12.55 НДС 12% : 150.58 Наличными: 1418.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 69 13.03.2024 10:50 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95374 ФПД: 217191497549710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105054&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95374&fm=217191497549710&tin=02508201610067®Number=0000000000090555&sum=141800 [10:50:44]StoreToDocumentArchive [10:50:44]shift 328 fd 95374 [10:50:44]save to /storage/0328/doc_00095374 [10:50:44]save last doc name /storage/0328/doc_00095374 to /storage/kkm_last_doc_name [10:50:44]save OK [10:50:44]Clear old archive folders... [10:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:44]tlvbuf is 01AB1910 [10:50:44]SAM_PROTO_ClearQueue [10:50:44]wFMCommunicate request_size=4 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 09 00 00 [10:50:44]Write to MH i2c: E2 08 00 B2 71 80 09 00 00 00 00 00 00 95 [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:44]Read from MH i2c: E2 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 B2 71 00 90 00 97 [10:50:44]RAPDU: 90 00 [10:50:44]wFMCommunicate OK [10:50:44]SAM_PROTO_ClearQueue done [10:50:44]KKMCreateOFDPacket [10:50:44]OFDProtocolAddRootSTLVToBuf [10:50:44]FM_MakeSignedData [10:50:44]FM_MakeSignedData [10:50:44]SAM_PROTO_SignData [10:50:44]wFMCommunicate request_size=4 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 0D 01 02 [10:50:44]Write to MH i2c: E2 08 00 B3 71 80 0D 01 02 00 00 00 00 9D [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:44]Read from MH i2c: E2 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 [10:50:44]MH_I2C_Read... [10:50:44]Read from MH i2c: E2 03 00 B3 71 00 90 00 98 [10:50:44]RAPDU: 90 00 [10:50:44]wFMCommunicate OK [10:50:44]wFMCommunicate request_size=255 [10:50:44]MH_SAM_APDU [10:50:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 0E 85 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 74 01 00 35 04 06 00 C5 88 D6 0F [10:50:44]Write to MH i2c: E2 02 01 B4 71 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 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 0E 85 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 74 01 00 35 04 06 00 C5 88 D6 0F 00 00 0D [10:50:44]Write i2c OK [10:50:44]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 B4 71 00 90 00 99 [10:50:45]RAPDU: 90 00 [10:50:45]wFMCommunicate OK [10:50:45]wFMCommunicate request_size=7 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 0D 02 02 02 47 8E [10:50:45]Write to MH i2c: E2 0A 00 B5 71 80 0D 02 02 02 00 47 8E 00 00 79 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 03 00 B5 71 00 90 00 9A [10:50:45]RAPDU: 90 00 [10:50:45]wFMCommunicate OK [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 0D 03 02 [10:50:45]Write to MH i2c: E2 08 00 B6 71 80 0D 03 02 00 00 00 00 A2 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0B 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 0B 00 B6 71 00 30 5A 5F FD 15 C3 FC 09 90 00 66 [10:50:45]RAPDU: 30 5A 5F FD 15 C3 FC 09 90 00 [10:50:45]wFMCommunicate OK [10:50:45]SAM_PROTO_SignData done [10:50:45]FM_MakeSignedData done [10:50:45]CreateOFDProtocolMessage [10:50:45]wFMCommunicate request_size=4 [10:50:45]MH_SAM_APDU [10:50:45]CAPDU: 80 11 00 00 [10:50:45]Write to MH i2c: E2 08 00 B7 71 80 11 00 00 00 00 00 00 A2 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:45]Read from MH i2c: E2 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 17 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: E2 17 00 B7 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F2 [10:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:50:45]wFMCommunicate OK [10:50:45]CreateOFDProtocolMessage done [10:50:45]OFDSenderStorePacket 95374 [10:50:45]StoreOFDPacket docnum=95374 [10:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 4C 2C 04 01 36 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 0E 85 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 74 01 00 35 04 06 00 C5 88 D6 0F 47 8E 30 5A 5F FD 15 C3 FC 09 [10:50:45]CheckFolder [10:50:45]dirname=/storage/ofd_packets [10:50:45]CheckFolder done [10:50:45]ProducePacketName [10:50:45]name=ofd_packets/00095374 [10:50:45]NVStorageSaveData ofd_packets/00095374 [10:50:45]File name is /storage/ofd_packets/00095374 [10:50:45]Write 298 bytes [10:50:45]NVStorageSaveData done [10:50:45]OFDSenderStorePacket done [10:50:45]KKMCreateOFDPacket done [10:50:45]NVStorageSaveData kkm_last_timestamp [10:50:45]File name is /storage/kkm_last_timestamp [10:50:45]Write 4 bytes [10:50:45]NVStorageSaveData done [10:50:45]ExternCall_PrintAddStr [10:50:45]wPrintStart [10:50:45]Write to MH i2c: 01 00 00 B8 71 29 [10:50:45]Write i2c OK [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 [10:50:45]MH_I2C_Read... [10:50:45]Read from MH i2c: 01 07 00 B8 71 00 80 00 00 00 FF 0F BE [10:50:45]RasterBufferAndPrint [10:50:45]line Счет N : (1)196360 [10:50:45]line ИНН: 02508201610067 [10:50:45]line Контрольно-Кассовый Чек [10:50:45]line ПРОДАЖА [10:50:45]line ТРК (МРК, ГНК) : 51 [10:50:45]line Товар: 2710194210 [10:50:45]line ДТ-К-5 [10:50:45]line 20.000 * 70.90 [10:50:45]line = 1418.00 [10:50:45]line НДС 12% НСП 1% [10:50:45]line > о реализуемом товаре [10:50:45]line ИТОГО: 1418.00 [10:50:45]line Внесено: 2000.00 [10:50:45]line СДАЧА: 582.00 [10:50:45]line НСП 1% : 12.55 [10:50:45]line НДС 12% : 150.58 [10:50:45]line Наличными: 1418.00 [10:50:45]line Безнал.: 0.00 [10:50:45]line Место: АЗС № 6 "Партнер Нефть" [10:50:45]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:50:45]line СНО: Общий режим [10:50:45]line Чек 69 13.03.2024 10:50 [10:50:45]line Смена: 328 ФФД: 1.0 [10:50:45]line ЗНМ: 0300000009 [10:50:45]line РНМ: 0000000000090555 [10:50:45]line Версия ККМ: 001 [10:50:45]line ФМ: 0000000000874811 [10:50:45]line ФД: 95374 [10:50:45]line ФПД: 217191497549710 [10:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105054&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95374&fm=217191497549710&tin=02508201610067®Number=0000000000090555&sum=141800 [10:50:45]OFD Sender: Processing packet 95374 [packets to send 30, broken 29] [10:50:45]ProducePacketName [10:50:45]name=ofd_packets/00095374 [10:50:45]OFD Sender: To server: pG, [10:50:45]CommunicateWithHost lk.salyk.kg:30040 [10:50:45]ConnectInit lk.salyk.kg [10:50:45]written 0, free lines is 4095 [10:50:45]Connected sock=10 [10:50:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 4C 2C 04 01 36 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 0E 85 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 74 01 00 35 04 06 00 C5 88 D6 0F 47 8E 30 5A 5F FD 15 C3 FC 09 [10:50:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F0 D1 47 00 F7 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8E 74 01 00 F4 03 04 00 61 30 F1 65 B6 04 01 00 00 E3 70 4C 5D 59 BA FA 7A [10:50:45]CommunicateWithHost err = 0 [10:50:45]CheckOFDResponse [10:50:45]1017 (14) - 77093643461234 [10:50:45]1041 (16) - 0000000000874811 [10:50:45]1040 (4) - 95374 [10:50:45]1012 (4) - 13.03.2024 04:49 [10:50:45]1206 (1) - 0 [10:50:45]OFD Sender: Remove packet 95374 [10:50:45]ProducePacketName [10:50:45]name=ofd_packets/00095374 [10:50:45]NVStorageDeleteData [10:50:46]Write to MH i2c: 01 00 00 E2 71 53 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 07 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 07 00 E2 71 00 80 00 00 00 5B 0D 42 [10:50:46]RasterBufferAndPrint [10:50:46]line [10:50:46]line [10:50:46]line [10:50:46]line [10:50:46]line [10:50:46]written 0, free lines is 3424 [10:50:46]process_action close_receipt done [10:50:46]requested_data is exist [10:50:46]produce_requested_data [10:50:46]requested_item fm.sn is exist - process it [10:50:46]wFMCommunicate request_size=4 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 11 00 00 [10:50:46]Write to MH i2c: E2 08 00 E9 71 80 11 00 00 00 00 00 00 D4 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 17 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 17 00 E9 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [10:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:50:46]wFMCommunicate OK [10:50:46]requested_item fd.num is exist - process it [10:50:46]SAM_PROTO_GetFieldsCounters [10:50:46]wFMCommunicate request_size=4 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 13 00 00 [10:50:46]Write to MH i2c: E2 08 00 EA 71 80 13 00 00 00 00 00 00 D7 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 62 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 62 00 EA 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8E 74 01 00 0E 04 04 00 48 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 0F [10:50:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8E 74 01 00 0E 04 04 00 48 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 [10:50:46]wFMCommunicate OK [10:50:46]SAM_PROTO_GetFieldsCounters done [10:50:46]requested_item shift.num is exist - process it [10:50:46]requested_item shift.opened is exist - process it [10:50:46]req_shift_opened [10:50:46]FM_GetShiftState [10:50:46]SAM_PROTO_GetShiftState [10:50:46]wFMCommunicate request_size=4 [10:50:46]MH_SAM_APDU [10:50:46]CAPDU: 80 13 01 00 [10:50:46]Write to MH i2c: E2 08 00 EB 71 80 13 01 00 00 00 00 00 D9 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:46]Read from MH i2c: E2 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 0E 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: E2 0E 00 EB 71 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BE [10:50:46]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:50:46]wFMCommunicate OK [10:50:46]SAM_PROTO_GetShiftState done [10:50:46]FM_GetShiftState done [10:50:46]req_shift_opened done [10:50:46]requested_item shift.open_date is exist - process it [10:50:46]req_shift_open_date [10:50:46]req_shift_open_date done [10:50:46]produce_requested_data done [10:50:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95374,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:50:46]process_action_free close_receipt [10:50:46]json_value_free [10:50:46]json_value_free done [10:50:46]process_json_proto returns [10:50:46]Send response to host [10:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95374,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:50:46]free response buf [10:50:46]execute_script done [10:50:46]execute_script returns [10:50:46]free content buf [10:50:46]Sock 9.Close socket [10:50:46]Sock 9.Thread stoped [10:50:46]OFD Sender: No OFD packet to send [10:50:49]accept exits with 8 [10:50:49]New connection [10:50:49]New thread 3066813796 created [10:50:49]Thread 3066957156 joined [10:50:49]Waiting for new connection... [10:50:49] Sock 8.Parse request [10:50:49]Sock 8.Check first char [10:50:49]Sock 8.First char is OK [10:50:49]request: POST /json_proto HTTP/1.0 [10:50:49]Method: POST [10:50:49]URL: /json_proto [10:50:49]Method is POST - this is cgi request [10:50:49]url: /json_proto [10:50:49]query_string will be loaded in cgi processing [10:50:49]execute_cgi json_proto POST (null) [10:50:49]execute_cgi path=json_proto method=POST [10:50:49]POST find Content-Length [10:50:49]Host: 172.17.62.67:8080 [10:50:49]Content-Length: 716 [10:50:49]Content-Type: application/json [10:50:49] [10:50:49]POST finish read [10:50:49]Found Content-Length = 716 [10:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95374, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196360", "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" : 70.90, "quantity" : 20.000, "sum" : 1418.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1418.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:49]execute_script... [10:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95374, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196360", "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" : 70.90, "quantity" : 20.000, "sum" : 1418.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1418.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:49]POST & json_proto [10:50:49]process_json_proto [10:50:49]json parsed OK: [10:50:49]protocol is kg_v1.0 [10:50:49]action value=close_receipt [10:50:49]process_action close_receipt [10:50:49]cmd_close_receipt [10:50:49]MH_GetDate [10:50:49]Write to MH i2c: F0 00 00 EC 71 4C [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: F0 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: F0 05 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: F0 05 00 EC 71 00 13 85 F1 65 3F [10:50:49]GetLastDocTimeStamp 1710327054 [10:50:49]current date 1710327059 [10:50:49]FM_GetShiftState [10:50:49]SAM_PROTO_GetShiftState [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 13 01 00 [10:50:49]Write to MH i2c: E2 08 00 ED 71 80 13 01 00 00 00 00 00 DB [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0E 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0E 00 ED 71 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C0 [10:50:49]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:50:49]wFMCommunicate OK [10:50:49]SAM_PROTO_GetShiftState done [10:50:49]FM_GetShiftState done [10:50:49]opened in 1710288279 [10:50:49]opened+sec_in_day 1710374679 [10:50:49]quantity*price = 141800 [10:50:49]sum+1 = 141801 [10:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1418.00 НСП 1% : 12.55 НДС 12% : 150.58 Наличными: 1418.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 70 13.03.2024 10:50 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95374 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95375 ФПД: 204597307532424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105059&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95375&fm=204597307532424&tin=02508201610067®Number=0000000000090555&sum=141800 [10:50:50]StoreToDocumentArchive [10:50:50]shift 328 fd 95375 [10:50:50]save to /storage/0328/doc_00095375 [10:50:50]save last doc name /storage/0328/doc_00095375 to /storage/kkm_last_doc_name [10:50:50]save OK [10:50:50]Clear old archive folders... [10:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:50:50]tlvbuf is 01A2AC50 [10:50:50]SAM_PROTO_ClearQueue [10:50:50]wFMCommunicate request_size=4 [10:50:50]MH_SAM_APDU [10:50:50]CAPDU: 80 09 00 00 [10:50:50]Write to MH i2c: E2 08 00 FC 71 80 09 00 00 00 00 00 00 DF [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:50]Read from MH i2c: E2 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 03 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 03 00 FC 71 00 90 00 E1 [10:50:50]RAPDU: 90 00 [10:50:50]wFMCommunicate OK [10:50:50]SAM_PROTO_ClearQueue done [10:50:50]KKMCreateOFDPacket [10:50:50]OFDProtocolAddRootSTLVToBuf [10:50:50]FM_MakeSignedData [10:50:50]FM_MakeSignedData [10:50:50]SAM_PROTO_SignData [10:50:50]wFMCommunicate request_size=4 [10:50:50]MH_SAM_APDU [10:50:50]CAPDU: 80 0D 01 02 [10:50:50]Write to MH i2c: E2 08 00 FD 71 80 0D 01 02 00 00 00 00 E7 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:50]Read from MH i2c: E2 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 03 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 03 00 FD 71 00 90 00 E2 [10:50:50]RAPDU: 90 00 [10:50:50]wFMCommunicate OK [10:50:50]wFMCommunicate request_size=255 [10:50:50]MH_SAM_APDU [10:50:50]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 13 85 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 8E 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [10:50:50]Write to MH i2c: E2 02 01 FE 71 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 13 85 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 8E 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 1D [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 FE 71 00 90 00 E3 [10:50:51]RAPDU: 90 00 [10:50:51]wFMCommunicate OK [10:50:51]wFMCommunicate request_size=35 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 74 01 00 35 04 06 00 BA 14 85 D6 64 88 [10:50:51]Write to MH i2c: E2 26 00 FF 71 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 74 01 00 35 04 06 00 BA 14 85 D6 64 88 00 00 F3 [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 03 00 FF 71 00 90 00 E4 [10:50:51]RAPDU: 90 00 [10:50:51]wFMCommunicate OK [10:50:51]wFMCommunicate request_size=4 [10:50:51]MH_SAM_APDU [10:50:51]CAPDU: 80 0D 03 02 [10:50:51]Write to MH i2c: E2 08 00 00 72 80 0D 03 02 00 00 00 00 ED [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:51]Read from MH i2c: E2 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 0B 00 [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: E2 0B 00 00 72 00 ED 6B 9C 3F 30 81 E4 4F 90 00 05 [10:50:51]RAPDU: ED 6B 9C 3F 30 81 E4 4F 90 00 [10:50:51]wFMCommunicate OK [10:50:51]SAM_PROTO_SignData done [10:50:51]FM_MakeSignedData done [10:50:51]CreateOFDProtocolMessage [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 01 72 80 11 00 00 00 00 00 00 ED [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 01 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3D [10:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:50:51]wFMCommunicate OK [10:50:51]CreateOFDProtocolMessage done [10:50:51]OFDSenderStorePacket 95375 [10:50:51]StoreOFDPacket docnum=95375 [10:50:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 AC 3A 20 01 D8 ED 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 13 85 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 8E 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 74 01 00 35 04 06 00 BA 14 85 D6 64 88 ED 6B 9C 3F 30 81 E4 4F [10:50:51]CheckFolder [10:50:51]dirname=/storage/ofd_packets [10:50:51]CheckFolder done [10:50:51]ProducePacketName [10:50:51]name=ofd_packets/00095375 [10:50:51]NVStorageSaveData ofd_packets/00095375 [10:50:51]File name is /storage/ofd_packets/00095375 [10:50:51]Write 326 bytes [10:50:51]NVStorageSaveData done [10:50:51]OFDSenderStorePacket done [10:50:51]KKMCreateOFDPacket done [10:50:51]NVStorageSaveData kkm_last_timestamp [10:50:51]File name is /storage/kkm_last_timestamp [10:50:51]Write 4 bytes [10:50:51]NVStorageSaveData done [10:50:51]ExternCall_PrintAddStr [10:50:51]wPrintStart [10:50:51]Write to MH i2c: 01 00 00 02 72 74 [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: 01 [10:50:51]MH_I2C_Read... [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 02 72 00 80 00 00 00 FF 0F 09 [10:50:51]RasterBufferAndPrint [10:50:51]line Счет N : (1)196360 [10:50:51]line ИНН: 02508201610067 [10:50:51]line Контрольно-Кассовый Чек [10:50:51]line ВОЗВРАТ ПРОДАЖИ [10:50:51]line ТРК (МРК, ГНК) : 51 [10:50:51]line Товар: 2710194210 [10:50:51]line ДТ-К-5 [10:50:51]line 20.000 * 70.90 [10:50:51]line = 1418.00 [10:50:51]line НДС 12% НСП 1% [10:50:51]line > о реализуемом товаре [10:50:51]line ИТОГО: 1418.00 [10:50:51]line НСП 1% : 12.55 [10:50:51]line НДС 12% : 150.58 [10:50:51]line Наличными: 1418.00 [10:50:51]line Безнал.: 0.00 [10:50:51]line Место: АЗС № 6 "Партнер Нефть" [10:50:51]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:50:51]line СНО: Общий режим [10:50:51]line Чек 70 13.03.2024 10:50 [10:50:51]line Смена: 328 ФФД: 1.0 [10:50:51]line ЗНМ: 0300000009 [10:50:51]line РНМ: 0000000000090555 [10:50:51]line Версия ККМ: 001 [10:50:51]line ФД осн.: 95374 [10:50:51]line ФМ осн.: 0000000000874811 [10:50:51]line ФМ: 0000000000874811 [10:50:51]line ФД: 95375 [10:50:51]line ФПД: 204597307532424 [10:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105059&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95375&fm=204597307532424&tin=02508201610067®Number=0000000000090555&sum=141800 [10:50:51]written 0, free lines is 4095 [10:50:51]OFD Sender: Processing packet 95375 [packets to send 30, broken 29] [10:50:51]ProducePacketName [10:50:51]name=ofd_packets/00095375 [10:50:51]OFD Sender: To server: pG, [10:50:51]CommunicateWithHost lk.salyk.kg:30040 [10:50:51]ConnectInit lk.salyk.kg [10:50:51]Connected sock=10 [10:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 AC 3A 20 01 D8 ED 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 E8 29 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 29 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 3A 00 00 00 00 07 04 06 00 E8 29 02 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 13 85 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 8E 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 74 01 00 35 04 06 00 BA 14 85 D6 64 88 ED 6B 9C 3F 30 81 E4 4F [10:50:51]Write to MH i2c: 01 00 00 2C 72 9E [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:51]Read from MH i2c: 01 [10:50:51]MH_I2C_Read... [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 2C 72 00 80 00 00 00 67 0D 99 [10:50:51]RasterBufferAndPrint [10:50:51]line [10:50:51]line [10:50:51]line [10:50:51]line [10:50:51]line [10:50:51]written 0, free lines is 3442 [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 33 72 80 11 00 00 00 00 00 00 1F [10:50:51]Write i2c OK [10:50:51]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 17 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 17 00 33 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [10:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:50:52]wFMCommunicate OK [10:50:52]requested_item fd.num is exist - process it [10:50:52]SAM_PROTO_GetFieldsCounters [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 13 00 00 [10:50:52]Write to MH i2c: E2 08 00 34 72 80 13 00 00 00 00 00 00 22 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 EF 0B 47 00 37 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 8F 74 01 00 F4 03 04 00 67 30 F1 65 B6 04 01 00 00 EA B0 CE 08 D7 04 E5 85 [10:50:52]CommunicateWithHost err = 0 [10:50:52]CheckOFDResponse [10:50:52]1017 (14) - 77093643461234 [10:50:52]1041 (16) - 0000000000874811 [10:50:52]1040 (4) - 95375 [10:50:52]1012 (4) - 13.03.2024 04:49 [10:50:52]1206 (1) - 0 [10:50:52]OFD Sender: Remove packet 95375 [10:50:52]ProducePacketName [10:50:52]name=ofd_packets/00095375 [10:50:52]NVStorageDeleteData [10:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 62 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 62 00 34 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 74 01 00 0E 04 04 00 48 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 5E [10:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 74 01 00 0E 04 04 00 48 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 [10:50:52]wFMCommunicate OK [10:50:52]SAM_PROTO_GetFieldsCounters done [10:50:52]requested_item shift.num is exist - process it [10:50:52]requested_item shift.opened is exist - process it [10:50:52]req_shift_opened [10:50:52]FM_GetShiftState [10:50:52]SAM_PROTO_GetShiftState [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 13 01 00 [10:50:52]Write to MH i2c: E2 08 00 35 72 80 13 01 00 00 00 00 00 24 [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 0E 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 0E 00 35 72 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 09 [10:50:52]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:50:52]wFMCommunicate OK [10:50:52]SAM_PROTO_GetShiftState done [10:50:52]FM_GetShiftState done [10:50:52]req_shift_opened done [10:50:52]requested_item shift.open_date is exist - process it [10:50:52]req_shift_open_date [10:50:52]req_shift_open_date done [10:50:52]produce_requested_data done [10:50:52]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95375,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:50:52]process_action_free close_receipt [10:50:52]json_value_free [10:50:52]json_value_free done [10:50:52]process_json_proto returns [10:50:52]Send response to host [10:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95375,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:50:52]free response buf [10:50:52]execute_script done [10:50:52]execute_script returns [10:50:52]free content buf [10:50:52]Sock 8.Close socket [10:50:52]Sock 8.Thread stoped [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:14]accept exits with 9 [10:53:14]New connection [10:53:14]New thread 3066957156 created [10:53:14]Thread 3066813796 joined [10:53:14]Waiting for new connection... [10:53:14] Sock 9.Parse request [10:53:14]Sock 9.Check first char [10:53:14]Sock 9.First char is OK [10:53:14]request: POST /json_proto HTTP/1.0 [10:53:14]Method: POST [10:53:14]URL: /json_proto [10:53:14]Method is POST - this is cgi request [10:53:14]url: /json_proto [10:53:14]query_string will be loaded in cgi processing [10:53:14]execute_cgi json_proto POST (null) [10:53:14]execute_cgi path=json_proto method=POST [10:53:14]POST find Content-Length [10:53:14]Host: 172.17.62.67:8080 [10:53:14]Content-Length: 1188 [10:53:14]Content-Type: application/json [10:53:14] [10:53:14]POST finish read [10:53:14]Found Content-Length = 1188 [10:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196361\u000A13.03.2024 10:47\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3776790\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:14]execute_script... [10:53:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196361\u000A13.03.2024 10:47\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3776790\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:14]POST & json_proto [10:53:14]process_json_proto [10:53:14]json parsed OK: [10:53:14]protocol is kg_v1.0 [10:53:14]action value=print_text [10:53:14]process_action print_text [10:53:14]cmd_print_text [10:53:14]ExternCall_PrintAddStr [10:53:14]wPrintStart [10:53:14]Write to MH i2c: 01 00 00 36 72 A8 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: 01 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: 01 07 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: 01 07 00 36 72 00 80 00 00 00 FF 0F 3D [10:53:14]RasterBufferAndPrint [10:53:14]line *****ТОВАРНЫЙ ЧЕК***** [10:53:14]line АЗС 6 [10:53:14]line Партнер нефть [10:53:14]line 02508201610067 [10:53:14]line Кассир : Сабырбек у. М. [10:53:14]line Счет N : (1)196361 [10:53:14]line 13.03.2024 10:47 [10:53:14]line ПРОДАЖА [10:53:14]line ТРК (МРК, ГНК): 51 [10:53:14]line Вид ГСМ : 2710194210 [10:53:14]line ДТ-К-5 [10:53:14]line 20.000 x 70.90 [10:53:14]line ИТОГ: 1418.00 [10:53:14]line Тип оплаты: Талоны: Партнер нефть [10:53:14]line 3776790 [10:53:14]line ______________________ [10:53:14]line (подпись) [10:53:14]written 0, free lines is 4095 [10:53:14]Write to MH i2c: 01 00 00 4A 72 BC [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: 01 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: 01 07 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: 01 07 00 4A 72 00 80 00 00 00 62 0E B3 [10:53:14]RasterBufferAndPrint [10:53:14]line [10:53:14]line [10:53:14]line [10:53:14]line [10:53:14]line [10:53:14]written 0, free lines is 3686 [10:53:14]process_action print_text done [10:53:14]requested_data is exist [10:53:14]produce_requested_data [10:53:14]requested_item fm.sn is exist - process it [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 11 00 00 [10:53:14]Write to MH i2c: E2 08 00 51 72 80 11 00 00 00 00 00 00 3D [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 17 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 17 00 51 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8D [10:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:53:14]wFMCommunicate OK [10:53:14]requested_item fd.num is exist - process it [10:53:14]SAM_PROTO_GetFieldsCounters [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 13 00 00 [10:53:14]Write to MH i2c: E2 08 00 52 72 80 13 00 00 00 00 00 00 40 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 62 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 62 00 52 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 74 01 00 0E 04 04 00 48 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 7C [10:53:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 8F 74 01 00 0E 04 04 00 48 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 [10:53:14]wFMCommunicate OK [10:53:14]SAM_PROTO_GetFieldsCounters done [10:53:14]requested_item shift.num is exist - process it [10:53:14]requested_item shift.opened is exist - process it [10:53:14]req_shift_opened [10:53:14]FM_GetShiftState [10:53:14]SAM_PROTO_GetShiftState [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 13 01 00 [10:53:14]Write to MH i2c: E2 08 00 53 72 80 13 01 00 00 00 00 00 42 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 0E 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 0E 00 53 72 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 27 [10:53:14]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:53:14]wFMCommunicate OK [10:53:14]SAM_PROTO_GetShiftState done [10:53:14]FM_GetShiftState done [10:53:14]req_shift_opened done [10:53:14]requested_item shift.open_date is exist - process it [10:53:14]req_shift_open_date [10:53:14]req_shift_open_date done [10:53:14]produce_requested_data done [10:53:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95375,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:53:14]process_action_free print_text [10:53:14]json_value_free [10:53:14]json_value_free done [10:53:14]process_json_proto returns [10:53:14]Send response to host [10:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95375,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:53:14]free response buf [10:53:14]execute_script done [10:53:14]execute_script returns [10:53:14]free content buf [10:53:14]Sock 9.Close socket [10:53:14]Sock 9.Thread stoped [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:54:58]accept exits with 8 [10:54:58]New connection [10:54:58]New thread 3066813796 created [10:54:58]Thread 3066957156 joined [10:54:58]Waiting for new connection... [10:54:58] Sock 8.Parse request [10:54:58]Sock 8.Check first char [10:54:58]Sock 8.First char is OK [10:54:58]request: POST /json_proto HTTP/1.0 [10:54:58]Method: POST [10:54:58]URL: /json_proto [10:54:58]Method is POST - this is cgi request [10:54:58]url: /json_proto [10:54:58]query_string will be loaded in cgi processing [10:54:58]execute_cgi json_proto POST (null) [10:54:58]execute_cgi path=json_proto method=POST [10:54:58]POST find Content-Length [10:54:58]Host: 172.17.62.67:8080 [10:54:58]Content-Length: 637 [10:54:58]Content-Type: application/json [10:54:58] [10:54:58]POST finish read [10:54:58]Found Content-Length = 637 [10:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196363", "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" : 70.90, "quantity" : 10.000, "sum" : 709.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 709.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:58]execute_script... [10:54:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196363", "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" : 70.90, "quantity" : 10.000, "sum" : 709.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 709.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:58]POST & json_proto [10:54:58]process_json_proto [10:54:58]json parsed OK: [10:54:58]protocol is kg_v1.0 [10:54:58]action value=close_receipt [10:54:58]process_action close_receipt [10:54:58]cmd_close_receipt [10:54:58]MH_GetDate [10:54:58]Write to MH i2c: F0 00 00 54 72 B5 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: F0 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: F0 05 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: F0 05 00 54 72 00 0C 86 F1 65 A2 [10:54:58]GetLastDocTimeStamp 1710327059 [10:54:58]current date 1710327308 [10:54:58]FM_GetShiftState [10:54:58]SAM_PROTO_GetShiftState [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 13 01 00 [10:54:58]Write to MH i2c: E2 08 00 55 72 80 13 01 00 00 00 00 00 44 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0E 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0E 00 55 72 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 29 [10:54:58]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_GetShiftState done [10:54:58]FM_GetShiftState done [10:54:58]opened in 1710288279 [10:54:58]opened+sec_in_day 1710374679 [10:54:58]quantity*price = 70900 [10:54:58]sum+1 = 70901 [10:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 709.00 НСП 1% : 6.27 НДС 12% : 75.29 Наличными: 709.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 71 13.03.2024 10:55 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95376 ФПД: 225370285523287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105508&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95376&fm=225370285523287&tin=02508201610067®Number=0000000000090555&sum=70900 [10:54:59]StoreToDocumentArchive [10:54:59]shift 328 fd 95376 [10:54:59]save to /storage/0328/doc_00095376 [10:54:59]save last doc name /storage/0328/doc_00095376 to /storage/kkm_last_doc_name [10:54:59]save OK [10:54:59]Clear old archive folders... [10:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:59]tlvbuf is 01B6DCE0 [10:54:59]SAM_PROTO_ClearQueue [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 09 00 00 [10:54:59]Write to MH i2c: E2 08 00 62 72 80 09 00 00 00 00 00 00 46 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 62 72 00 90 00 48 [10:54:59]RAPDU: 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_ClearQueue done [10:54:59]KKMCreateOFDPacket [10:54:59]OFDProtocolAddRootSTLVToBuf [10:54:59]FM_MakeSignedData [10:54:59]FM_MakeSignedData [10:54:59]SAM_PROTO_SignData [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 0D 01 02 [10:54:59]Write to MH i2c: E2 08 00 63 72 80 0D 01 02 00 00 00 00 4E [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 63 72 00 90 00 49 [10:54:59]RAPDU: 90 00 [10:54:59]wFMCommunicate OK [10:54:59]wFMCommunicate request_size=255 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0C 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 74 01 00 35 04 06 00 CC F9 1B CF [10:54:59]Write to MH i2c: E2 02 01 64 72 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 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0C 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 74 01 00 35 04 06 00 CC F9 1B CF 00 00 ED [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 64 72 00 90 00 4A [10:54:59]RAPDU: 90 00 [10:54:59]wFMCommunicate OK [10:54:59]wFMCommunicate request_size=7 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 0D 02 02 02 C1 57 [10:54:59]Write to MH i2c: E2 0A 00 65 72 80 0D 02 02 02 00 C1 57 00 00 6D [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 03 00 65 72 00 90 00 4B [10:54:59]RAPDU: 90 00 [10:54:59]wFMCommunicate OK [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 0D 03 02 [10:54:59]Write to MH i2c: E2 08 00 66 72 80 0D 03 02 00 00 00 00 53 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0B 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0B 00 66 72 00 93 C0 B2 BB 79 DF CF A1 90 00 DC [10:54:59]RAPDU: 93 C0 B2 BB 79 DF CF A1 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_SignData done [10:54:59]FM_MakeSignedData done [10:54:59]CreateOFDProtocolMessage [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 11 00 00 [10:54:59]Write to MH i2c: E2 08 00 67 72 80 11 00 00 00 00 00 00 53 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 67 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A3 [10:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:55:00]wFMCommunicate OK [10:55:00]CreateOFDProtocolMessage done [10:55:00]OFDSenderStorePacket 95376 [10:55:00]StoreOFDPacket docnum=95376 [10:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 26 9D 04 01 60 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0C 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 74 01 00 35 04 06 00 CC F9 1B CF C1 57 93 C0 B2 BB 79 DF CF A1 [10:55:00]CheckFolder [10:55:00]dirname=/storage/ofd_packets [10:55:00]CheckFolder done [10:55:00]ProducePacketName [10:55:00]name=ofd_packets/00095376 [10:55:00]NVStorageSaveData ofd_packets/00095376 [10:55:00]File name is /storage/ofd_packets/00095376 [10:55:00]Write 298 bytes [10:55:00]NVStorageSaveData done [10:55:00]OFDSenderStorePacket done [10:55:00]KKMCreateOFDPacket done [10:55:00]NVStorageSaveData kkm_last_timestamp [10:55:00]File name is /storage/kkm_last_timestamp [10:55:00]Write 4 bytes [10:55:00]NVStorageSaveData done [10:55:00]ExternCall_PrintAddStr [10:55:00]wPrintStart [10:55:00]Write to MH i2c: 01 00 00 68 72 DA [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 68 72 00 80 00 00 00 FF 0F 6F [10:55:00]RasterBufferAndPrint [10:55:00]line Счет N : (1)196363 [10:55:00]line ИНН: 02508201610067 [10:55:00]line Контрольно-Кассовый Чек [10:55:00]line ПРОДАЖА [10:55:00]line ТРК (МРК, ГНК) : 61 [10:55:00]line Товар: 2710194210 [10:55:00]line ДТ-К-5 [10:55:00]line 10.000 * 70.90 [10:55:00]line = 709.00 [10:55:00]line НДС 12% НСП 1% [10:55:00]line > о реализуемом товаре [10:55:00]line ИТОГО: 709.00 [10:55:00]line НСП 1% : 6.27 [10:55:00]line НДС 12% : 75.29 [10:55:00]line Наличными: 709.00 [10:55:00]line Безнал.: 0.00 [10:55:00]line Место: АЗС № 6 "Партнер Нефть" [10:55:00]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:55:00]line СНО: Общий режим [10:55:00]line Чек 71 13.03.2024 10:55 [10:55:00]line Смена: 328 ФФД: 1.0 [10:55:00]line ЗНМ: 0300000009 [10:55:00]line РНМ: 0000000000090555 [10:55:00]line Версия ККМ: 001 [10:55:00]line ФМ: 0000000000874811 [10:55:00]line ФД: 95376 [10:55:00]line ФПД: 225370285523287 [10:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105508&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95376&fm=225370285523287&tin=02508201610067®Number=0000000000090555&sum=70900 [10:55:00]OFD Sender: Processing packet 95376 [packets to send 30, broken 29] [10:55:00]ProducePacketName [10:55:00]name=ofd_packets/00095376 [10:55:00]OFD Sender: To server: pG, [10:55:00]CommunicateWithHost lk.salyk.kg:30040 [10:55:00]ConnectInit lk.salyk.kg [10:55:00]written 0, free lines is 4095 [10:55:00]Connected sock=10 [10:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 26 9D 04 01 60 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 0C 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 74 01 00 35 04 06 00 CC F9 1B CF C1 57 93 C0 B2 BB 79 DF CF A1 [10:55:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E1 24 47 00 A3 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 90 74 01 00 F4 03 04 00 5F 31 F1 65 B6 04 01 00 00 2F 4C 87 4D EC AE BA B5 [10:55:00]CommunicateWithHost err = 0 [10:55:00]CheckOFDResponse [10:55:00]1017 (14) - 77093643461234 [10:55:00]1041 (16) - 0000000000874811 [10:55:00]1040 (4) - 95376 [10:55:00]1012 (4) - 13.03.2024 04:53 [10:55:00]1206 (1) - 0 [10:55:00]OFD Sender: Remove packet 95376 [10:55:00]ProducePacketName [10:55:00]name=ofd_packets/00095376 [10:55:00]NVStorageDeleteData [10:55:00]Write to MH i2c: 01 00 00 90 72 02 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: 01 07 00 90 72 00 80 00 00 00 7C 0D 12 [10:55:00]RasterBufferAndPrint [10:55:00]line [10:55:00]line [10:55:00]line [10:55:00]line [10:55:00]line [10:55:00]written 0, free lines is 3458 [10:55:00]process_action close_receipt done [10:55:00]requested_data is exist [10:55:00]produce_requested_data [10:55:00]requested_item fm.sn is exist - process it [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 11 00 00 [10:55:00]Write to MH i2c: E2 08 00 97 72 80 11 00 00 00 00 00 00 83 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 17 00 97 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D3 [10:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:55:00]wFMCommunicate OK [10:55:00]requested_item fd.num is exist - process it [10:55:00]SAM_PROTO_GetFieldsCounters [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 13 00 00 [10:55:00]Write to MH i2c: E2 08 00 98 72 80 13 00 00 00 00 00 00 86 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 62 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 62 00 98 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 90 74 01 00 0E 04 04 00 48 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 C6 [10:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 90 74 01 00 0E 04 04 00 48 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 [10:55:01]wFMCommunicate OK [10:55:01]SAM_PROTO_GetFieldsCounters done [10:55:01]requested_item shift.num is exist - process it [10:55:01]requested_item shift.opened is exist - process it [10:55:01]req_shift_opened [10:55:01]FM_GetShiftState [10:55:01]SAM_PROTO_GetShiftState [10:55:01]wFMCommunicate request_size=4 [10:55:01]MH_SAM_APDU [10:55:01]CAPDU: 80 13 01 00 [10:55:01]Write to MH i2c: E2 08 00 99 72 80 13 01 00 00 00 00 00 88 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 0E 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 0E 00 99 72 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 6D [10:55:01]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:55:01]wFMCommunicate OK [10:55:01]SAM_PROTO_GetShiftState done [10:55:01]FM_GetShiftState done [10:55:01]req_shift_opened done [10:55:01]requested_item shift.open_date is exist - process it [10:55:01]req_shift_open_date [10:55:01]req_shift_open_date done [10:55:01]produce_requested_data done [10:55:01]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95376,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:55:01]process_action_free close_receipt [10:55:01]json_value_free [10:55:01]json_value_free done [10:55:01]process_json_proto returns [10:55:01]Send response to host [10:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95376,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:55:01]free response buf [10:55:01]execute_script done [10:55:01]execute_script returns [10:55:01]free content buf [10:55:01]Sock 8.Close socket [10:55:01]Sock 8.Thread stoped [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:06]accept exits with 9 [10:55:06]New connection [10:55:06]New thread 3066957156 created [10:55:06]Thread 3066813796 joined [10:55:06]Waiting for new connection... [10:55:06] Sock 9.Parse request [10:55:06]Sock 9.Check first char [10:55:06]Sock 9.First char is OK [10:55:06]request: POST /json_proto HTTP/1.0 [10:55:06]Method: POST [10:55:06]URL: /json_proto [10:55:06]Method is POST - this is cgi request [10:55:06]url: /json_proto [10:55:06]query_string will be loaded in cgi processing [10:55:06]execute_cgi json_proto POST (null) [10:55:06]execute_cgi path=json_proto method=POST [10:55:06]POST find Content-Length [10:55:06]Host: 172.17.62.67:8080 [10:55:06]Content-Length: 805 [10:55:06]Content-Type: application/json [10:55:06] [10:55:06]POST finish read [10:55:06]Found Content-Length = 805 [10:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196362", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:06]execute_script... [10:55:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196362", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:06]POST & json_proto [10:55:06]process_json_proto [10:55:06]json parsed OK: [10:55:06]protocol is kg_v1.0 [10:55:06]action value=close_receipt [10:55:06]process_action close_receipt [10:55:06]cmd_close_receipt [10:55:06]MH_GetDate [10:55:06]Write to MH i2c: F0 00 00 9A 72 FB [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: F0 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: F0 05 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: F0 05 00 9A 72 00 14 86 F1 65 F0 [10:55:06]GetLastDocTimeStamp 1710327308 [10:55:06]current date 1710327316 [10:55:06]FM_GetShiftState [10:55:06]SAM_PROTO_GetShiftState [10:55:06]wFMCommunicate request_size=4 [10:55:06]MH_SAM_APDU [10:55:06]CAPDU: 80 13 01 00 [10:55:06]Write to MH i2c: E2 08 00 9B 72 80 13 01 00 00 00 00 00 8A [10:55:06]Write i2c OK [10:55:06]MH_I2C_Read... [10:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:06]Read from MH i2c: E2 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 0E 00 [10:55:06]MH_I2C_Read... [10:55:06]Read from MH i2c: E2 0E 00 9B 72 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 6F [10:55:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:55:06]wFMCommunicate OK [10:55:06]SAM_PROTO_GetShiftState done [10:55:06]FM_GetShiftState done [10:55:06]opened in 1710288279 [10:55:06]opened+sec_in_day 1710374679 [10:55:06]quantity*price = 50005 [10:55:06]sum+1 = 50007 [10:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 72 13.03.2024 10:55 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95377 ФПД: 164677942860724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105516&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95377&fm=164677942860724&tin=02508201610067®Number=0000000000090555&sum=50006 [10:55:07]StoreToDocumentArchive [10:55:07]shift 328 fd 95377 [10:55:07]save to /storage/0328/doc_00095377 [10:55:07]save last doc name /storage/0328/doc_00095377 to /storage/kkm_last_doc_name [10:55:07]save OK [10:55:07]Clear old archive folders... [10:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:07]tlvbuf is 01C77130 [10:55:07]SAM_PROTO_ClearQueue [10:55:07]wFMCommunicate request_size=4 [10:55:07]MH_SAM_APDU [10:55:07]CAPDU: 80 09 00 00 [10:55:07]Write to MH i2c: E2 08 00 A8 72 80 09 00 00 00 00 00 00 8C [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:07]Read from MH i2c: E2 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 03 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 03 00 A8 72 00 90 00 8E [10:55:07]RAPDU: 90 00 [10:55:07]wFMCommunicate OK [10:55:07]SAM_PROTO_ClearQueue done [10:55:07]KKMCreateOFDPacket [10:55:07]OFDProtocolAddRootSTLVToBuf [10:55:07]FM_MakeSignedData [10:55:07]FM_MakeSignedData [10:55:07]SAM_PROTO_SignData [10:55:07]wFMCommunicate request_size=4 [10:55:07]MH_SAM_APDU [10:55:07]CAPDU: 80 0D 01 02 [10:55:07]Write to MH i2c: E2 08 00 A9 72 80 0D 01 02 00 00 00 00 94 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:07]Read from MH i2c: E2 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 03 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 03 00 A9 72 00 90 00 8F [10:55:07]RAPDU: 90 00 [10:55:07]wFMCommunicate OK [10:55:07]wFMCommunicate request_size=255 [10:55:07]MH_SAM_APDU [10:55:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 14 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 74 01 00 35 04 06 00 95 [10:55:07]Write to MH i2c: E2 02 01 AA 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 14 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 74 01 00 35 04 06 00 95 00 00 65 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:07]Read from MH i2c: E2 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 03 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 03 00 AA 72 00 90 00 90 [10:55:07]RAPDU: 90 00 [10:55:07]wFMCommunicate OK [10:55:07]wFMCommunicate request_size=10 [10:55:07]MH_SAM_APDU [10:55:07]CAPDU: 80 0D 02 02 05 C6 12 49 5B B4 [10:55:07]Write to MH i2c: E2 0D 00 AB 72 80 0D 02 02 05 00 C6 12 49 5B B4 00 00 D1 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:07]Read from MH i2c: E2 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 03 00 [10:55:07]MH_I2C_Read... [10:55:07]Read from MH i2c: E2 03 00 AB 72 00 90 00 91 [10:55:07]RAPDU: 90 00 [10:55:07]wFMCommunicate OK [10:55:07]wFMCommunicate request_size=4 [10:55:07]MH_SAM_APDU [10:55:07]CAPDU: 80 0D 03 02 [10:55:07]Write to MH i2c: E2 08 00 AC 72 80 0D 03 02 00 00 00 00 99 [10:55:07]Write i2c OK [10:55:07]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0B 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0B 00 AC 72 00 E2 17 AA 8B C1 CD 31 D0 90 00 57 [10:55:08]RAPDU: E2 17 AA 8B C1 CD 31 D0 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_SignData done [10:55:08]FM_MakeSignedData done [10:55:08]CreateOFDProtocolMessage [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 11 00 00 [10:55:08]Write to MH i2c: E2 08 00 AD 72 80 11 00 00 00 00 00 00 99 [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 AD 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E9 [10:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:55:08]wFMCommunicate OK [10:55:08]CreateOFDProtocolMessage done [10:55:08]OFDSenderStorePacket 95377 [10:55:08]StoreOFDPacket docnum=95377 [10:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 23 31 07 01 B2 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 14 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 74 01 00 35 04 06 00 95 C6 12 49 5B B4 E2 17 AA 8B C1 CD 31 D0 [10:55:08]CheckFolder [10:55:08]dirname=/storage/ofd_packets [10:55:08]CheckFolder done [10:55:08]ProducePacketName [10:55:08]name=ofd_packets/00095377 [10:55:08]NVStorageSaveData ofd_packets/00095377 [10:55:08]File name is /storage/ofd_packets/00095377 [10:55:08]Write 301 bytes [10:55:08]NVStorageSaveData done [10:55:08]OFDSenderStorePacket done [10:55:08]KKMCreateOFDPacket done [10:55:08]NVStorageSaveData kkm_last_timestamp [10:55:08]File name is /storage/kkm_last_timestamp [10:55:08]Write 4 bytes [10:55:08]NVStorageSaveData done [10:55:08]ExternCall_PrintAddStr [10:55:08]wPrintStart [10:55:08]Write to MH i2c: 01 00 00 AE 72 20 [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 AE 72 00 80 00 00 00 FF 0F B5 [10:55:08]RasterBufferAndPrint [10:55:08]line Счет N : (1)196362 [10:55:08]line ИНН: 02508201610067 [10:55:08]line Контрольно-Кассовый Чек [10:55:08]line ПРОДАЖА [10:55:08]line ТРК (МРК, ГНК) : 12 [10:55:08]line Товар: 2710124130 [10:55:08]line Аи-92-К-5 [10:55:08]line 7.950 * 62.90 [10:55:08]line = 500.06 [10:55:08]line НДС 12% НСП 1% [10:55:08]line > о реализуемом товаре [10:55:08]line ИТОГО: 500.06 [10:55:08]line НСП 1% : 4.42 [10:55:08]line НДС 12% : 53.10 [10:55:08]line Наличными: 0.00 [10:55:08]line Безнал.: 500.06 [10:55:08]line Место: АЗС № 6 "Партнер Нефть" [10:55:08]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:55:08]line СНО: Общий режим [10:55:08]line Чек 72 13.03.2024 10:55 [10:55:08]line Смена: 328 ФФД: 1.0 [10:55:08]line ЗНМ: 0300000009 [10:55:08]line РНМ: 0000000000090555 [10:55:08]line Версия ККМ: 001 [10:55:08]line Платежная система: О! деньги [10:55:08]line ФМ: 0000000000874811 [10:55:08]line ФД: 95377 [10:55:08]line ФПД: 164677942860724 [10:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105516&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95377&fm=164677942860724&tin=02508201610067®Number=0000000000090555&sum=50006 [10:55:08]written 0, free lines is 4095 [10:55:08]OFD Sender: Processing packet 95377 [packets to send 30, broken 29] [10:55:08]ProducePacketName [10:55:08]name=ofd_packets/00095377 [10:55:08]OFD Sender: To server: pG, [10:55:08]CommunicateWithHost lk.salyk.kg:30040 [10:55:08]ConnectInit lk.salyk.kg [10:55:08]Write to MH i2c: 01 00 00 D8 72 4A [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: 01 07 00 D8 72 00 80 00 00 00 58 0D 36 [10:55:08]RasterBufferAndPrint [10:55:08]line [10:55:08]line [10:55:08]line [10:55:08]line [10:55:08]line [10:55:08]written 0, free lines is 3424 [10:55:08]process_action close_receipt done [10:55:08]requested_data is exist [10:55:08]produce_requested_data [10:55:08]requested_item fm.sn is exist - process it [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 11 00 00 [10:55:08]Write to MH i2c: E2 08 00 DF 72 80 11 00 00 00 00 00 00 CB [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 17 00 DF 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1B [10:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:55:08]wFMCommunicate OK [10:55:08]requested_item fd.num is exist - process it [10:55:08]SAM_PROTO_GetFieldsCounters [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 13 00 00 [10:55:08]Write to MH i2c: E2 08 00 E0 72 80 13 00 00 00 00 00 00 CE [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 62 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 62 00 E0 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 74 01 00 0E 04 04 00 48 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 12 [10:55:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 74 01 00 0E 04 04 00 48 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 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_GetFieldsCounters done [10:55:08]requested_item shift.num is exist - process it [10:55:08]requested_item shift.opened is exist - process it [10:55:08]req_shift_opened [10:55:08]FM_GetShiftState [10:55:08]SAM_PROTO_GetShiftState [10:55:08]wFMCommunicate request_size=4 [10:55:08]MH_SAM_APDU [10:55:08]CAPDU: 80 13 01 00 [10:55:08]Write to MH i2c: E2 08 00 E1 72 80 13 01 00 00 00 00 00 D0 [10:55:08]Write i2c OK [10:55:08]MH_I2C_Read... [10:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:08]Read from MH i2c: E2 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0E 00 [10:55:08]MH_I2C_Read... [10:55:08]Read from MH i2c: E2 0E 00 E1 72 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B5 [10:55:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:55:08]wFMCommunicate OK [10:55:08]SAM_PROTO_GetShiftState done [10:55:08]FM_GetShiftState done [10:55:08]req_shift_opened done [10:55:08]requested_item shift.open_date is exist - process it [10:55:08]req_shift_open_date [10:55:08]req_shift_open_date done [10:55:08]produce_requested_data done [10:55:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95377,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:55:08]process_action_free close_receipt [10:55:08]json_value_free [10:55:08]json_value_free done [10:55:08]process_json_proto returns [10:55:08]Send response to host [10:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95377,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:55:08]free response buf [10:55:08]execute_script done [10:55:08]execute_script returns [10:55:08]free content buf [10:55:08]Sock 9.Close socket [10:55:08]Sock 9.Thread stoped [10:55:09]Connected sock=10 [10:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 23 31 07 01 B2 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 14 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 74 01 00 35 04 06 00 95 C6 12 49 5B B4 E2 17 AA 8B C1 CD 31 D0 [10:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E1 2B 47 00 6F 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 91 74 01 00 F4 03 04 00 68 31 F1 65 B6 04 01 00 00 F8 A6 07 67 BE 34 3F E9 [10:55:09]CommunicateWithHost err = 0 [10:55:09]CheckOFDResponse [10:55:09]1017 (14) - 77093643461234 [10:55:09]1041 (16) - 0000000000874811 [10:55:09]1040 (4) - 95377 [10:55:09]1012 (4) - 13.03.2024 04:54 [10:55:09]1206 (1) - 0 [10:55:09]OFD Sender: Remove packet 95377 [10:55:09]ProducePacketName [10:55:09]name=ofd_packets/00095377 [10:55:09]NVStorageDeleteData [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]accept exits with 8 [10:55:34]New connection [10:55:34]New thread 3066813796 created [10:55:34]Thread 3066957156 joined [10:55:34]Waiting for new connection... [10:55:34] Sock 8.Parse request [10:55:34]Sock 8.Check first char [10:55:34]Sock 8.First char is OK [10:55:34]request: POST /json_proto HTTP/1.0 [10:55:34]Method: POST [10:55:34]URL: /json_proto [10:55:34]Method is POST - this is cgi request [10:55:34]url: /json_proto [10:55:34]query_string will be loaded in cgi processing [10:55:34]execute_cgi json_proto POST (null) [10:55:34]execute_cgi path=json_proto method=POST [10:55:34]POST find Content-Length [10:55:34]Host: 172.17.62.67:8080 [10:55:34]Content-Length: 1187 [10:55:34]Content-Type: application/json [10:55:34] [10:55:34]POST finish read [10:55:34]Found Content-Length = 1187 [10:55:34]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196364\u000A13.03.2024 10:49\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 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3700006\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:34]execute_script... [10:55:34]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196364\u000A13.03.2024 10:49\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 10.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 709.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\u000A3700006\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:34]POST & json_proto [10:55:34]process_json_proto [10:55:34]json parsed OK: [10:55:34]protocol is kg_v1.0 [10:55:34]action value=print_text [10:55:34]process_action print_text [10:55:34]cmd_print_text [10:55:34]ExternCall_PrintAddStr [10:55:34]wPrintStart [10:55:34]Write to MH i2c: 01 00 00 E2 72 54 [10:55:34]Write i2c OK [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: 01 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: 01 07 00 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: 01 07 00 E2 72 00 80 00 00 00 FF 0F E9 [10:55:34]RasterBufferAndPrint [10:55:34]line *****ТОВАРНЫЙ ЧЕК***** [10:55:34]line АЗС 6 [10:55:34]line Партнер нефть [10:55:34]line 02508201610067 [10:55:34]line Кассир : Сабырбек у. М. [10:55:34]line Счет N : (1)196364 [10:55:34]line 13.03.2024 10:49 [10:55:34]line ПРОДАЖА [10:55:34]line ТРК (МРК, ГНК): 51 [10:55:34]line Вид ГСМ : 2710194210 [10:55:34]line ДТ-К-5 [10:55:34]line 10.000 x 70.90 [10:55:34]line ИТОГ: 709.00 [10:55:34]line Тип оплаты: Талоны: Партнер нефть [10:55:34]line 3700006 [10:55:34]line ______________________ [10:55:34]line (подпись) [10:55:34]written 0, free lines is 4095 [10:55:34]Write to MH i2c: 01 00 00 F6 72 68 [10:55:34]Write i2c OK [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: 01 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: 01 07 00 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: 01 07 00 F6 72 00 80 00 00 00 63 0E 60 [10:55:34]RasterBufferAndPrint [10:55:34]line [10:55:34]line [10:55:34]line [10:55:34]line [10:55:34]line [10:55:34]written 0, free lines is 3686 [10:55:34]process_action print_text done [10:55:34]requested_data is exist [10:55:34]produce_requested_data [10:55:34]requested_item fm.sn is exist - process it [10:55:34]wFMCommunicate request_size=4 [10:55:34]MH_SAM_APDU [10:55:34]CAPDU: 80 11 00 00 [10:55:34]Write to MH i2c: E2 08 00 FD 72 80 11 00 00 00 00 00 00 E9 [10:55:34]Write i2c OK [10:55:34]MH_I2C_Read... [10:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:34]Read from MH i2c: E2 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: E2 17 00 [10:55:34]MH_I2C_Read... [10:55:34]Read from MH i2c: E2 17 00 FD 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 39 [10:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:55:34]wFMCommunicate OK [10:55:34]requested_item fd.num is exist - process it [10:55:34]SAM_PROTO_GetFieldsCounters [10:55:34]wFMCommunicate request_size=4 [10:55:34]MH_SAM_APDU [10:55:34]CAPDU: 80 13 00 00 [10:55:34]Write to MH i2c: E2 08 00 FE 72 80 13 00 00 00 00 00 00 EC [10:55:34]Write i2c OK [10:55:34]MH_I2C_Read... [10:55:34]OFD Sender: No OFD packet to send [10:55:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:35]Read from MH i2c: E2 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 62 00 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 62 00 FE 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 74 01 00 0E 04 04 00 48 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 30 [10:55:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 91 74 01 00 0E 04 04 00 48 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 [10:55:35]wFMCommunicate OK [10:55:35]SAM_PROTO_GetFieldsCounters done [10:55:35]requested_item shift.num is exist - process it [10:55:35]requested_item shift.opened is exist - process it [10:55:35]req_shift_opened [10:55:35]FM_GetShiftState [10:55:35]SAM_PROTO_GetShiftState [10:55:35]wFMCommunicate request_size=4 [10:55:35]MH_SAM_APDU [10:55:35]CAPDU: 80 13 01 00 [10:55:35]Write to MH i2c: E2 08 00 FF 72 80 13 01 00 00 00 00 00 EE [10:55:35]Write i2c OK [10:55:35]MH_I2C_Read... [10:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:35]Read from MH i2c: E2 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 0E 00 [10:55:35]MH_I2C_Read... [10:55:35]Read from MH i2c: E2 0E 00 FF 72 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 D3 [10:55:35]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:55:35]wFMCommunicate OK [10:55:35]SAM_PROTO_GetShiftState done [10:55:35]FM_GetShiftState done [10:55:35]req_shift_opened done [10:55:35]requested_item shift.open_date is exist - process it [10:55:35]req_shift_open_date [10:55:35]req_shift_open_date done [10:55:35]produce_requested_data done [10:55:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95377,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:55:35]process_action_free print_text [10:55:35]json_value_free [10:55:35]json_value_free done [10:55:35]process_json_proto returns [10:55:35]Send response to host [10:55:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95377,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:55:35]free response buf [10:55:35]execute_script done [10:55:35]execute_script returns [10:55:35]free content buf [10:55:35]Sock 8.Close socket [10:55:35]Sock 8.Thread stoped [10:55:39]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:08]accept exits with 9 [10:56:08]New connection [10:56:08]New thread 3066957156 created [10:56:08]Thread 3066813796 joined [10:56:08]Waiting for new connection... [10:56:08] Sock 9.Parse request [10:56:08]Sock 9.Check first char [10:56:08]Sock 9.First char is OK [10:56:08]request: POST /json_proto HTTP/1.0 [10:56:08]Method: POST [10:56:08]URL: /json_proto [10:56:08]Method is POST - this is cgi request [10:56:08]url: /json_proto [10:56:08]query_string will be loaded in cgi processing [10:56:08]execute_cgi json_proto POST (null) [10:56:08]execute_cgi path=json_proto method=POST [10:56:08]POST find Content-Length [10:56:08]Host: 172.17.62.67:8080 [10:56:08]Content-Length: 693 [10:56:08]Content-Type: application/json [10:56:08] [10:56:08]POST finish read [10:56:08]Found Content-Length = 693 [10:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95376, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196363", "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" : 70.90, "quantity" : 10.000, "sum" : 709.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 709.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:08]execute_script... [10:56:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95376, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196363", "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" : 70.90, "quantity" : 10.000, "sum" : 709.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 709.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:08]POST & json_proto [10:56:08]process_json_proto [10:56:08]json parsed OK: [10:56:08]protocol is kg_v1.0 [10:56:08]action value=close_receipt [10:56:08]process_action close_receipt [10:56:08]cmd_close_receipt [10:56:08]MH_GetDate [10:56:08]Write to MH i2c: F0 00 00 00 73 62 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 05 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: F0 05 00 00 73 00 53 86 F1 65 96 [10:56:08]GetLastDocTimeStamp 1710327316 [10:56:08]current date 1710327379 [10:56:08]FM_GetShiftState [10:56:08]SAM_PROTO_GetShiftState [10:56:08]wFMCommunicate request_size=4 [10:56:08]MH_SAM_APDU [10:56:08]CAPDU: 80 13 01 00 [10:56:08]Write to MH i2c: E2 08 00 01 73 80 13 01 00 00 00 00 00 F1 [10:56:08]Write i2c OK [10:56:08]MH_I2C_Read... [10:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:08]Read from MH i2c: E2 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 [10:56:08]MH_I2C_Read... [10:56:08]Read from MH i2c: E2 0E 00 01 73 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 D6 [10:56:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:56:08]wFMCommunicate OK [10:56:08]SAM_PROTO_GetShiftState done [10:56:08]FM_GetShiftState done [10:56:08]opened in 1710288279 [10:56:08]opened+sec_in_day 1710374679 [10:56:08]quantity*price = 70900 [10:56:08]sum+1 = 70901 [10:56:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 709.00 НСП 1% : 6.27 НДС 12% : 75.29 Наличными: 709.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 73 13.03.2024 10:56 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95376 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95378 ФПД: 68979262874256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105619&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95378&fm=68979262874256&tin=02508201610067®Number=0000000000090555&sum=70900 [10:56:10]StoreToDocumentArchive [10:56:10]shift 328 fd 95378 [10:56:10]save to /storage/0328/doc_00095378 [10:56:10]save last doc name /storage/0328/doc_00095378 to /storage/kkm_last_doc_name [10:56:10]save OK [10:56:10]Clear old archive folders... [10:56:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:56:10]tlvbuf is 01AC66F0 [10:56:10]SAM_PROTO_ClearQueue [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 09 00 00 [10:56:10]Write to MH i2c: E2 08 00 10 73 80 09 00 00 00 00 00 00 F5 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 10 73 00 90 00 F7 [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]SAM_PROTO_ClearQueue done [10:56:10]KKMCreateOFDPacket [10:56:10]OFDProtocolAddRootSTLVToBuf [10:56:10]FM_MakeSignedData [10:56:10]FM_MakeSignedData [10:56:10]SAM_PROTO_SignData [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 01 02 [10:56:10]Write to MH i2c: E2 08 00 11 73 80 0D 01 02 00 00 00 00 FD [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 11 73 00 90 00 F8 [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=255 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 53 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 90 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 [10:56:10]Write to MH i2c: E2 02 01 12 73 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 53 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 90 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 00 00 28 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 12 73 00 90 00 F9 [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=35 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 74 01 00 35 04 06 00 3E BC 7C 75 E2 90 [10:56:10]Write to MH i2c: E2 26 00 13 73 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 74 01 00 35 04 06 00 3E BC 7C 75 E2 90 00 00 54 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 03 00 13 73 00 90 00 FA [10:56:10]RAPDU: 90 00 [10:56:10]wFMCommunicate OK [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 0D 03 02 [10:56:10]Write to MH i2c: E2 08 00 14 73 80 0D 03 02 00 00 00 00 02 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 0B 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 0B 00 14 73 00 24 CA 2A D6 58 7F 35 FA 90 00 F7 [10:56:10]RAPDU: 24 CA 2A D6 58 7F 35 FA 90 00 [10:56:10]wFMCommunicate OK [10:56:10]SAM_PROTO_SignData done [10:56:10]FM_MakeSignedData done [10:56:10]CreateOFDProtocolMessage [10:56:10]wFMCommunicate request_size=4 [10:56:10]MH_SAM_APDU [10:56:10]CAPDU: 80 11 00 00 [10:56:10]Write to MH i2c: E2 08 00 15 73 80 11 00 00 00 00 00 00 02 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:10]Read from MH i2c: E2 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 17 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: E2 17 00 15 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 52 [10:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:56:10]wFMCommunicate OK [10:56:10]CreateOFDProtocolMessage done [10:56:10]OFDSenderStorePacket 95378 [10:56:10]StoreOFDPacket docnum=95378 [10:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 28 01 00 00 F8 FE 20 01 A4 40 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 53 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 90 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 74 01 00 35 04 06 00 3E BC 7C 75 E2 90 24 CA 2A D6 58 7F 35 FA [10:56:10]CheckFolder [10:56:10]dirname=/storage/ofd_packets [10:56:10]CheckFolder done [10:56:10]ProducePacketName [10:56:10]name=ofd_packets/00095378 [10:56:10]NVStorageSaveData ofd_packets/00095378 [10:56:10]File name is /storage/ofd_packets/00095378 [10:56:10]Write 326 bytes [10:56:10]NVStorageSaveData done [10:56:10]OFDSenderStorePacket done [10:56:10]KKMCreateOFDPacket done [10:56:10]NVStorageSaveData kkm_last_timestamp [10:56:10]File name is /storage/kkm_last_timestamp [10:56:10]Write 4 bytes [10:56:10]NVStorageSaveData done [10:56:10]ExternCall_PrintAddStr [10:56:10]wPrintStart [10:56:10]Write to MH i2c: 01 00 00 16 73 89 [10:56:10]Write i2c OK [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 07 00 [10:56:10]MH_I2C_Read... [10:56:10]Read from MH i2c: 01 07 00 16 73 00 80 00 00 00 FF 0F 1E [10:56:10]RasterBufferAndPrint [10:56:10]line Счет N : (1)196363 [10:56:10]line ИНН: 02508201610067 [10:56:10]line Контрольно-Кассовый Чек [10:56:10]line ВОЗВРАТ ПРОДАЖИ [10:56:10]line ТРК (МРК, ГНК) : 61 [10:56:10]line Товар: 2710194210 [10:56:10]line ДТ-К-5 [10:56:10]line 10.000 * 70.90 [10:56:10]line = 709.00 [10:56:10]line НДС 12% НСП 1% [10:56:10]line > о реализуемом товаре [10:56:10]line ИТОГО: 709.00 [10:56:10]line НСП 1% : 6.27 [10:56:10]line НДС 12% : 75.29 [10:56:10]line Наличными: 709.00 [10:56:10]line Безнал.: 0.00 [10:56:10]line Место: АЗС № 6 "Партнер Нефть" [10:56:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:56:10]line СНО: Общий режим [10:56:10]line Чек 73 13.03.2024 10:56 [10:56:10]line Смена: 328 ФФД: 1.0 [10:56:10]line ЗНМ: 0300000009 [10:56:10]line РНМ: 0000000000090555 [10:56:10]line Версия ККМ: 001 [10:56:10]line ФД осн.: 95376 [10:56:11]line ФМ осн.: 0000000000874811 [10:56:11]line ФМ: 0000000000874811 [10:56:11]line ФД: 95378 [10:56:11]line ФПД: 68979262874256 [10:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105619&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95378&fm=68979262874256&tin=02508201610067®Number=0000000000090555&sum=70900 [10:56:11]OFD Sender: Processing packet 95378 [packets to send 30, broken 29] [10:56:11]ProducePacketName [10:56:11]name=ofd_packets/00095378 [10:56:11]OFD Sender: To server: pG, [10:56:11]CommunicateWithHost lk.salyk.kg:30040 [10:56:11]ConnectInit lk.salyk.kg [10:56:11]written 0, free lines is 4095 [10:56:11]Connected sock=10 [10: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 34 38 31 31 28 01 00 00 F8 FE 20 01 A4 40 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 F4 14 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 14 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 1D 00 00 00 00 07 04 06 00 F4 14 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 53 86 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 90 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 74 01 00 35 04 06 00 3E BC 7C 75 E2 90 24 CA 2A D6 58 7F 35 FA [10:56:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7F 68 47 00 E6 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 92 74 01 00 F4 03 04 00 A6 31 F1 65 B6 04 01 00 00 CA F9 EC 6A BD FE 61 3F [10:56:11]CommunicateWithHost err = 0 [10:56:11]CheckOFDResponse [10:56:11]1017 (14) - 77093643461234 [10:56:11]1041 (16) - 0000000000874811 [10:56:11]1040 (4) - 95378 [10:56:11]1012 (4) - 13.03.2024 04:55 [10:56:11]1206 (1) - 0 [10:56:11]OFD Sender: Remove packet 95378 [10:56:11]ProducePacketName [10:56:11]name=ofd_packets/00095378 [10:56:11]NVStorageDeleteData [10:56:11]Write to MH i2c: 01 00 00 40 73 B3 [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: 01 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: 01 07 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: 01 07 00 40 73 00 80 00 00 00 61 0D A8 [10:56:11]RasterBufferAndPrint [10:56:11]line [10:56:11]line [10:56:11]line [10:56:11]line [10:56:11]line [10:56:11]written 0, free lines is 3433 [10:56:11]process_action close_receipt done [10:56:11]requested_data is exist [10:56:11]produce_requested_data [10:56:11]requested_item fm.sn is exist - process it [10:56:11]wFMCommunicate request_size=4 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 11 00 00 [10:56:11]Write to MH i2c: E2 08 00 47 73 80 11 00 00 00 00 00 00 34 [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:11]Read from MH i2c: E2 17 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 17 00 47 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 84 [10:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:56:11]wFMCommunicate OK [10:56:11]requested_item fd.num is exist - process it [10:56:11]SAM_PROTO_GetFieldsCounters [10:56:11]wFMCommunicate request_size=4 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 13 00 00 [10:56:11]Write to MH i2c: E2 08 00 48 73 80 13 00 00 00 00 00 00 37 [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 62 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 62 00 48 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 92 74 01 00 0E 04 04 00 48 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 7F [10:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 92 74 01 00 0E 04 04 00 48 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 [10:56:11]wFMCommunicate OK [10:56:11]SAM_PROTO_GetFieldsCounters done [10:56:11]requested_item shift.num is exist - process it [10:56:11]requested_item shift.opened is exist - process it [10:56:11]req_shift_opened [10:56:11]FM_GetShiftState [10:56:11]SAM_PROTO_GetShiftState [10:56:11]wFMCommunicate request_size=4 [10:56:11]MH_SAM_APDU [10:56:11]CAPDU: 80 13 01 00 [10:56:11]Write to MH i2c: E2 08 00 49 73 80 13 01 00 00 00 00 00 39 [10:56:11]Write i2c OK [10:56:11]MH_I2C_Read... [10:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:11]Read from MH i2c: E2 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 0E 00 [10:56:11]MH_I2C_Read... [10:56:11]Read from MH i2c: E2 0E 00 49 73 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 1E [10:56:11]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:56:11]wFMCommunicate OK [10:56:11]SAM_PROTO_GetShiftState done [10:56:11]FM_GetShiftState done [10:56:11]req_shift_opened done [10:56:11]requested_item shift.open_date is exist - process it [10:56:11]req_shift_open_date [10:56:11]req_shift_open_date done [10:56:11]produce_requested_data done [10:56:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95378,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [10:56:11]process_action_free close_receipt [10:56:11]json_value_free [10:56:11]json_value_free done [10:56:11]process_json_proto returns [10:56:11]Send response to host [10:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95378,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [10:56:11]free response buf [10:56:11]execute_script done [10:56:11]execute_script returns [10:56:11]free content buf [10:56:11]Sock 9.Close socket [10:56:11]Sock 9.Thread stoped [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:14]accept exits with 8 [10:59:14]New connection [10:59:14]New thread 3066813796 created [10:59:14]Thread 3066957156 joined [10:59:14]Waiting for new connection... [10:59:14] Sock 8.Parse request [10:59:14]Sock 8.Check first char [10:59:14]Sock 8.First char is OK [10:59:14]request: POST /json_proto HTTP/1.0 [10:59:14]Method: POST [10:59:14]URL: /json_proto [10:59:14]Method is POST - this is cgi request [10:59:14]url: /json_proto [10:59:14]query_string will be loaded in cgi processing [10:59:14]execute_cgi json_proto POST (null) [10:59:14]execute_cgi path=json_proto method=POST [10:59:14]POST find Content-Length [10:59:14]Host: 172.17.62.67:8080 [10:59:14]Content-Length: 805 [10:59:14]Content-Type: application/json [10:59:14] [10:59:14]POST finish read [10:59:14]Found Content-Length = 805 [10:59:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:14]execute_script... [10:59:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:14]POST & json_proto [10:59:14]process_json_proto [10:59:14]json parsed OK: [10:59:14]protocol is kg_v1.0 [10:59:14]action value=close_receipt [10:59:14]process_action close_receipt [10:59:14]cmd_close_receipt [10:59:14]MH_GetDate [10:59:14]Write to MH i2c: F0 00 00 4A 73 AC [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: F0 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: F0 05 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: F0 05 00 4A 73 00 0C 87 F1 65 9A [10:59:14]GetLastDocTimeStamp 1710327379 [10:59:14]current date 1710327564 [10:59:14]FM_GetShiftState [10:59:14]SAM_PROTO_GetShiftState [10:59:14]wFMCommunicate request_size=4 [10:59:14]MH_SAM_APDU [10:59:14]CAPDU: 80 13 01 00 [10:59:14]Write to MH i2c: E2 08 00 4B 73 80 13 01 00 00 00 00 00 3B [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 0E 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 0E 00 4B 73 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 20 [10:59:14]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [10:59:14]wFMCommunicate OK [10:59:14]SAM_PROTO_GetShiftState done [10:59:14]FM_GetShiftState done [10:59:14]opened in 1710288279 [10:59:14]opened+sec_in_day 1710374679 [10:59:14]quantity*price = 50040 [10:59:14]sum+1 = 50041 [10:59:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 74 13.03.2024 10:59 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95379 ФПД: 109777318271770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105924&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95379&fm=109777318271770&tin=02508201610067®Number=0000000000090555&sum=50040 [10:59:15]StoreToDocumentArchive [10:59:15]shift 328 fd 95379 [10:59:15]save to /storage/0328/doc_00095379 [10:59:15]save last doc name /storage/0328/doc_00095379 to /storage/kkm_last_doc_name [10:59:15]save OK [10:59:15]Clear old archive folders... [10:59:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:15]tlvbuf is 01A5F1C0 [10:59:15]SAM_PROTO_ClearQueue [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 09 00 00 [10:59:15]Write to MH i2c: E2 08 00 58 73 80 09 00 00 00 00 00 00 3D [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:15]Read from MH i2c: E2 03 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 58 73 00 90 00 3F [10:59:15]RAPDU: 90 00 [10:59:15]wFMCommunicate OK [10:59:15]SAM_PROTO_ClearQueue done [10:59:15]KKMCreateOFDPacket [10:59:15]OFDProtocolAddRootSTLVToBuf [10:59:15]FM_MakeSignedData [10:59:15]FM_MakeSignedData [10:59:15]SAM_PROTO_SignData [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 0D 01 02 [10:59:15]Write to MH i2c: E2 08 00 59 73 80 0D 01 02 00 00 00 00 45 [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 59 73 00 90 00 40 [10:59:15]RAPDU: 90 00 [10:59:15]wFMCommunicate OK [10:59:15]wFMCommunicate request_size=255 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0C 87 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 74 01 00 35 04 06 00 63 [10:59:15]Write to MH i2c: E2 02 01 5A 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0C 87 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 74 01 00 35 04 06 00 63 00 00 F6 [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 5A 73 00 90 00 41 [10:59:15]RAPDU: 90 00 [10:59:15]wFMCommunicate OK [10:59:15]wFMCommunicate request_size=10 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 0D 02 02 05 D7 86 0F 5B 1A [10:59:15]Write to MH i2c: E2 0D 00 5B 73 80 0D 02 02 05 00 D7 86 0F 5B 1A 00 00 33 [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 5B 73 00 90 00 42 [10:59:15]RAPDU: 90 00 [10:59:15]wFMCommunicate OK [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 0D 03 02 [10:59:15]Write to MH i2c: E2 08 00 5C 73 80 0D 03 02 00 00 00 00 4A [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 0B 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 0B 00 5C 73 00 5F EA 66 B0 A4 7E 0B 2F 90 00 06 [10:59:15]RAPDU: 5F EA 66 B0 A4 7E 0B 2F 90 00 [10:59:15]wFMCommunicate OK [10:59:15]SAM_PROTO_SignData done [10:59:15]FM_MakeSignedData done [10:59:15]CreateOFDProtocolMessage [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 5D 73 80 11 00 00 00 00 00 00 4A [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:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 17 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 17 00 5D 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9A [10:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:59:16]wFMCommunicate OK [10:59:16]CreateOFDProtocolMessage done [10:59:16]OFDSenderStorePacket 95379 [10:59:16]StoreOFDPacket docnum=95379 [10:59:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E2 7B 07 01 51 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0C 87 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 74 01 00 35 04 06 00 63 D7 86 0F 5B 1A 5F EA 66 B0 A4 7E 0B 2F [10:59:16]CheckFolder [10:59:16]dirname=/storage/ofd_packets [10:59:16]CheckFolder done [10:59:16]ProducePacketName [10:59:16]name=ofd_packets/00095379 [10:59:16]NVStorageSaveData ofd_packets/00095379 [10:59:16]File name is /storage/ofd_packets/00095379 [10:59:16]Write 301 bytes [10:59:16]NVStorageSaveData done [10:59:16]OFDSenderStorePacket done [10:59:16]KKMCreateOFDPacket done [10:59:16]NVStorageSaveData kkm_last_timestamp [10:59:16]File name is /storage/kkm_last_timestamp [10:59:16]Write 4 bytes [10:59:16]NVStorageSaveData done [10:59:16]ExternCall_PrintAddStr [10:59:16]wPrintStart [10:59:16]Write to MH i2c: 01 00 00 5E 73 D1 [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 07 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 07 00 5E 73 00 80 00 00 00 FF 0F 66 [10:59:16]RasterBufferAndPrint [10:59:16]line Счет N : (1)196365 [10:59:16]line ИНН: 02508201610067 [10:59:16]line Контрольно-Кассовый Чек [10:59:16]line ПРОДАЖА [10:59:16]line ТРК (МРК, ГНК) : 21 [10:59:16]line Товар: 2710124500 [10:59:16]line Аи-95-К-5 [10:59:16]line 7.200 * 69.50 [10:59:16]line = 500.40 [10:59:16]line НДС 12% НСП 1% [10:59:16]line > о реализуемом товаре [10:59:16]line ИТОГО: 500.40 [10:59:16]line НСП 1% : 4.43 [10:59:16]line НДС 12% : 53.14 [10:59:16]line Наличными: 0.00 [10:59:16]line Безнал.: 500.40 [10:59:16]line Место: АЗС № 6 "Партнер Нефть" [10:59:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [10:59:16]line СНО: Общий режим [10:59:16]line Чек 74 13.03.2024 10:59 [10:59:16]line Смена: 328 ФФД: 1.0 [10:59:16]line ЗНМ: 0300000009 [10:59:16]line РНМ: 0000000000090555 [10:59:16]line Версия ККМ: 001 [10:59:16]line Платежная система: О! деньги [10:59:16]line ФМ: 0000000000874811 [10:59:16]line ФД: 95379 [10:59:16]line ФПД: 109777318271770 [10:59:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T105924&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95379&fm=109777318271770&tin=02508201610067®Number=0000000000090555&sum=50040 [10:59:16]written 0, free lines is 4095 [10:59:16]OFD Sender: Processing packet 95379 [packets to send 30, broken 29] [10:59:16]ProducePacketName [10:59:16]name=ofd_packets/00095379 [10:59:16]OFD Sender: To server: pG, [10:59:16]CommunicateWithHost lk.salyk.kg:30040 [10:59:16]ConnectInit lk.salyk.kg [10:59:16]Connected sock=10 [10:59:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E2 7B 07 01 51 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0C 87 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 74 01 00 35 04 06 00 63 D7 86 0F 5B 1A 5F EA 66 B0 A4 7E 0B 2F [10:59:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1A 43 47 00 19 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 93 74 01 00 F4 03 04 00 5F 32 F1 65 B6 04 01 00 00 1A CF CC 82 65 6F A4 29 [10:59:16]CommunicateWithHost err = 0 [10:59:16]CheckOFDResponse [10:59:16]1017 (14) - 77093643461234 [10:59:16]1041 (16) - 0000000000874811 [10:59:16]1040 (4) - 95379 [10:59:16]1012 (4) - 13.03.2024 04:58 [10:59:16]1206 (1) - 0 [10:59:16]OFD Sender: Remove packet 95379 [10:59:16]ProducePacketName [10:59:16]name=ofd_packets/00095379 [10:59:16]NVStorageDeleteData [10:59:16]Write to MH i2c: 01 00 00 88 73 FB [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 07 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 07 00 88 73 00 80 00 00 00 59 0D E8 [10:59:16]RasterBufferAndPrint [10:59:16]line [10:59:16]line [10:59:16]line [10:59:16]line [10:59:16]line [10:59:16]written 0, free lines is 3423 [10:59:16]process_action close_receipt done [10:59:16]requested_data is exist [10:59:16]produce_requested_data [10:59:16]requested_item fm.sn is exist - process it [10:59:16]wFMCommunicate request_size=4 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 11 00 00 [10:59:16]Write to MH i2c: E2 08 00 8F 73 80 11 00 00 00 00 00 00 7C [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 17 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 17 00 8F 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CC [10:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [10:59:16]wFMCommunicate OK [10:59:16]requested_item fd.num is exist - process it [10:59:16]SAM_PROTO_GetFieldsCounters [10:59:16]wFMCommunicate request_size=4 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 13 00 00 [10:59:16]Write to MH i2c: E2 08 00 90 73 80 13 00 00 00 00 00 00 7F [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 62 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 62 00 90 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 93 74 01 00 0E 04 04 00 48 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 CB [10:59:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 93 74 01 00 0E 04 04 00 48 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 [10:59:16]wFMCommunicate OK [10:59:16]SAM_PROTO_GetFieldsCounters done [10:59:16]requested_item shift.num is exist - process it [10:59:16]requested_item shift.opened is exist - process it [10:59:16]req_shift_opened [10:59:16]FM_GetShiftState [10:59:16]SAM_PROTO_GetShiftState [10:59:16]wFMCommunicate request_size=4 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 13 01 00 [10:59:16]Write to MH i2c: E2 08 00 91 73 80 13 01 00 00 00 00 00 81 [10:59:16]Write i2c OK [10:59:16]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 91 73 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 66 [10:59:16]RAPDU: 09 00 01 97 ED F0 65 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":"0000000000874811","fd.num":95379,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [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":"0000000000874811","fd.num":95379,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [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 8.Close socket [10:59:16]Sock 8.Thread stoped [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:08]accept exits with 9 [11:00:08]New connection [11:00:08]New thread 3066957156 created [11:00:08]Thread 3066813796 joined [11:00:08]Waiting for new connection... [11:00:08] Sock 9.Parse request [11:00:08]Sock 9.Check first char [11:00:08]Sock 9.First char is OK [11:00:08]request: POST /json_proto HTTP/1.0 [11:00:08]Method: POST [11:00:08]URL: /json_proto [11:00:08]Method is POST - this is cgi request [11:00:08]url: /json_proto [11:00:08]query_string will be loaded in cgi processing [11:00:08]execute_cgi json_proto POST (null) [11:00:08]execute_cgi path=json_proto method=POST [11:00:08]POST find Content-Length [11:00:08]Host: 172.17.62.67:8080 [11:00:08]Content-Length: 682 [11:00:08]Content-Type: application/json [11:00:08] [11:00:08]POST finish read [11:00:08]Found Content-Length = 682 [11:00:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 71.950, "sum" : 5000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:08]execute_script... [11:00:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 71.950, "sum" : 5000.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:08]POST & json_proto [11:00:08]process_json_proto [11:00:08]json parsed OK: [11:00:08]protocol is kg_v1.0 [11:00:08]action value=close_receipt [11:00:08]process_action close_receipt [11:00:08]cmd_close_receipt [11:00:08]MH_GetDate [11:00:08]Write to MH i2c: F0 00 00 92 73 F4 [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: F0 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: F0 05 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: F0 05 00 92 73 00 42 87 F1 65 18 [11:00:08]GetLastDocTimeStamp 1710327564 [11:00:08]current date 1710327618 [11:00:08]FM_GetShiftState [11:00:08]SAM_PROTO_GetShiftState [11:00:08]wFMCommunicate request_size=4 [11:00:08]MH_SAM_APDU [11:00:08]CAPDU: 80 13 01 00 [11:00:08]Write to MH i2c: E2 08 00 93 73 80 13 01 00 00 00 00 00 83 [11:00:08]Write i2c OK [11:00:08]MH_I2C_Read... [11:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:08]Read from MH i2c: E2 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 0E 00 [11:00:08]MH_I2C_Read... [11:00:08]Read from MH i2c: E2 0E 00 93 73 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 68 [11:00:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:00:08]wFMCommunicate OK [11:00:08]SAM_PROTO_GetShiftState done [11:00:08]FM_GetShiftState done [11:00:08]opened in 1710288279 [11:00:08]opened+sec_in_day 1710374679 [11:00:08]quantity*price = 500052 [11:00:08]sum+1 = 500054 [11:00:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.03 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 75 13.03.2024 11:00 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95380 ФПД: 174800689259939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T110018&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95380&fm=174800689259939&tin=02508201610067®Number=0000000000090555&sum=500000 [11:00:09]StoreToDocumentArchive [11:00:09]shift 328 fd 95380 [11:00:09]save to /storage/0328/doc_00095380 [11:00:09]save last doc name /storage/0328/doc_00095380 to /storage/kkm_last_doc_name [11:00:09]save OK [11:00:09]Clear old archive folders... [11:00:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:09]tlvbuf is 01A26000 [11:00:09]SAM_PROTO_ClearQueue [11:00:09]wFMCommunicate request_size=4 [11:00:09]MH_SAM_APDU [11:00:09]CAPDU: 80 09 00 00 [11:00:09]Write to MH i2c: E2 08 00 A0 73 80 09 00 00 00 00 00 00 85 [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: E2 [11:00:09]MH_I2C_Read... [11:00:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:09]Read from MH i2c: E2 03 00 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: E2 03 00 A0 73 00 90 00 87 [11:00:09]RAPDU: 90 00 [11:00:09]wFMCommunicate OK [11:00:09]SAM_PROTO_ClearQueue done [11:00:09]KKMCreateOFDPacket [11:00:09]OFDProtocolAddRootSTLVToBuf [11:00:09]FM_MakeSignedData [11:00:09]FM_MakeSignedData [11:00:09]SAM_PROTO_SignData [11:00:09]wFMCommunicate request_size=4 [11:00:09]MH_SAM_APDU [11:00:09]CAPDU: 80 0D 01 02 [11:00:09]Write to MH i2c: E2 08 00 A1 73 80 0D 01 02 00 00 00 00 8D [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:09]Read from MH i2c: E2 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: E2 03 00 [11:00:09]MH_I2C_Read... [11:00:09]Read from MH i2c: E2 03 00 A1 73 00 90 00 88 [11:00:09]RAPDU: 90 00 [11:00:09]wFMCommunicate OK [11:00:09]wFMCommunicate request_size=255 [11:00:09]MH_SAM_APDU [11:00:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 19 01 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 42 87 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 74 01 00 35 04 06 00 9E [11:00:09]Write to MH i2c: E2 02 01 A2 73 80 0D 02 02 FA 00 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 0E 19 01 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 42 87 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 74 01 00 35 04 06 00 9E 00 00 7F [11:00:09]Write i2c OK [11:00:09]MH_I2C_Read... [11:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:10]Read from MH i2c: E2 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 03 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 03 00 A2 73 00 90 00 89 [11:00:10]RAPDU: 90 00 [11:00:10]wFMCommunicate OK [11:00:10]wFMCommunicate request_size=10 [11:00:10]MH_SAM_APDU [11:00:10]CAPDU: 80 0D 02 02 05 FA F4 FD 65 A3 [11:00:10]Write to MH i2c: E2 0D 00 A3 73 80 0D 02 02 05 00 FA F4 FD 65 A3 00 00 8D [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:10]Read from MH i2c: E2 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 03 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 03 00 A3 73 00 90 00 8A [11:00:10]RAPDU: 90 00 [11:00:10]wFMCommunicate OK [11:00:10]wFMCommunicate request_size=4 [11:00:10]MH_SAM_APDU [11:00:10]CAPDU: 80 0D 03 02 [11:00:10]Write to MH i2c: E2 08 00 A4 73 80 0D 03 02 00 00 00 00 92 [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:10]Read from MH i2c: E2 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 0B 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 0B 00 A4 73 00 03 3A FF B2 63 36 75 6A 90 00 F9 [11:00:10]RAPDU: 03 3A FF B2 63 36 75 6A 90 00 [11:00:10]wFMCommunicate OK [11:00:10]SAM_PROTO_SignData done [11:00:10]FM_MakeSignedData done [11:00:10]CreateOFDProtocolMessage [11:00:10]wFMCommunicate request_size=4 [11:00:10]MH_SAM_APDU [11:00:10]CAPDU: 80 11 00 00 [11:00:10]Write to MH i2c: E2 08 00 A5 73 80 11 00 00 00 00 00 00 92 [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:10]Read from MH i2c: E2 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 17 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: E2 17 00 A5 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E2 [11:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:00:10]wFMCommunicate OK [11:00:10]CreateOFDProtocolMessage done [11:00:10]OFDSenderStorePacket 95380 [11:00:10]StoreOFDPacket docnum=95380 [11:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 92 16 07 01 56 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 19 01 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 42 87 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 74 01 00 35 04 06 00 9E FA F4 FD 65 A3 03 3A FF B2 63 36 75 6A [11:00:10]CheckFolder [11:00:10]dirname=/storage/ofd_packets [11:00:10]CheckFolder done [11:00:10]ProducePacketName [11:00:10]name=ofd_packets/00095380 [11:00:10]NVStorageSaveData ofd_packets/00095380 [11:00:10]File name is /storage/ofd_packets/00095380 [11:00:10]Write 301 bytes [11:00:10]NVStorageSaveData done [11:00:10]OFDSenderStorePacket done [11:00:10]KKMCreateOFDPacket done [11:00:10]NVStorageSaveData kkm_last_timestamp [11:00:10]File name is /storage/kkm_last_timestamp [11:00:10]Write 4 bytes [11:00:10]NVStorageSaveData done [11:00:10]ExternCall_PrintAddStr [11:00:10]wPrintStart [11:00:10]Write to MH i2c: 01 00 00 A6 73 19 [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 07 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 07 00 A6 73 00 80 00 00 00 FF 0F AE [11:00:10]RasterBufferAndPrint [11:00:10]line Счет N : (1)196366 [11:00:10]line ИНН: 02508201610067 [11:00:10]line Контрольно-Кассовый Чек [11:00:10]line ПРОДАЖА [11:00:10]line ТРК (МРК, ГНК) : 41 [11:00:10]line Товар: 2710124500 [11:00:10]line Аи-95-К-5 [11:00:10]line 71.950 * 69.50 [11:00:10]line = 5000.53 [11:00:10]line НДС 12% НСП 1% [11:00:10]line > о реализуемом товаре [11:00:10]line ОКРУГЛЕНИЕ: -0.53 [11:00:10]line ИТОГО: 5000.00 [11:00:10]line Внесено: 5000.00 [11:00:10]line СДАЧА: 0.00 [11:00:10]line НСП 1% : 44.25 [11:00:10]line НДС 12% : 531.03 [11:00:10]line Наличными: 5000.00 [11:00:10]line Безнал.: 0.00 [11:00:10]line Место: АЗС № 6 "Партнер Нефть" [11:00:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:00:10]line СНО: Общий режим [11:00:10]line Чек 75 13.03.2024 11:00 [11:00:10]line Смена: 328 ФФД: 1.0 [11:00:10]line ЗНМ: 0300000009 [11:00:10]line РНМ: 0000000000090555 [11:00:10]line Версия ККМ: 001 [11:00:10]line ФМ: 0000000000874811 [11:00:10]line ФД: 95380 [11:00:10]line ФПД: 174800689259939 [11:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T110018&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95380&fm=174800689259939&tin=02508201610067®Number=0000000000090555&sum=500000 [11:00:10]written 0, free lines is 4095 [11:00:10]OFD Sender: Processing packet 95380 [packets to send 30, broken 29] [11:00:10]ProducePacketName [11:00:10]name=ofd_packets/00095380 [11:00:10]OFD Sender: To server: pG, [11:00:10]CommunicateWithHost lk.salyk.kg:30040 [11:00:10]ConnectInit lk.salyk.kg [11:00:10]Connected sock=10 [11:00:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 92 16 07 01 56 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0E 19 01 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 42 87 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 74 01 00 35 04 06 00 9E FA F4 FD 65 A3 03 3A FF B2 63 36 75 6A [11:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D5 8F 47 00 99 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 94 74 01 00 F4 03 04 00 96 32 F1 65 B6 04 01 00 00 98 F6 9F 85 C1 7D 16 9C [11:00:10]CommunicateWithHost err = 0 [11:00:10]CheckOFDResponse [11:00:10]1017 (14) - 77093643461234 [11:00:10]1041 (16) - 0000000000874811 [11:00:10]1040 (4) - 95380 [11:00:10]1012 (4) - 13.03.2024 04:59 [11:00:10]1206 (1) - 0 [11:00:10]OFD Sender: Remove packet 95380 [11:00:10]ProducePacketName [11:00:10]name=ofd_packets/00095380 [11:00:10]NVStorageDeleteData [11:00:10]Write to MH i2c: 01 00 00 D1 73 44 [11:00:10]Write i2c OK [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 07 00 [11:00:10]MH_I2C_Read... [11:00:10]Read from MH i2c: 01 07 00 D1 73 00 80 00 00 00 4D 0D 25 [11:00:11]RasterBufferAndPrint [11:00:11]line [11:00:11]line [11:00:11]line [11:00:11]line [11:00:11]line [11:00:11]written 0, free lines is 3409 [11:00:11]process_action close_receipt done [11:00:11]requested_data is exist [11:00:11]produce_requested_data [11:00:11]requested_item fm.sn is exist - process it [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 11 00 00 [11:00:11]Write to MH i2c: E2 08 00 D8 73 80 11 00 00 00 00 00 00 C5 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 17 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 17 00 D8 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 15 [11:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:00:11]wFMCommunicate OK [11:00:11]requested_item fd.num is exist - process it [11:00:11]SAM_PROTO_GetFieldsCounters [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 13 00 00 [11:00:11]Write to MH i2c: E2 08 00 D9 73 80 13 00 00 00 00 00 00 C8 [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 62 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 62 00 D9 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 94 74 01 00 0E 04 04 00 48 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 18 [11:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 94 74 01 00 0E 04 04 00 48 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 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_GetFieldsCounters done [11:00:11]requested_item shift.num is exist - process it [11:00:11]requested_item shift.opened is exist - process it [11:00:11]req_shift_opened [11:00:11]FM_GetShiftState [11:00:11]SAM_PROTO_GetShiftState [11:00:11]wFMCommunicate request_size=4 [11:00:11]MH_SAM_APDU [11:00:11]CAPDU: 80 13 01 00 [11:00:11]Write to MH i2c: E2 08 00 DA 73 80 13 01 00 00 00 00 00 CA [11:00:11]Write i2c OK [11:00:11]MH_I2C_Read... [11:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:11]Read from MH i2c: E2 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 [11:00:11]MH_I2C_Read... [11:00:11]Read from MH i2c: E2 0E 00 DA 73 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 AF [11:00:11]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:00:11]wFMCommunicate OK [11:00:11]SAM_PROTO_GetShiftState done [11:00:11]FM_GetShiftState done [11:00:11]req_shift_opened done [11:00:11]requested_item shift.open_date is exist - process it [11:00:11]req_shift_open_date [11:00:11]req_shift_open_date done [11:00:11]produce_requested_data done [11:00:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95380,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:00:11]process_action_free close_receipt [11:00:11]json_value_free [11:00:11]json_value_free done [11:00:11]process_json_proto returns [11:00:11]Send response to host [11:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95380,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:00:11]free response buf [11:00:11]execute_script done [11:00:11]execute_script returns [11:00:11]free content buf [11:00:11]Sock 9.Close socket [11:00:11]Sock 9.Thread stoped [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:25]accept exits with 8 [11:04:25]New connection [11:04:25]New thread 3066813796 created [11:04:25]Thread 3066957156 joined [11:04:25]Waiting for new connection... [11:04:25] Sock 8.Parse request [11:04:25]Sock 8.Check first char [11:04:25]Sock 8.First char is OK [11:04:25]request: POST /json_proto HTTP/1.0 [11:04:25]Method: POST [11:04:25]URL: /json_proto [11:04:25]Method is POST - this is cgi request [11:04:25]url: /json_proto [11:04:25]query_string will be loaded in cgi processing [11:04:25]execute_cgi json_proto POST (null) [11:04:25]execute_cgi path=json_proto method=POST [11:04:25]POST find Content-Length [11:04:25]Host: 172.17.62.67:8080 [11:04:25]Content-Length: 677 [11:04:25]Content-Type: application/json [11:04:25] [11:04:25]POST finish read [11:04:25]Found Content-Length = 677 [11:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196367", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:25]execute_script... [11:04: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)196367", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:25]POST & json_proto [11:04:25]process_json_proto [11:04:25]json parsed OK: [11:04:25]protocol is kg_v1.0 [11:04:25]action value=close_receipt [11:04:25]process_action close_receipt [11:04:25]cmd_close_receipt [11:04:25]MH_GetDate [11:04:25]Write to MH i2c: F0 00 00 DB 73 3D [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: F0 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: F0 05 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: F0 05 00 DB 73 00 43 88 F1 65 63 [11:04:25]GetLastDocTimeStamp 1710327618 [11:04:25]current date 1710327875 [11:04:25]FM_GetShiftState [11:04:25]SAM_PROTO_GetShiftState [11:04:25]wFMCommunicate request_size=4 [11:04:25]MH_SAM_APDU [11:04:25]CAPDU: 80 13 01 00 [11:04:25]Write to MH i2c: E2 08 00 DC 73 80 13 01 00 00 00 00 00 CC [11:04:25]Write i2c OK [11:04:25]MH_I2C_Read... [11:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:25]Read from MH i2c: E2 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 0E 00 [11:04:25]MH_I2C_Read... [11:04:25]Read from MH i2c: E2 0E 00 DC 73 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B1 [11:04:25]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:04:25]wFMCommunicate OK [11:04:25]SAM_PROTO_GetShiftState done [11:04:25]FM_GetShiftState done [11:04:25]opened in 1710288279 [11:04:25]opened+sec_in_day 1710374679 [11:04:25]quantity*price = 50005 [11:04:25]sum+1 = 50007 [11:04:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 76 13.03.2024 11:04 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95381 ФПД: 122670162428122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T110435&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95381&fm=122670162428122&tin=02508201610067®Number=0000000000090555&sum=50000 [11:04:26]StoreToDocumentArchive [11:04:26]shift 328 fd 95381 [11:04:26]save to /storage/0328/doc_00095381 [11:04:26]save last doc name /storage/0328/doc_00095381 to /storage/kkm_last_doc_name [11:04:26]save OK [11:04:26]Clear old archive folders... [11:04:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:26]tlvbuf is 01AF9BB0 [11:04:26]SAM_PROTO_ClearQueue [11:04:26]wFMCommunicate request_size=4 [11:04:26]MH_SAM_APDU [11:04:26]CAPDU: 80 09 00 00 [11:04:26]Write to MH i2c: E2 08 00 E9 73 80 09 00 00 00 00 00 00 CE [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:26]Read from MH i2c: E2 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 03 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 03 00 E9 73 00 90 00 D0 [11:04:26]RAPDU: 90 00 [11:04:26]wFMCommunicate OK [11:04:26]SAM_PROTO_ClearQueue done [11:04:26]KKMCreateOFDPacket [11:04:26]OFDProtocolAddRootSTLVToBuf [11:04:26]FM_MakeSignedData [11:04:26]FM_MakeSignedData [11:04:26]SAM_PROTO_SignData [11:04:26]wFMCommunicate request_size=4 [11:04:26]MH_SAM_APDU [11:04:26]CAPDU: 80 0D 01 02 [11:04:26]Write to MH i2c: E2 08 00 EA 73 80 0D 01 02 00 00 00 00 D6 [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:26]Read from MH i2c: E2 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 03 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: E2 03 00 EA 73 00 90 00 D1 [11:04:26]RAPDU: 90 00 [11:04:26]wFMCommunicate OK [11:04:26]wFMCommunicate request_size=255 [11:04:26]MH_SAM_APDU [11:04:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 4C 00 00 00 F4 03 04 00 43 88 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 74 01 00 35 04 06 00 6F [11:04:26]Write to MH i2c: E2 02 01 EB 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 4C 00 00 00 F4 03 04 00 43 88 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 74 01 00 35 04 06 00 6F 00 00 AE [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:27]Read from MH i2c: E2 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 03 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 03 00 EB 73 00 90 00 D2 [11:04:27]RAPDU: 90 00 [11:04:27]wFMCommunicate OK [11:04:27]wFMCommunicate request_size=10 [11:04:27]MH_SAM_APDU [11:04:27]CAPDU: 80 0D 02 02 05 91 5F 74 C0 DA [11:04:27]Write to MH i2c: E2 0D 00 EC 73 80 0D 02 02 05 00 91 5F 74 C0 DA 00 00 E1 [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:27]Read from MH i2c: E2 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 03 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 03 00 EC 73 00 90 00 D3 [11:04:27]RAPDU: 90 00 [11:04:27]wFMCommunicate OK [11:04:27]wFMCommunicate request_size=4 [11:04:27]MH_SAM_APDU [11:04:27]CAPDU: 80 0D 03 02 [11:04:27]Write to MH i2c: E2 08 00 ED 73 80 0D 03 02 00 00 00 00 DB [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:27]Read from MH i2c: E2 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 0B 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 0B 00 ED 73 00 FA 4F 35 A9 58 6F 76 F7 90 00 37 [11:04:27]RAPDU: FA 4F 35 A9 58 6F 76 F7 90 00 [11:04:27]wFMCommunicate OK [11:04:27]SAM_PROTO_SignData done [11:04:27]FM_MakeSignedData done [11:04:27]CreateOFDProtocolMessage [11:04:27]wFMCommunicate request_size=4 [11:04:27]MH_SAM_APDU [11:04:27]CAPDU: 80 11 00 00 [11:04:27]Write to MH i2c: E2 08 00 EE 73 80 11 00 00 00 00 00 00 DB [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:27]Read from MH i2c: E2 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 17 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: E2 17 00 EE 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2B [11:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:04:27]wFMCommunicate OK [11:04:27]CreateOFDProtocolMessage done [11:04:27]OFDSenderStorePacket 95381 [11:04:27]StoreOFDPacket docnum=95381 [11:04:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EA 68 07 01 D1 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 4C 00 00 00 F4 03 04 00 43 88 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 74 01 00 35 04 06 00 6F 91 5F 74 C0 DA FA 4F 35 A9 58 6F 76 F7 [11:04:27]CheckFolder [11:04:27]dirname=/storage/ofd_packets [11:04:27]CheckFolder done [11:04:27]ProducePacketName [11:04:27]name=ofd_packets/00095381 [11:04:27]NVStorageSaveData ofd_packets/00095381 [11:04:27]File name is /storage/ofd_packets/00095381 [11:04:27]Write 301 bytes [11:04:27]NVStorageSaveData done [11:04:27]OFDSenderStorePacket done [11:04:27]KKMCreateOFDPacket done [11:04:27]NVStorageSaveData kkm_last_timestamp [11:04:27]File name is /storage/kkm_last_timestamp [11:04:27]Write 4 bytes [11:04:27]NVStorageSaveData done [11:04:27]ExternCall_PrintAddStr [11:04:27]wPrintStart [11:04:27]Write to MH i2c: 01 00 00 EF 73 62 [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 07 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 07 00 EF 73 00 80 00 00 00 FF 0F F7 [11:04:27]RasterBufferAndPrint [11:04:27]line Счет N : (1)196367 [11:04:27]line ИНН: 02508201610067 [11:04:27]line Контрольно-Кассовый Чек [11:04:27]line ПРОДАЖА [11:04:27]line ТРК (МРК, ГНК) : 22 [11:04:27]line Товар: 2710124130 [11:04:27]line Аи-92-К-5 [11:04:27]line 7.950 * 62.90 [11:04:27]line = 500.06 [11:04:27]line НДС 12% НСП 1% [11:04:27]line > о реализуемом товаре [11:04:27]line ОКРУГЛЕНИЕ: -0.06 [11:04:27]line ИТОГО: 500.00 [11:04:27]line Внесено: 500.00 [11:04:27]line СДАЧА: 0.00 [11:04:27]line НСП 1% : 4.42 [11:04:27]line НДС 12% : 53.10 [11:04:27]line Наличными: 500.00 [11:04:27]line Безнал.: 0.00 [11:04:27]line Место: АЗС № 6 "Партнер Нефть" [11:04:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:04:27]line СНО: Общий режим [11:04:27]line Чек 76 13.03.2024 11:04 [11:04:27]line Смена: 328 ФФД: 1.0 [11:04:27]line ЗНМ: 0300000009 [11:04:27]line РНМ: 0000000000090555 [11:04:27]line Версия ККМ: 001 [11:04:27]line ФМ: 0000000000874811 [11:04:27]line ФД: 95381 [11:04:27]line ФПД: 122670162428122 [11:04:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T110435&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95381&fm=122670162428122&tin=02508201610067®Number=0000000000090555&sum=50000 [11:04:27]OFD Sender: Processing packet 95381 [packets to send 30, broken 29] [11:04:27]ProducePacketName [11:04:27]name=ofd_packets/00095381 [11:04:27]OFD Sender: To server: pG, [11:04:27]CommunicateWithHost lk.salyk.kg:30040 [11:04:27]ConnectInit lk.salyk.kg [11:04:27]written 0, free lines is 4095 [11:04:28]Write to MH i2c: 01 00 00 1A 74 8E [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: 01 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: 01 07 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: 01 07 00 1A 74 00 80 00 00 00 45 0D 67 [11:04:28]RasterBufferAndPrint [11:04:28]line [11:04:28]line [11:04:28]line [11:04:28]line [11:04:28]line [11:04:28]written 0, free lines is 3403 [11:04:28]process_action close_receipt done [11:04:28]requested_data is exist [11:04:28]produce_requested_data [11:04:28]requested_item fm.sn is exist - process it [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 11 00 00 [11:04:28]Write to MH i2c: E2 08 00 21 74 80 11 00 00 00 00 00 00 0F [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 17 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 17 00 21 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5F [11:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:04:28]wFMCommunicate OK [11:04:28]requested_item fd.num is exist - process it [11:04:28]SAM_PROTO_GetFieldsCounters [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 13 00 00 [11:04:28]Write to MH i2c: E2 08 00 22 74 80 13 00 00 00 00 00 00 12 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 62 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 62 00 22 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 95 74 01 00 0E 04 04 00 48 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 66 [11:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 95 74 01 00 0E 04 04 00 48 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 [11:04:28]wFMCommunicate OK [11:04:28]SAM_PROTO_GetFieldsCounters done [11:04:28]requested_item shift.num is exist - process it [11:04:28]requested_item shift.opened is exist - process it [11:04:28]req_shift_opened [11:04:28]FM_GetShiftState [11:04:28]SAM_PROTO_GetShiftState [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 13 01 00 [11:04:28]Write to MH i2c: E2 08 00 23 74 80 13 01 00 00 00 00 00 14 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 0E 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 0E 00 23 74 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F9 [11:04:28]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:04:28]wFMCommunicate OK [11:04:28]SAM_PROTO_GetShiftState done [11:04:28]FM_GetShiftState done [11:04:28]req_shift_opened done [11:04:28]requested_item shift.open_date is exist - process it [11:04:28]req_shift_open_date [11:04:28]req_shift_open_date done [11:04:28]produce_requested_data done [11:04:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95381,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:04:28]process_action_free close_receipt [11:04:28]json_value_free [11:04:28]json_value_free done [11:04:28]process_json_proto returns [11:04:28]Send response to host [11:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95381,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:04:28]free response buf [11:04:28]execute_script done [11:04:28]execute_script returns [11:04:28]free content buf [11:04:28]Sock 8.Close socket [11:04:28]Sock 8.Thread stoped [11:06:39]ConnectInit Can't connect to host [11:06:39]CommunicateWithHost connect error [11:06:39]CommunicateWithHost err = -1 [11:06:39]OFD Sender: Server communicate error [11:06:44]OFD Sender: Processing packet 95381 [packets to send 30, broken 29] [11:06:44]ProducePacketName [11:06:44]name=ofd_packets/00095381 [11:06:44]OFD Sender: To server: pG, [11:06:44]CommunicateWithHost lk.salyk.kg:30040 [11:06:44]ConnectInit lk.salyk.kg [11:06:44]Connected sock=8 [11:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 EA 68 07 01 D1 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 4C 00 00 00 F4 03 04 00 43 88 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 74 01 00 35 04 06 00 6F 91 5F 74 C0 DA FA 4F 35 A9 58 6F 76 F7 [11:06:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B6 A1 47 00 32 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 95 74 01 00 F4 03 04 00 20 34 F1 65 B6 04 01 00 00 A7 31 9F 7B 3B B2 AE 8B [11:06:45]CommunicateWithHost err = 0 [11:06:45]CheckOFDResponse [11:06:45]1017 (14) - 77093643461234 [11:06:45]1041 (16) - 0000000000874811 [11:06:45]1040 (4) - 95381 [11:06:45]1012 (4) - 13.03.2024 05:05 [11:06:45]1206 (1) - 0 [11:06:45]OFD Sender: Remove packet 95381 [11:06:45]ProducePacketName [11:06:45]name=ofd_packets/00095381 [11:06:45]NVStorageDeleteData [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:12]accept exits with 9 [11:08:12]New connection [11:08:12]New thread 3066957156 created [11:08:12]Thread 3066813796 joined [11:08:12]Waiting for new connection... [11:08:12] Sock 9.Parse request [11:08:12]Sock 9.Check first char [11:08:12]Sock 9.First char is OK [11:08:12]request: POST /json_proto HTTP/1.0 [11:08:12]Method: POST [11:08:12]URL: /json_proto [11:08:12]Method is POST - this is cgi request [11:08:12]url: /json_proto [11:08:12]query_string will be loaded in cgi processing [11:08:12]execute_cgi json_proto POST (null) [11:08:12]execute_cgi path=json_proto method=POST [11:08:12]POST find Content-Length [11:08:12]Host: 172.17.62.67:8080 [11:08:12]Content-Length: 677 [11:08:12]Content-Type: application/json [11:08:12] [11:08:12]POST finish read [11:08:12]Found Content-Length = 677 [11:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196368", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:12]execute_script... [11:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196368", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:12]POST & json_proto [11:08:12]process_json_proto [11:08:12]json parsed OK: [11:08:12]protocol is kg_v1.0 [11:08:12]action value=close_receipt [11:08:12]process_action close_receipt [11:08:12]cmd_close_receipt [11:08:12]MH_GetDate [11:08:12]Write to MH i2c: F0 00 00 24 74 87 [11:08:12]Write i2c OK [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 05 00 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: F0 05 00 24 74 00 26 89 F1 65 91 [11:08:12]GetLastDocTimeStamp 1710327875 [11:08:12]current date 1710328102 [11:08:12]FM_GetShiftState [11:08:12]SAM_PROTO_GetShiftState [11:08:12]wFMCommunicate request_size=4 [11:08:12]MH_SAM_APDU [11:08:12]CAPDU: 80 13 01 00 [11:08:12]Write to MH i2c: E2 08 00 25 74 80 13 01 00 00 00 00 00 16 [11:08:12]Write i2c OK [11:08:12]MH_I2C_Read... [11:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:12]Read from MH i2c: E2 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: E2 0E 00 [11:08:12]MH_I2C_Read... [11:08:12]Read from MH i2c: E2 0E 00 25 74 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 FB [11:08:12]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:08:12]wFMCommunicate OK [11:08:12]SAM_PROTO_GetShiftState done [11:08:12]FM_GetShiftState done [11:08:12]opened in 1710288279 [11:08:12]opened+sec_in_day 1710374679 [11:08:12]quantity*price = 40004 [11:08:12]sum+1 = 40005 [11:08:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 77 13.03.2024 11:08 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95382 ФПД: 43789326556519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T110822&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95382&fm=43789326556519&tin=02508201610067®Number=0000000000090555&sum=40000 [11:08:13]StoreToDocumentArchive [11:08:13]shift 328 fd 95382 [11:08:13]save to /storage/0328/doc_00095382 [11:08:13]save last doc name /storage/0328/doc_00095382 to /storage/kkm_last_doc_name [11:08:13]save OK [11:08:13]Clear old archive folders... [11:08:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:13]tlvbuf is 01C312D0 [11:08:13]SAM_PROTO_ClearQueue [11:08:13]wFMCommunicate request_size=4 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 09 00 00 [11:08:13]Write to MH i2c: E2 08 00 32 74 80 09 00 00 00 00 00 00 18 [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 [11:08:13]MH_I2C_Read... [11:08:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:13]Read from MH i2c: E2 03 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 32 74 00 90 00 1A [11:08:13]RAPDU: 90 00 [11:08:13]wFMCommunicate OK [11:08:13]SAM_PROTO_ClearQueue done [11:08:13]KKMCreateOFDPacket [11:08:13]OFDProtocolAddRootSTLVToBuf [11:08:13]FM_MakeSignedData [11:08:13]FM_MakeSignedData [11:08:13]SAM_PROTO_SignData [11:08:13]wFMCommunicate request_size=4 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 0D 01 02 [11:08:13]Write to MH i2c: E2 08 00 33 74 80 0D 01 02 00 00 00 00 20 [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:13]Read from MH i2c: E2 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 [11:08:13]MH_I2C_Read... [11:08:13]Read from MH i2c: E2 03 00 33 74 00 90 00 1B [11:08:13]RAPDU: 90 00 [11:08:13]wFMCommunicate OK [11:08:13]wFMCommunicate request_size=255 [11:08:13]MH_SAM_APDU [11:08:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 26 89 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 74 01 00 35 04 06 00 27 [11:08:13]Write to MH i2c: E2 02 01 34 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 26 89 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 74 01 00 35 04 06 00 27 00 00 30 [11:08:13]Write i2c OK [11:08:13]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 34 74 00 90 00 1C [11:08:14]RAPDU: 90 00 [11:08:14]wFMCommunicate OK [11:08:14]wFMCommunicate request_size=10 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 0D 02 02 05 D3 7F 41 1D 67 [11:08:14]Write to MH i2c: E2 0D 00 35 74 80 0D 02 02 05 00 D3 7F 41 1D 67 00 00 44 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 03 00 35 74 00 90 00 1D [11:08:14]RAPDU: 90 00 [11:08:14]wFMCommunicate OK [11:08:14]wFMCommunicate request_size=4 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 0D 03 02 [11:08:14]Write to MH i2c: E2 08 00 36 74 80 0D 03 02 00 00 00 00 25 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 0B 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 0B 00 36 74 00 71 36 A6 22 DE 7F 11 2C 90 00 2F [11:08:14]RAPDU: 71 36 A6 22 DE 7F 11 2C 90 00 [11:08:14]wFMCommunicate OK [11:08:14]SAM_PROTO_SignData done [11:08:14]FM_MakeSignedData done [11:08:14]CreateOFDProtocolMessage [11:08:14]wFMCommunicate request_size=4 [11:08:14]MH_SAM_APDU [11:08:14]CAPDU: 80 11 00 00 [11:08:14]Write to MH i2c: E2 08 00 37 74 80 11 00 00 00 00 00 00 25 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:14]Read from MH i2c: E2 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 17 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: E2 17 00 37 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [11:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:08:14]wFMCommunicate OK [11:08:14]CreateOFDProtocolMessage done [11:08:14]OFDSenderStorePacket 95382 [11:08:14]StoreOFDPacket docnum=95382 [11:08:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0B C7 07 01 7A 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 26 89 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 74 01 00 35 04 06 00 27 D3 7F 41 1D 67 71 36 A6 22 DE 7F 11 2C [11:08:14]CheckFolder [11:08:14]dirname=/storage/ofd_packets [11:08:14]CheckFolder done [11:08:14]ProducePacketName [11:08:14]name=ofd_packets/00095382 [11:08:14]NVStorageSaveData ofd_packets/00095382 [11:08:14]File name is /storage/ofd_packets/00095382 [11:08:14]Write 301 bytes [11:08:14]NVStorageSaveData done [11:08:14]OFDSenderStorePacket done [11:08:14]KKMCreateOFDPacket done [11:08:14]NVStorageSaveData kkm_last_timestamp [11:08:14]File name is /storage/kkm_last_timestamp [11:08:14]Write 4 bytes [11:08:14]NVStorageSaveData done [11:08:14]ExternCall_PrintAddStr [11:08:14]wPrintStart [11:08:14]Write to MH i2c: 01 00 00 38 74 AC [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 07 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 07 00 38 74 00 80 00 00 00 FF 0F 41 [11:08:14]RasterBufferAndPrint [11:08:14]line Счет N : (1)196368 [11:08:14]line ИНН: 02508201610067 [11:08:14]line Контрольно-Кассовый Чек [11:08:14]line ПРОДАЖА [11:08:14]line ТРК (МРК, ГНК) : 32 [11:08:14]line Товар: 2710124130 [11:08:14]line Аи-92-К-5 [11:08:14]line 6.360 * 62.90 [11:08:14]line = 400.04 [11:08:14]line НДС 12% НСП 1% [11:08:14]line > о реализуемом товаре [11:08:14]line ОКРУГЛЕНИЕ: -0.04 [11:08:14]line ИТОГО: 400.00 [11:08:14]line Внесено: 400.00 [11:08:14]line СДАЧА: 0.00 [11:08:14]line НСП 1% : 3.54 [11:08:14]line НДС 12% : 42.48 [11:08:14]line Наличными: 400.00 [11:08:14]line Безнал.: 0.00 [11:08:14]line Место: АЗС № 6 "Партнер Нефть" [11:08:14]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:08:14]line СНО: Общий режим [11:08:14]line Чек 77 13.03.2024 11:08 [11:08:14]line Смена: 328 ФФД: 1.0 [11:08:14]line ЗНМ: 0300000009 [11:08:14]line РНМ: 0000000000090555 [11:08:14]line Версия ККМ: 001 [11:08:14]line ФМ: 0000000000874811 [11:08:14]line ФД: 95382 [11:08:14]line ФПД: 43789326556519 [11:08:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T110822&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95382&fm=43789326556519&tin=02508201610067®Number=0000000000090555&sum=40000 [11:08:14]written 0, free lines is 4095 [11:08:14]OFD Sender: Processing packet 95382 [packets to send 30, broken 29] [11:08:14]ProducePacketName [11:08:14]name=ofd_packets/00095382 [11:08:14]OFD Sender: To server: pG, [11:08:14]CommunicateWithHost lk.salyk.kg:30040 [11:08:14]ConnectInit lk.salyk.kg [11:08:14]Connected sock=8 [11:08:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0B C7 07 01 7A 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 26 89 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 74 01 00 35 04 06 00 27 D3 7F 41 1D 67 71 36 A6 22 DE 7F 11 2C [11:08:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 1C DC 47 00 DF 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 96 74 01 00 F4 03 04 00 7A 34 F1 65 B6 04 01 00 00 1C D0 2F 29 3E 46 F2 0B [11:08:14]CommunicateWithHost err = 0 [11:08:14]CheckOFDResponse [11:08:14]1017 (14) - 77093643461234 [11:08:14]1041 (16) - 0000000000874811 [11:08:14]1040 (4) - 95382 [11:08:14]1012 (4) - 13.03.2024 05:07 [11:08:14]1206 (1) - 0 [11:08:14]OFD Sender: Remove packet 95382 [11:08:14]ProducePacketName [11:08:14]name=ofd_packets/00095382 [11:08:14]NVStorageDeleteData [11:08:14]Write to MH i2c: 01 00 00 63 74 D7 [11:08:14]Write i2c OK [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 07 00 [11:08:14]MH_I2C_Read... [11:08:14]Read from MH i2c: 01 07 00 63 74 00 80 00 00 00 53 0D BE [11:08:15]RasterBufferAndPrint [11:08:15]line [11:08:15]line [11:08:15]line [11:08:15]line [11:08:15]line [11:08:15]written 0, free lines is 3417 [11:08:15]process_action close_receipt done [11:08:15]requested_data is exist [11:08:15]produce_requested_data [11:08:15]requested_item fm.sn is exist - process it [11:08:15]wFMCommunicate request_size=4 [11:08:15]MH_SAM_APDU [11:08:15]CAPDU: 80 11 00 00 [11:08:15]Write to MH i2c: E2 08 00 6A 74 80 11 00 00 00 00 00 00 58 [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 17 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 17 00 6A 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A8 [11:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:08:15]wFMCommunicate OK [11:08:15]requested_item fd.num is exist - process it [11:08:15]SAM_PROTO_GetFieldsCounters [11:08:15]wFMCommunicate request_size=4 [11:08:15]MH_SAM_APDU [11:08:15]CAPDU: 80 13 00 00 [11:08:15]Write to MH i2c: E2 08 00 6B 74 80 13 00 00 00 00 00 00 5B [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 62 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 62 00 6B 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 96 74 01 00 0E 04 04 00 48 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 B3 [11:08:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 96 74 01 00 0E 04 04 00 48 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 [11:08:15]wFMCommunicate OK [11:08:15]SAM_PROTO_GetFieldsCounters done [11:08:15]requested_item shift.num is exist - process it [11:08:15]requested_item shift.opened is exist - process it [11:08:15]req_shift_opened [11:08:15]FM_GetShiftState [11:08:15]SAM_PROTO_GetShiftState [11:08:15]wFMCommunicate request_size=4 [11:08:15]MH_SAM_APDU [11:08:15]CAPDU: 80 13 01 00 [11:08:15]Write to MH i2c: E2 08 00 6C 74 80 13 01 00 00 00 00 00 5D [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 0E 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 0E 00 6C 74 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 42 [11:08:15]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:08:15]wFMCommunicate OK [11:08:15]SAM_PROTO_GetShiftState done [11:08:15]FM_GetShiftState done [11:08:15]req_shift_opened done [11:08:15]requested_item shift.open_date is exist - process it [11:08:15]req_shift_open_date [11:08:15]req_shift_open_date done [11:08:15]produce_requested_data done [11:08:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95382,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:08:15]process_action_free close_receipt [11:08:15]json_value_free [11:08:15]json_value_free done [11:08:15]process_json_proto returns [11:08:15]Send response to host [11:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95382,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:08:15]free response buf [11:08:15]execute_script done [11:08:15]execute_script returns [11:08:15]free content buf [11:08:15]Sock 9.Close socket [11:08:15]Sock 9.Thread stoped [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:51]accept exits with 10 [11:11:51]New connection [11:11:51]New thread 3066813796 created [11:11:51]Thread 3066957156 joined [11:11:51]Waiting for new connection... [11:11:51] Sock 10.Parse request [11:11:51]Sock 10.Check first char [11:11:51]Sock 10.First char is OK [11:11:51]request: POST /json_proto HTTP/1.0 [11:11:51]Method: POST [11:11:51]URL: /json_proto [11:11:51]Method is POST - this is cgi request [11:11:51]url: /json_proto [11:11:51]query_string will be loaded in cgi processing [11:11:51]execute_cgi json_proto POST (null) [11:11:51]execute_cgi path=json_proto method=POST [11:11:51]POST find Content-Length [11:11:51]Host: 172.17.62.67:8080 [11:11:51]Content-Length: 817 [11:11:51]Content-Type: application/json [11:11:51] [11:11:51]POST finish read [11:11:51]Found Content-Length = 817 [11:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196369", "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" : 62.90, "quantity" : 10.000, "sum" : 629.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" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:51]execute_script... [11:11:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196369", "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" : 62.90, "quantity" : 10.000, "sum" : 629.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" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:51]POST & json_proto [11:11:51]process_json_proto [11:11:51]json parsed OK: [11:11:51]protocol is kg_v1.0 [11:11:51]action value=close_receipt [11:11:51]process_action close_receipt [11:11:51]cmd_close_receipt [11:11:51]MH_GetDate [11:11:51]Write to MH i2c: F0 00 00 6D 74 D0 [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: F0 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: F0 05 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: F0 05 00 6D 74 00 02 8A F1 65 B7 [11:11:51]GetLastDocTimeStamp 1710328102 [11:11:51]current date 1710328322 [11:11:51]FM_GetShiftState [11:11:51]SAM_PROTO_GetShiftState [11:11:51]wFMCommunicate request_size=4 [11:11:51]MH_SAM_APDU [11:11:51]CAPDU: 80 13 01 00 [11:11:51]Write to MH i2c: E2 08 00 6E 74 80 13 01 00 00 00 00 00 5F [11:11:51]Write i2c OK [11:11:51]MH_I2C_Read... [11:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:51]Read from MH i2c: E2 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 0E 00 [11:11:51]MH_I2C_Read... [11:11:51]Read from MH i2c: E2 0E 00 6E 74 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 44 [11:11:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:11:51]wFMCommunicate OK [11:11:51]SAM_PROTO_GetShiftState done [11:11:51]FM_GetShiftState done [11:11:51]opened in 1710288279 [11:11:51]opened+sec_in_day 1710374679 [11:11:51]quantity*price = 62900 [11:11:51]sum+1 = 62901 [11:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 78 13.03.2024 11:12 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95383 ФПД: 437806195196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T111202&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95383&fm=437806195196&tin=02508201610067®Number=0000000000090555&sum=62900 [11:11:53]StoreToDocumentArchive [11:11:53]shift 328 fd 95383 [11:11:53]save to /storage/0328/doc_00095383 [11:11:53]save last doc name /storage/0328/doc_00095383 to /storage/kkm_last_doc_name [11:11:53]save OK [11:11:53]Clear old archive folders... [11:11:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:53]tlvbuf is 01B89B60 [11:11:53]SAM_PROTO_ClearQueue [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 09 00 00 [11:11:53]Write to MH i2c: E2 08 00 7B 74 80 09 00 00 00 00 00 00 61 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 7B 74 00 90 00 63 [11:11:53]RAPDU: 90 00 [11:11:53]wFMCommunicate OK [11:11:53]SAM_PROTO_ClearQueue done [11:11:53]KKMCreateOFDPacket [11:11:53]OFDProtocolAddRootSTLVToBuf [11:11:53]FM_MakeSignedData [11:11:53]FM_MakeSignedData [11:11:53]SAM_PROTO_SignData [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 0D 01 02 [11:11:53]Write to MH i2c: E2 08 00 7C 74 80 0D 01 02 00 00 00 00 69 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 7C 74 00 90 00 64 [11:11:53]RAPDU: 90 00 [11:11:53]wFMCommunicate OK [11:11:53]wFMCommunicate request_size=255 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 02 8A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 74 01 00 35 04 06 00 00 [11:11:53]Write to MH i2c: E2 02 01 7D 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 02 8A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 74 01 00 35 04 06 00 00 00 00 31 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 7D 74 00 90 00 65 [11:11:53]RAPDU: 90 00 [11:11:53]wFMCommunicate OK [11:11:53]wFMCommunicate request_size=10 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 0D 02 02 05 65 EF 48 61 FC [11:11:53]Write to MH i2c: E2 0D 00 7E 74 80 0D 02 02 05 00 65 EF 48 61 FC 00 00 6F [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 03 00 7E 74 00 90 00 66 [11:11:53]RAPDU: 90 00 [11:11:53]wFMCommunicate OK [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 0D 03 02 [11:11:53]Write to MH i2c: E2 08 00 7F 74 80 0D 03 02 00 00 00 00 6E [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 0B 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 0B 00 7F 74 00 A6 17 E0 43 06 B5 CA 58 90 00 2C [11:11:53]RAPDU: A6 17 E0 43 06 B5 CA 58 90 00 [11:11:53]wFMCommunicate OK [11:11:53]SAM_PROTO_SignData done [11:11:53]FM_MakeSignedData done [11:11:53]CreateOFDProtocolMessage [11:11:53]wFMCommunicate request_size=4 [11:11:53]MH_SAM_APDU [11:11:53]CAPDU: 80 11 00 00 [11:11:53]Write to MH i2c: E2 08 00 80 74 80 11 00 00 00 00 00 00 6E [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:53]Read from MH i2c: E2 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 17 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: E2 17 00 80 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [11:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:11:53]wFMCommunicate OK [11:11:53]CreateOFDProtocolMessage done [11:11:53]OFDSenderStorePacket 95383 [11:11:53]StoreOFDPacket docnum=95383 [11:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 14 8D 07 01 C1 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 02 8A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 74 01 00 35 04 06 00 00 65 EF 48 61 FC A6 17 E0 43 06 B5 CA 58 [11:11:53]CheckFolder [11:11:53]dirname=/storage/ofd_packets [11:11:53]CheckFolder done [11:11:53]ProducePacketName [11:11:53]name=ofd_packets/00095383 [11:11:53]NVStorageSaveData ofd_packets/00095383 [11:11:53]File name is /storage/ofd_packets/00095383 [11:11:53]Write 301 bytes [11:11:53]NVStorageSaveData done [11:11:53]OFDSenderStorePacket done [11:11:53]KKMCreateOFDPacket done [11:11:53]NVStorageSaveData kkm_last_timestamp [11:11:53]File name is /storage/kkm_last_timestamp [11:11:53]Write 4 bytes [11:11:53]NVStorageSaveData done [11:11:53]ExternCall_PrintAddStr [11:11:53]wPrintStart [11:11:53]Write to MH i2c: 01 00 00 81 74 F5 [11:11:53]Write i2c OK [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: 01 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: 01 07 00 [11:11:53]MH_I2C_Read... [11:11:53]Read from MH i2c: 01 07 00 81 74 00 80 00 00 00 FF 0F 8A [11:11:53]RasterBufferAndPrint [11:11:53]line Счет N : (1)196369 [11:11:53]line ИНН: 02508201610067 [11:11:53]line Контрольно-Кассовый Чек [11:11:53]line ПРОДАЖА [11:11:53]line ТРК (МРК, ГНК) : 22 [11:11:53]line Товар: 2710124130 [11:11:53]line Аи-92-К-5 [11:11:53]line 10.000 * 62.90 [11:11:53]line = 629.00 [11:11:53]line НДС 12% НСП 1% [11:11:53]line > о реализуемом товаре [11:11:53]line ИТОГО: 629.00 [11:11:53]line НСП 1% : 5.57 [11:11:53]line НДС 12% : 66.80 [11:11:53]line Наличными: 0.00 [11:11:53]line Безнал.: 629.00 [11:11:53]line Место: АЗС № 6 "Партнер Нефть" [11:11:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:11:53]line СНО: Общий режим [11:11:53]line Чек 78 13.03.2024 11:12 [11:11:53]line Смена: 328 ФФД: 1.0 [11:11:53]line ЗНМ: 0300000009 [11:11:53]line РНМ: 0000000000090555 [11:11:53]line Версия ККМ: 001 [11:11:53]line Платежная система: Бакай Банк [11:11:53]line ФМ: 0000000000874811 [11:11:53]line ФД: 95383 [11:11:53]line ФПД: 437806195196 [11:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T111202&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95383&fm=437806195196&tin=02508201610067®Number=0000000000090555&sum=62900 [11:11:53]OFD Sender: Processing packet 95383 [packets to send 30, broken 29] [11:11:53]ProducePacketName [11:11:53]name=ofd_packets/00095383 [11:11:53]OFD Sender: To server: pG, [11:11:53]CommunicateWithHost lk.salyk.kg:30040 [11:11:53]ConnectInit lk.salyk.kg [11:11:53]written 0, free lines is 4095 [11:11:53]Connected sock=9 [11:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 14 8D 07 01 C1 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 02 8A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 74 01 00 35 04 06 00 00 65 EF 48 61 FC A6 17 E0 43 06 B5 CA 58 [11:11:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 3A 81 47 00 E1 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 97 74 01 00 F4 03 04 00 55 35 F1 65 B6 04 01 00 00 E2 61 48 D4 C4 03 47 06 [11:11:54]CommunicateWithHost err = 0 [11:11:54]CheckOFDResponse [11:11:54]1017 (14) - 77093643461234 [11:11:54]1041 (16) - 0000000000874811 [11:11:54]1040 (4) - 95383 [11:11:54]1012 (4) - 13.03.2024 05:10 [11:11:54]1206 (1) - 0 [11:11:54]OFD Sender: Remove packet 95383 [11:11:54]ProducePacketName [11:11:54]name=ofd_packets/00095383 [11:11:54]NVStorageDeleteData [11:11:54]Write to MH i2c: 01 00 00 AB 74 1F [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: 01 07 00 AB 74 00 80 00 00 00 5E 0D 11 [11:11:54]RasterBufferAndPrint [11:11:54]line [11:11:54]line [11:11:54]line [11:11:54]line [11:11:54]line [11:11:54]written 0, free lines is 3428 [11:11:54]process_action close_receipt done [11:11:54]requested_data is exist [11:11:54]produce_requested_data [11:11:54]requested_item fm.sn is exist - process it [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 11 00 00 [11:11:54]Write to MH i2c: E2 08 00 B2 74 80 11 00 00 00 00 00 00 A0 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 17 00 B2 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F0 [11:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:11:54]wFMCommunicate OK [11:11:54]requested_item fd.num is exist - process it [11:11:54]SAM_PROTO_GetFieldsCounters [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 13 00 00 [11:11:54]Write to MH i2c: E2 08 00 B3 74 80 13 00 00 00 00 00 00 A3 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 62 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 62 00 B3 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 97 74 01 00 0E 04 04 00 48 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 FF [11:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 97 74 01 00 0E 04 04 00 48 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 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_GetFieldsCounters done [11:11:54]requested_item shift.num is exist - process it [11:11:54]requested_item shift.opened is exist - process it [11:11:54]req_shift_opened [11:11:54]FM_GetShiftState [11:11:54]SAM_PROTO_GetShiftState [11:11:54]wFMCommunicate request_size=4 [11:11:54]MH_SAM_APDU [11:11:54]CAPDU: 80 13 01 00 [11:11:54]Write to MH i2c: E2 08 00 B4 74 80 13 01 00 00 00 00 00 A5 [11:11:54]Write i2c OK [11:11:54]MH_I2C_Read... [11:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:54]Read from MH i2c: E2 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0E 00 [11:11:54]MH_I2C_Read... [11:11:54]Read from MH i2c: E2 0E 00 B4 74 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 8A [11:11:54]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:11:54]wFMCommunicate OK [11:11:54]SAM_PROTO_GetShiftState done [11:11:54]FM_GetShiftState done [11:11:54]req_shift_opened done [11:11:54]requested_item shift.open_date is exist - process it [11:11:54]req_shift_open_date [11:11:54]req_shift_open_date done [11:11:54]produce_requested_data done [11:11:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95383,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:11:54]process_action_free close_receipt [11:11:54]json_value_free [11:11:54]json_value_free done [11:11:54]process_json_proto returns [11:11:54]Send response to host [11:11:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95383,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:11:54]free response buf [11:11:54]execute_script done [11:11:54]execute_script returns [11:11:54]free content buf [11:11:54]Sock 10.Close socket [11:11:54]Sock 10.Thread stoped [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:58]accept exits with 8 [11:13:58]New connection [11:13:58]New thread 3066957156 created [11:13:58]Thread 3066813796 joined [11:13:58]Waiting for new connection... [11:13:58] Sock 8.Parse request [11:13:58]Sock 8.Check first char [11:13:58]Sock 8.First char is OK [11:13:58]request: POST /json_proto HTTP/1.0 [11:13:58]Method: POST [11:13:58]URL: /json_proto [11:13:58]Method is POST - this is cgi request [11:13:58]url: /json_proto [11:13:58]query_string will be loaded in cgi processing [11:13:58]execute_cgi json_proto POST (null) [11:13:58]execute_cgi path=json_proto method=POST [11:13:58]POST find Content-Length [11:13:58]Host: 172.17.62.67:8080 [11:13:58]Content-Length: 1190 [11:13:58]Content-Type: application/json [11:13:58] [11:13:58]POST finish read [11:13:58]Found Content-Length = 1190 [11:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196370\u000A13.03.2024 11:08\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 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3834546\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:58]execute_script... [11:13:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196370\u000A13.03.2024 11:08\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 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A3834546\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:58]POST & json_proto [11:13:58]process_json_proto [11:13:58]json parsed OK: [11:13:58]protocol is kg_v1.0 [11:13:58]action value=print_text [11:13:58]process_action print_text [11:13:58]cmd_print_text [11:13:58]ExternCall_PrintAddStr [11:13:58]wPrintStart [11:13:58]Write to MH i2c: 01 00 00 B5 74 29 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 B5 74 00 80 00 00 00 FF 0F BE [11:13:58]RasterBufferAndPrint [11:13:58]line *****ТОВАРНЫЙ ЧЕК***** [11:13:58]line АЗС 6 [11:13:58]line Партнер нефть [11:13:58]line 02508201610067 [11:13:58]line Кассир : Сабырбек у. М. [11:13:58]line Счет N : (1)196370 [11:13:58]line 13.03.2024 11:08 [11:13:58]line ПРОДАЖА [11:13:58]line ТРК (МРК, ГНК): 42 [11:13:58]line Вид ГСМ : 2710124130 [11:13:58]line Аи-92-К-5 [11:13:58]line 10.000 x 62.90 [11:13:58]line ИТОГ: 629.00 [11:13:58]line Тип оплаты: Талоны: Партнер нефть [11:13:58]line 3834546 [11:13:58]line ______________________ [11:13:58]line (подпись) [11:13:58]written 0, free lines is 4095 [11:13:58]Write to MH i2c: 01 00 00 C9 74 3D [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 C9 74 00 80 00 00 00 68 0E 3A [11:13:58]RasterBufferAndPrint [11:13:58]line [11:13:58]line [11:13:58]line [11:13:58]line [11:13:58]line [11:13:58]written 0, free lines is 3693 [11:13:58]process_action print_text done [11:13:58]requested_data is exist [11:13:58]produce_requested_data [11:13:58]requested_item fm.sn is exist - process it [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 11 00 00 [11:13:58]Write to MH i2c: E2 08 00 D0 74 80 11 00 00 00 00 00 00 BE [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 17 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 17 00 D0 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [11:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:13:59]wFMCommunicate OK [11:13:59]requested_item fd.num is exist - process it [11:13:59]SAM_PROTO_GetFieldsCounters [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 13 00 00 [11:13:59]Write to MH i2c: E2 08 00 D1 74 80 13 00 00 00 00 00 00 C1 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 62 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 62 00 D1 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 97 74 01 00 0E 04 04 00 48 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 1D [11:13:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 97 74 01 00 0E 04 04 00 48 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 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_GetFieldsCounters done [11:13:59]requested_item shift.num is exist - process it [11:13:59]requested_item shift.opened is exist - process it [11:13:59]req_shift_opened [11:13:59]FM_GetShiftState [11:13:59]SAM_PROTO_GetShiftState [11:13:59]wFMCommunicate request_size=4 [11:13:59]MH_SAM_APDU [11:13:59]CAPDU: 80 13 01 00 [11:13:59]Write to MH i2c: E2 08 00 D2 74 80 13 01 00 00 00 00 00 C3 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:59]Read from MH i2c: E2 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0E 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: E2 0E 00 D2 74 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A8 [11:13:59]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:13:59]wFMCommunicate OK [11:13:59]SAM_PROTO_GetShiftState done [11:13:59]FM_GetShiftState done [11:13:59]req_shift_opened done [11:13:59]requested_item shift.open_date is exist - process it [11:13:59]req_shift_open_date [11:13:59]req_shift_open_date done [11:13:59]produce_requested_data done [11:13:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95383,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:13:59]process_action_free print_text [11:13:59]json_value_free [11:13:59]json_value_free done [11:13:59]process_json_proto returns [11:13:59]Send response to host [11:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95383,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:13:59]free response buf [11:13:59]execute_script done [11:13:59]execute_script returns [11:13:59]free content buf [11:13:59]Sock 8.Close socket [11:13:59]Sock 8.Thread stoped [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:39]OFD Sender: No OFD packet to send [11:17:44]OFD Sender: No OFD packet to send [11:17:49]OFD Sender: No OFD packet to send [11:17:54]OFD Sender: No OFD packet to send [11:17:59]OFD Sender: No OFD packet to send [11:18:04]OFD Sender: No OFD packet to send [11:18:09]OFD Sender: No OFD packet to send [11:18:14]OFD Sender: No OFD packet to send [11:18:19]OFD Sender: No OFD packet to send [11:18:24]OFD Sender: No OFD packet to send [11:18:29]OFD Sender: No OFD packet to send [11:18:34]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]accept exits with 9 [11:21:00]New connection [11:21:00]New thread 3066813796 created [11:21:00]Thread 3066957156 joined [11:21:00]Waiting for new connection... [11:21:00] Sock 9.Parse request [11:21:00]Sock 9.Check first char [11:21:00]Sock 9.First char is OK [11:21:00]request: POST /json_proto HTTP/1.0 [11:21:00]Method: POST [11:21:00]URL: /json_proto [11:21:00]Method is POST - this is cgi request [11:21:00]url: /json_proto [11:21:00]query_string will be loaded in cgi processing [11:21:00]execute_cgi json_proto POST (null) [11:21:00]execute_cgi path=json_proto method=POST [11:21:00]POST find Content-Length [11:21:00]Host: 172.17.62.67:8080 [11:21:00]Content-Length: 677 [11:21:00]Content-Type: application/json [11:21:00] [11:21:00]POST finish read [11:21:00]Found Content-Length = 677 [11:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196371", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:00]execute_script... [11:21: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)196371", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:00]POST & json_proto [11:21:00]process_json_proto [11:21:00]json parsed OK: [11:21:00]protocol is kg_v1.0 [11:21:00]action value=close_receipt [11:21:00]process_action close_receipt [11:21:00]cmd_close_receipt [11:21:00]MH_GetDate [11:21:00]Write to MH i2c: F0 00 00 D3 74 36 [11:21:00]OFD Sender: No OFD packet to send [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 05 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: F0 05 00 D3 74 00 26 8C F1 65 43 [11:21:00]GetLastDocTimeStamp 1710328322 [11:21:00]current date 1710328870 [11:21:00]FM_GetShiftState [11:21:00]SAM_PROTO_GetShiftState [11:21:00]wFMCommunicate request_size=4 [11:21:00]MH_SAM_APDU [11:21:00]CAPDU: 80 13 01 00 [11:21:00]Write to MH i2c: E2 08 00 D4 74 80 13 01 00 00 00 00 00 C5 [11:21:00]Write i2c OK [11:21:00]MH_I2C_Read... [11:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:00]Read from MH i2c: E2 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 [11:21:00]MH_I2C_Read... [11:21:00]Read from MH i2c: E2 0E 00 D4 74 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 AA [11:21:00]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:21:00]wFMCommunicate OK [11:21:00]SAM_PROTO_GetShiftState done [11:21:00]FM_GetShiftState done [11:21:00]opened in 1710288279 [11:21:00]opened+sec_in_day 1710374679 [11:21:00]quantity*price = 40004 [11:21:00]sum+1 = 40005 [11:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 79 13.03.2024 11:21 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95384 ФПД: 197518466773999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T112110&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95384&fm=197518466773999&tin=02508201610067®Number=0000000000090555&sum=40000 [11:21:01]StoreToDocumentArchive [11:21:01]shift 328 fd 95384 [11:21:01]save to /storage/0328/doc_00095384 [11:21:01]save last doc name /storage/0328/doc_00095384 to /storage/kkm_last_doc_name [11:21:01]save OK [11:21:01]Clear old archive folders... [11:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:01]tlvbuf is 01A45CD0 [11:21:01]SAM_PROTO_ClearQueue [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 09 00 00 [11:21:01]Write to MH i2c: E2 08 00 E1 74 80 09 00 00 00 00 00 00 C7 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 E1 74 00 90 00 C9 [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_ClearQueue done [11:21:01]KKMCreateOFDPacket [11:21:01]OFDProtocolAddRootSTLVToBuf [11:21:01]FM_MakeSignedData [11:21:01]FM_MakeSignedData [11:21:01]SAM_PROTO_SignData [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 01 02 [11:21:01]Write to MH i2c: E2 08 00 E2 74 80 0D 01 02 00 00 00 00 CF [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 E2 74 00 90 00 CA [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]wFMCommunicate request_size=255 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 26 8C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 74 01 00 35 04 06 00 B3 [11:21:01]Write to MH i2c: E2 02 01 E3 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 26 8C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 74 01 00 35 04 06 00 B3 00 00 72 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 E3 74 00 90 00 CB [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]wFMCommunicate request_size=10 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 02 02 05 A4 5A 0C 73 EF [11:21:01]Write to MH i2c: E2 0D 00 E4 74 80 0D 02 02 05 00 A4 5A 0C 73 EF 00 00 48 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 03 00 E4 74 00 90 00 CC [11:21:01]RAPDU: 90 00 [11:21:01]wFMCommunicate OK [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 0D 03 02 [11:21:01]Write to MH i2c: E2 08 00 E5 74 80 0D 03 02 00 00 00 00 D4 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0B 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0B 00 E5 74 00 82 FF 73 60 A1 3D 7F D5 90 00 5B [11:21:01]RAPDU: 82 FF 73 60 A1 3D 7F D5 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_SignData done [11:21:01]FM_MakeSignedData done [11:21:01]CreateOFDProtocolMessage [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 11 00 00 [11:21:01]Write to MH i2c: E2 08 00 E6 74 80 11 00 00 00 00 00 00 D4 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 17 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 17 00 E6 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [11:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:21:01]wFMCommunicate OK [11:21:01]CreateOFDProtocolMessage done [11:21:01]OFDSenderStorePacket 95384 [11:21:01]StoreOFDPacket docnum=95384 [11:21:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CD 94 07 01 74 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 26 8C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 74 01 00 35 04 06 00 B3 A4 5A 0C 73 EF 82 FF 73 60 A1 3D 7F D5 [11:21:01]CheckFolder [11:21:01]dirname=/storage/ofd_packets [11:21:01]CheckFolder done [11:21:01]ProducePacketName [11:21:01]name=ofd_packets/00095384 [11:21:01]NVStorageSaveData ofd_packets/00095384 [11:21:01]File name is /storage/ofd_packets/00095384 [11:21:01]Write 301 bytes [11:21:01]NVStorageSaveData done [11:21:01]OFDSenderStorePacket done [11:21:01]KKMCreateOFDPacket done [11:21:01]NVStorageSaveData kkm_last_timestamp [11:21:01]File name is /storage/kkm_last_timestamp [11:21:01]Write 4 bytes [11:21:01]NVStorageSaveData done [11:21:01]ExternCall_PrintAddStr [11:21:01]wPrintStart [11:21:01]Write to MH i2c: 01 00 00 E7 74 5B [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 E7 74 00 80 00 00 00 FF 0F F0 [11:21:01]RasterBufferAndPrint [11:21:01]line Счет N : (1)196371 [11:21:01]line ИНН: 02508201610067 [11:21:01]line Контрольно-Кассовый Чек [11:21:01]line ПРОДАЖА [11:21:01]line ТРК (МРК, ГНК) : 22 [11:21:01]line Товар: 2710124130 [11:21:01]line Аи-92-К-5 [11:21:01]line 6.360 * 62.90 [11:21:01]line = 400.04 [11:21:01]line НДС 12% НСП 1% [11:21:01]line > о реализуемом товаре [11:21:01]line ОКРУГЛЕНИЕ: -0.04 [11:21:01]line ИТОГО: 400.00 [11:21:01]line Внесено: 400.00 [11:21:01]line СДАЧА: 0.00 [11:21:01]line НСП 1% : 3.54 [11:21:01]line НДС 12% : 42.48 [11:21:01]line Наличными: 400.00 [11:21:01]line Безнал.: 0.00 [11:21:01]line Место: АЗС № 6 "Партнер Нефть" [11:21:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:21:01]line СНО: Общий режим [11:21:01]line Чек 79 13.03.2024 11:21 [11:21:01]line Смена: 328 ФФД: 1.0 [11:21:01]line ЗНМ: 0300000009 [11:21:01]line РНМ: 0000000000090555 [11:21:01]line Версия ККМ: 001 [11:21:01]line ФМ: 0000000000874811 [11:21:01]line ФД: 95384 [11:21:01]line ФПД: 197518466773999 [11:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T112110&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95384&fm=197518466773999&tin=02508201610067®Number=0000000000090555&sum=40000 [11:21:02]OFD Sender: Processing packet 95384 [packets to send 30, broken 29] [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00095384 [11:21:02]OFD Sender: To server: pG, [11:21:02]CommunicateWithHost lk.salyk.kg:30040 [11:21:02]ConnectInit lk.salyk.kg [11:21:02]written 0, free lines is 4095 [11:21:02]Connected sock=10 [11:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CD 94 07 01 74 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 26 8C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 74 01 00 35 04 06 00 B3 A4 5A 0C 73 EF 82 FF 73 60 A1 3D 7F D5 [11:21:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 93 06 47 00 E2 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 98 74 01 00 F4 03 04 00 79 37 F1 65 B6 04 01 00 00 8B 71 76 D0 23 B0 DE 23 [11:21:02]CommunicateWithHost err = 0 [11:21:02]CheckOFDResponse [11:21:02]1017 (14) - 77093643461234 [11:21:02]1041 (16) - 0000000000874811 [11:21:02]1040 (4) - 95384 [11:21:02]1012 (4) - 13.03.2024 05:19 [11:21:02]1206 (1) - 0 [11:21:02]OFD Sender: Remove packet 95384 [11:21:02]ProducePacketName [11:21:02]name=ofd_packets/00095384 [11:21:02]NVStorageDeleteData [11:21:02]Write to MH i2c: 01 00 00 12 75 87 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: 01 07 00 12 75 00 80 00 00 00 47 0D 62 [11:21:02]RasterBufferAndPrint [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]line [11:21:02]written 0, free lines is 3405 [11:21:02]process_action close_receipt done [11:21:02]requested_data is exist [11:21:02]produce_requested_data [11:21:02]requested_item fm.sn is exist - process it [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 11 00 00 [11:21:02]Write to MH i2c: E2 08 00 19 75 80 11 00 00 00 00 00 00 08 [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 17 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 17 00 19 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 58 [11:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:21:02]wFMCommunicate OK [11:21:02]requested_item fd.num is exist - process it [11:21:02]SAM_PROTO_GetFieldsCounters [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 13 00 00 [11:21:02]Write to MH i2c: E2 08 00 1A 75 80 13 00 00 00 00 00 00 0B [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 62 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 62 00 1A 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 98 74 01 00 0E 04 04 00 48 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 6B [11:21:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 98 74 01 00 0E 04 04 00 48 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 [11:21:02]wFMCommunicate OK [11:21:02]SAM_PROTO_GetFieldsCounters done [11:21:02]requested_item shift.num is exist - process it [11:21:02]requested_item shift.opened is exist - process it [11:21:02]req_shift_opened [11:21:02]FM_GetShiftState [11:21:02]SAM_PROTO_GetShiftState [11:21:02]wFMCommunicate request_size=4 [11:21:02]MH_SAM_APDU [11:21:02]CAPDU: 80 13 01 00 [11:21:02]Write to MH i2c: E2 08 00 1B 75 80 13 01 00 00 00 00 00 0D [11:21:02]Write i2c OK [11:21:02]MH_I2C_Read... [11:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:02]Read from MH i2c: E2 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 0E 00 [11:21:02]MH_I2C_Read... [11:21:02]Read from MH i2c: E2 0E 00 1B 75 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F2 [11:21:02]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:21:02]wFMCommunicate OK [11:21:02]SAM_PROTO_GetShiftState done [11:21:02]FM_GetShiftState done [11:21:02]req_shift_opened done [11:21:02]requested_item shift.open_date is exist - process it [11:21:02]req_shift_open_date [11:21:02]req_shift_open_date done [11:21:02]produce_requested_data done [11:21:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95384,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:21:02]process_action_free close_receipt [11:21:02]json_value_free [11:21:02]json_value_free done [11:21:02]process_json_proto returns [11:21:02]Send response to host [11:21:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95384,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:21:02]free response buf [11:21:02]execute_script done [11:21:02]execute_script returns [11:21:02]free content buf [11:21:02]Sock 9.Close socket [11:21:02]Sock 9.Thread stoped [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:28]accept exits with 8 [11:24:28]New connection [11:24:28]New thread 3066957156 created [11:24:28]Thread 3066813796 joined [11:24:28]Waiting for new connection... [11:24:28] Sock 8.Parse request [11:24:28]Sock 8.Check first char [11:24:28]Sock 8.First char is OK [11:24:28]request: POST /json_proto HTTP/1.0 [11:24:28]Method: POST [11:24:28]URL: /json_proto [11:24:28]Method is POST - this is cgi request [11:24:28]url: /json_proto [11:24:28]query_string will be loaded in cgi processing [11:24:28]execute_cgi json_proto POST (null) [11:24:28]execute_cgi path=json_proto method=POST [11:24:28]POST find Content-Length [11:24:28]Host: 172.17.62.67:8080 [11:24:28]Content-Length: 677 [11:24:28]Content-Type: application/json [11:24:28] [11:24:28]POST finish read [11:24:28]Found Content-Length = 677 [11:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196372", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:28]execute_script... [11:24:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196372", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:28]POST & json_proto [11:24:28]process_json_proto [11:24:28]json parsed OK: [11:24:28]protocol is kg_v1.0 [11:24:28]action value=close_receipt [11:24:28]process_action close_receipt [11:24:28]cmd_close_receipt [11:24:28]MH_GetDate [11:24:28]Write to MH i2c: F0 00 00 1C 75 80 [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: F0 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: F0 05 00 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: F0 05 00 1C 75 00 F7 8C F1 65 5E [11:24:28]GetLastDocTimeStamp 1710328870 [11:24:28]current date 1710329079 [11:24:28]FM_GetShiftState [11:24:28]SAM_PROTO_GetShiftState [11:24:28]wFMCommunicate request_size=4 [11:24:28]MH_SAM_APDU [11:24:28]CAPDU: 80 13 01 00 [11:24:28]Write to MH i2c: E2 08 00 1D 75 80 13 01 00 00 00 00 00 0F [11:24:28]Write i2c OK [11:24:28]MH_I2C_Read... [11:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:28]Read from MH i2c: E2 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: E2 0E 00 [11:24:28]MH_I2C_Read... [11:24:28]Read from MH i2c: E2 0E 00 1D 75 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F4 [11:24:28]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:24:28]wFMCommunicate OK [11:24:28]SAM_PROTO_GetShiftState done [11:24:28]FM_GetShiftState done [11:24:28]opened in 1710288279 [11:24:28]opened+sec_in_day 1710374679 [11:24:28]quantity*price = 40004 [11:24:28]sum+1 = 40005 [11:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 80 13.03.2024 11:24 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95385 ФПД: 210654634110644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T112439&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95385&fm=210654634110644&tin=02508201610067®Number=0000000000090555&sum=40000 [11:24:29]StoreToDocumentArchive [11:24:29]shift 328 fd 95385 [11:24:29]save to /storage/0328/doc_00095385 [11:24:29]save last doc name /storage/0328/doc_00095385 to /storage/kkm_last_doc_name [11:24:29]save OK [11:24:29]Clear old archive folders... [11:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:30]tlvbuf is 01C31B50 [11:24:30]SAM_PROTO_ClearQueue [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 09 00 00 [11:24:30]Write to MH i2c: E2 08 00 2A 75 80 09 00 00 00 00 00 00 11 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:30]Read from MH i2c: E2 03 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 2A 75 00 90 00 13 [11:24:30]RAPDU: 90 00 [11:24:30]wFMCommunicate OK [11:24:30]SAM_PROTO_ClearQueue done [11:24:30]KKMCreateOFDPacket [11:24:30]OFDProtocolAddRootSTLVToBuf [11:24:30]FM_MakeSignedData [11:24:30]FM_MakeSignedData [11:24:30]SAM_PROTO_SignData [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 0D 01 02 [11:24:30]Write to MH i2c: E2 08 00 2B 75 80 0D 01 02 00 00 00 00 19 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 2B 75 00 90 00 14 [11:24:30]RAPDU: 90 00 [11:24:30]wFMCommunicate OK [11:24:30]wFMCommunicate request_size=255 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F7 8C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 74 01 00 35 04 06 00 BF [11:24:30]Write to MH i2c: E2 02 01 2C 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F7 8C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 74 01 00 35 04 06 00 BF 00 00 9B [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 2C 75 00 90 00 15 [11:24:30]RAPDU: 90 00 [11:24:30]wFMCommunicate OK [11:24:30]wFMCommunicate request_size=10 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 0D 02 02 05 96 DA A2 EE B4 [11:24:30]Write to MH i2c: E2 0D 00 2D 75 80 0D 02 02 05 00 96 DA A2 EE B4 00 00 DA [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 03 00 2D 75 00 90 00 16 [11:24:30]RAPDU: 90 00 [11:24:30]wFMCommunicate OK [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 0D 03 02 [11:24:30]Write to MH i2c: E2 08 00 2E 75 80 0D 03 02 00 00 00 00 1E [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 0B 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 0B 00 2E 75 00 21 3D 1B 34 E8 FE 6E EA 90 00 0A [11:24:30]RAPDU: 21 3D 1B 34 E8 FE 6E EA 90 00 [11:24:30]wFMCommunicate OK [11:24:30]SAM_PROTO_SignData done [11:24:30]FM_MakeSignedData done [11:24:30]CreateOFDProtocolMessage [11:24:30]wFMCommunicate request_size=4 [11:24:30]MH_SAM_APDU [11:24:30]CAPDU: 80 11 00 00 [11:24:30]Write to MH i2c: E2 08 00 2F 75 80 11 00 00 00 00 00 00 1E [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:30]Read from MH i2c: E2 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 17 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: E2 17 00 2F 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6E [11:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:24:30]wFMCommunicate OK [11:24:30]CreateOFDProtocolMessage done [11:24:30]OFDSenderStorePacket 95385 [11:24:30]StoreOFDPacket docnum=95385 [11:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0E 5D 07 01 9E 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F7 8C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 74 01 00 35 04 06 00 BF 96 DA A2 EE B4 21 3D 1B 34 E8 FE 6E EA [11:24:30]CheckFolder [11:24:30]dirname=/storage/ofd_packets [11:24:30]CheckFolder done [11:24:30]ProducePacketName [11:24:30]name=ofd_packets/00095385 [11:24:30]NVStorageSaveData ofd_packets/00095385 [11:24:30]File name is /storage/ofd_packets/00095385 [11:24:30]Write 301 bytes [11:24:30]NVStorageSaveData done [11:24:30]OFDSenderStorePacket done [11:24:30]KKMCreateOFDPacket done [11:24:30]NVStorageSaveData kkm_last_timestamp [11:24:30]File name is /storage/kkm_last_timestamp [11:24:30]Write 4 bytes [11:24:30]NVStorageSaveData done [11:24:30]ExternCall_PrintAddStr [11:24:30]wPrintStart [11:24:30]Write to MH i2c: 01 00 00 30 75 A5 [11:24:30]Write i2c OK [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: 01 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: 01 07 00 [11:24:30]MH_I2C_Read... [11:24:30]Read from MH i2c: 01 07 00 30 75 00 80 00 00 00 FF 0F 3A [11:24:30]RasterBufferAndPrint [11:24:30]line Счет N : (1)196372 [11:24:30]line ИНН: 02508201610067 [11:24:30]line Контрольно-Кассовый Чек [11:24:30]line ПРОДАЖА [11:24:30]line ТРК (МРК, ГНК) : 22 [11:24:30]line Товар: 2710124130 [11:24:30]line Аи-92-К-5 [11:24:30]line 6.360 * 62.90 [11:24:30]line = 400.04 [11:24:30]line НДС 12% НСП 1% [11:24:30]line > о реализуемом товаре [11:24:30]line ОКРУГЛЕНИЕ: -0.04 [11:24:30]line ИТОГО: 400.00 [11:24:30]line Внесено: 400.00 [11:24:30]line СДАЧА: 0.00 [11:24:30]line НСП 1% : 3.54 [11:24:30]line НДС 12% : 42.48 [11:24:30]line Наличными: 400.00 [11:24:30]line Безнал.: 0.00 [11:24:30]line Место: АЗС № 6 "Партнер Нефть" [11:24:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:24:30]line СНО: Общий режим [11:24:30]line Чек 80 13.03.2024 11:24 [11:24:30]line Смена: 328 ФФД: 1.0 [11:24:30]line ЗНМ: 0300000009 [11:24:30]line РНМ: 0000000000090555 [11:24:30]line Версия ККМ: 001 [11:24:30]line ФМ: 0000000000874811 [11:24:30]line ФД: 95385 [11:24:30]line ФПД: 210654634110644 [11:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T112439&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95385&fm=210654634110644&tin=02508201610067®Number=0000000000090555&sum=40000 [11:24:30]OFD Sender: Processing packet 95385 [packets to send 30, broken 29] [11:24:30]ProducePacketName [11:24:30]name=ofd_packets/00095385 [11:24:30]OFD Sender: To server: pG, [11:24:30]CommunicateWithHost lk.salyk.kg:30040 [11:24:30]ConnectInit lk.salyk.kg [11:24:30]written 0, free lines is 4095 [11:24:30]Connected sock=10 [11:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0E 5D 07 01 9E 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F7 8C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 74 01 00 35 04 06 00 BF 96 DA A2 EE B4 21 3D 1B 34 E8 FE 6E EA [11:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 CF 77 47 00 79 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 99 74 01 00 F4 03 04 00 4A 38 F1 65 B6 04 01 00 00 E0 08 3D 29 1D 3B E8 19 [11:24:31]CommunicateWithHost err = 0 [11:24:31]CheckOFDResponse [11:24:31]1017 (14) - 77093643461234 [11:24:31]1041 (16) - 0000000000874811 [11:24:31]1040 (4) - 95385 [11:24:31]1012 (4) - 13.03.2024 05:23 [11:24:31]1206 (1) - 0 [11:24:31]OFD Sender: Remove packet 95385 [11:24:31]ProducePacketName [11:24:31]name=ofd_packets/00095385 [11:24:31]NVStorageDeleteData [11:24:31]Write to MH i2c: 01 00 00 5B 75 D0 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 07 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: 01 07 00 5B 75 00 80 00 00 00 5B 0D BF [11:24:31]RasterBufferAndPrint [11:24:31]line [11:24:31]line [11:24:31]line [11:24:31]line [11:24:31]line [11:24:31]written 0, free lines is 3427 [11:24:31]process_action close_receipt done [11:24:31]requested_data is exist [11:24:31]produce_requested_data [11:24:31]requested_item fm.sn is exist - process it [11:24:31]wFMCommunicate request_size=4 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 11 00 00 [11:24:31]Write to MH i2c: E2 08 00 62 75 80 11 00 00 00 00 00 00 51 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 17 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 17 00 62 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A1 [11:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:24:31]wFMCommunicate OK [11:24:31]requested_item fd.num is exist - process it [11:24:31]SAM_PROTO_GetFieldsCounters [11:24:31]wFMCommunicate request_size=4 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 13 00 00 [11:24:31]Write to MH i2c: E2 08 00 63 75 80 13 00 00 00 00 00 00 54 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:31]Read from MH i2c: E2 62 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 62 00 63 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 99 74 01 00 0E 04 04 00 48 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 B8 [11:24:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 99 74 01 00 0E 04 04 00 48 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 [11:24:31]wFMCommunicate OK [11:24:31]SAM_PROTO_GetFieldsCounters done [11:24:31]requested_item shift.num is exist - process it [11:24:31]requested_item shift.opened is exist - process it [11:24:31]req_shift_opened [11:24:31]FM_GetShiftState [11:24:31]SAM_PROTO_GetShiftState [11:24:31]wFMCommunicate request_size=4 [11:24:31]MH_SAM_APDU [11:24:31]CAPDU: 80 13 01 00 [11:24:31]Write to MH i2c: E2 08 00 64 75 80 13 01 00 00 00 00 00 56 [11:24:31]Write i2c OK [11:24:31]MH_I2C_Read... [11:24:31]OFD Sender: No OFD packet to send [11:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:31]Read from MH i2c: E2 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 0E 00 [11:24:31]MH_I2C_Read... [11:24:31]Read from MH i2c: E2 0E 00 64 75 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3B [11:24:31]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:24:31]wFMCommunicate OK [11:24:31]SAM_PROTO_GetShiftState done [11:24:31]FM_GetShiftState done [11:24:31]req_shift_opened done [11:24:31]requested_item shift.open_date is exist - process it [11:24:31]req_shift_open_date [11:24:31]req_shift_open_date done [11:24:31]produce_requested_data done [11:24:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95385,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:24:31]process_action_free close_receipt [11:24:31]json_value_free [11:24:31]json_value_free done [11:24:31]process_json_proto returns [11:24:31]Send response to host [11:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95385,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:24:31]free response buf [11:24:31]execute_script done [11:24:31]execute_script returns [11:24:31]free content buf [11:24:31]Sock 8.Close socket [11:24:31]Sock 8.Thread stoped [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:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31: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:39]accept exits with 9 [11:32:39]New connection [11:32:39]New thread 3066813796 created [11:32:39]Thread 3066957156 joined [11:32:39]Waiting for new connection... [11:32:39] Sock 9.Parse request [11:32:39]Sock 9.Check first char [11:32:39]Sock 9.First char is OK [11:32:39]request: POST /json_proto HTTP/1.0 [11:32:39]Method: POST [11:32:39]URL: /json_proto [11:32:39]Method is POST - this is cgi request [11:32:39]url: /json_proto [11:32:39]query_string will be loaded in cgi processing [11:32:39]execute_cgi json_proto POST (null) [11:32:39]execute_cgi path=json_proto method=POST [11:32:39]POST find Content-Length [11:32:39]Host: 172.17.62.67:8080 [11:32:39]Content-Length: 682 [11:32:39]Content-Type: application/json [11:32:39] [11:32:39]POST finish read [11:32:39]Found Content-Length = 682 [11:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:39]execute_script... [11:32:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:39]POST & json_proto [11:32:39]process_json_proto [11:32:39]json parsed OK: [11:32:39]protocol is kg_v1.0 [11:32:39]action value=close_receipt [11:32:39]process_action close_receipt [11:32:39]cmd_close_receipt [11:32:39]MH_GetDate [11:32:39]Write to MH i2c: F0 00 00 65 75 C9 [11:32:39]Write i2c OK [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: F0 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: F0 05 00 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: F0 05 00 65 75 00 E1 8E F1 65 93 [11:32:39]GetLastDocTimeStamp 1710329079 [11:32:39]current date 1710329569 [11:32:39]FM_GetShiftState [11:32:39]SAM_PROTO_GetShiftState [11:32:39]wFMCommunicate request_size=4 [11:32:39]MH_SAM_APDU [11:32:39]CAPDU: 80 13 01 00 [11:32:39]Write to MH i2c: E2 08 00 66 75 80 13 01 00 00 00 00 00 58 [11:32:39]Write i2c OK [11:32:39]MH_I2C_Read... [11:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:39]Read from MH i2c: E2 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 0E 00 [11:32:39]MH_I2C_Read... [11:32:39]Read from MH i2c: E2 0E 00 66 75 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3D [11:32:39]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:32:39]wFMCommunicate OK [11:32:39]SAM_PROTO_GetShiftState done [11:32:39]FM_GetShiftState done [11:32:39]opened in 1710288279 [11:32:39]opened+sec_in_day 1710374679 [11:32:39]quantity*price = 100010 [11:32:39]sum+1 = 100012 [11:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 81 13.03.2024 11:32 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95386 ФПД: 176530395273047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T113249&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95386&fm=176530395273047&tin=02508201610067®Number=0000000000090555&sum=100000 [11:32:40]StoreToDocumentArchive [11:32:40]shift 328 fd 95386 [11:32:40]save to /storage/0328/doc_00095386 [11:32:40]save last doc name /storage/0328/doc_00095386 to /storage/kkm_last_doc_name [11:32:40]save OK [11:32:40]Clear old archive folders... [11:32:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:40]tlvbuf is 01A25870 [11:32:40]SAM_PROTO_ClearQueue [11:32:40]wFMCommunicate request_size=4 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 09 00 00 [11:32:40]Write to MH i2c: E2 08 00 73 75 80 09 00 00 00 00 00 00 5A [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:40]Read from MH i2c: E2 03 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 73 75 00 90 00 5C [11:32:40]RAPDU: 90 00 [11:32:40]wFMCommunicate OK [11:32:40]SAM_PROTO_ClearQueue done [11:32:40]KKMCreateOFDPacket [11:32:40]OFDProtocolAddRootSTLVToBuf [11:32:40]FM_MakeSignedData [11:32:40]FM_MakeSignedData [11:32:40]SAM_PROTO_SignData [11:32:40]wFMCommunicate request_size=4 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 0D 01 02 [11:32:40]Write to MH i2c: E2 08 00 74 75 80 0D 01 02 00 00 00 00 62 [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 74 75 00 90 00 5D [11:32:40]RAPDU: 90 00 [11:32:40]wFMCommunicate OK [11:32:40]wFMCommunicate request_size=255 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 51 00 00 00 F4 03 04 00 E1 8E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 74 01 00 35 04 06 00 A0 [11:32:40]Write to MH i2c: E2 02 01 75 75 80 0D 02 02 FA 00 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 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 51 00 00 00 F4 03 04 00 E1 8E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 74 01 00 35 04 06 00 A0 00 00 C7 [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 75 75 00 90 00 5E [11:32:40]RAPDU: 90 00 [11:32:40]wFMCommunicate OK [11:32:40]wFMCommunicate request_size=10 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 0D 02 02 05 8D AF 80 97 57 [11:32:40]Write to MH i2c: E2 0D 00 76 75 80 0D 02 02 05 00 8D AF 80 97 57 00 00 19 [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 03 00 76 75 00 90 00 5F [11:32:40]RAPDU: 90 00 [11:32:40]wFMCommunicate OK [11:32:40]wFMCommunicate request_size=4 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 0D 03 02 [11:32:40]Write to MH i2c: E2 08 00 77 75 80 0D 03 02 00 00 00 00 67 [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 0B 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 0B 00 77 75 00 45 A4 A0 BF 55 F5 87 3E 90 00 BF [11:32:40]RAPDU: 45 A4 A0 BF 55 F5 87 3E 90 00 [11:32:40]wFMCommunicate OK [11:32:40]SAM_PROTO_SignData done [11:32:40]FM_MakeSignedData done [11:32:40]CreateOFDProtocolMessage [11:32:40]wFMCommunicate request_size=4 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 11 00 00 [11:32:40]Write to MH i2c: E2 08 00 78 75 80 11 00 00 00 00 00 00 67 [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 17 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 17 00 78 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B7 [11:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:32:40]wFMCommunicate OK [11:32:40]CreateOFDProtocolMessage done [11:32:40]OFDSenderStorePacket 95386 [11:32:40]StoreOFDPacket docnum=95386 [11:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CE EF 07 01 76 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 51 00 00 00 F4 03 04 00 E1 8E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 74 01 00 35 04 06 00 A0 8D AF 80 97 57 45 A4 A0 BF 55 F5 87 3E [11:32:40]CheckFolder [11:32:40]dirname=/storage/ofd_packets [11:32:40]CheckFolder done [11:32:40]ProducePacketName [11:32:40]name=ofd_packets/00095386 [11:32:40]NVStorageSaveData ofd_packets/00095386 [11:32:40]File name is /storage/ofd_packets/00095386 [11:32:40]Write 301 bytes [11:32:40]NVStorageSaveData done [11:32:40]OFDSenderStorePacket done [11:32:40]KKMCreateOFDPacket done [11:32:40]NVStorageSaveData kkm_last_timestamp [11:32:40]File name is /storage/kkm_last_timestamp [11:32:40]Write 4 bytes [11:32:40]NVStorageSaveData done [11:32:40]ExternCall_PrintAddStr [11:32:40]wPrintStart [11:32:40]Write to MH i2c: 01 00 00 79 75 EE [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: 01 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: 01 07 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: 01 07 00 79 75 00 80 00 00 00 FF 0F 83 [11:32:40]RasterBufferAndPrint [11:32:40]line Счет N : (1)196373 [11:32:40]line ИНН: 02508201610067 [11:32:40]line Контрольно-Кассовый Чек [11:32:40]line ПРОДАЖА [11:32:40]line ТРК (МРК, ГНК) : 41 [11:32:40]line Товар: 2710124500 [11:32:40]line Аи-95-К-5 [11:32:40]line 14.390 * 69.50 [11:32:40]line = 1000.11 [11:32:40]line НДС 12% НСП 1% [11:32:40]line > о реализуемом товаре [11:32:40]line ОКРУГЛЕНИЕ: -0.11 [11:32:40]line ИТОГО: 1000.00 [11:32:40]line Внесено: 1000.00 [11:32:40]line СДАЧА: 0.00 [11:32:40]line НСП 1% : 8.85 [11:32:40]line НДС 12% : 106.21 [11:32:40]line Наличными: 1000.00 [11:32:40]line Безнал.: 0.00 [11:32:40]line Место: АЗС № 6 "Партнер Нефть" [11:32:40]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:32:40]line СНО: Общий режим [11:32:40]line Чек 81 13.03.2024 11:32 [11:32:40]line Смена: 328 ФФД: 1.0 [11:32:40]line ЗНМ: 0300000009 [11:32:40]line РНМ: 0000000000090555 [11:32:40]line Версия ККМ: 001 [11:32:40]line ФМ: 0000000000874811 [11:32:40]line ФД: 95386 [11:32:40]line ФПД: 176530395273047 [11:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T113249&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95386&fm=176530395273047&tin=02508201610067®Number=0000000000090555&sum=100000 [11:32:41]written 0, free lines is 4095 [11:32:41]OFD Sender: Processing packet 95386 [packets to send 30, broken 29] [11:32:41]ProducePacketName [11:32:41]name=ofd_packets/00095386 [11:32:41]OFD Sender: To server: pG, [11:32:41]CommunicateWithHost lk.salyk.kg:30040 [11:32:41]ConnectInit lk.salyk.kg [11:32:41]Connected sock=10 [11:32:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CE EF 07 01 76 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 51 00 00 00 F4 03 04 00 E1 8E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 74 01 00 35 04 06 00 A0 8D AF 80 97 57 45 A4 A0 BF 55 F5 87 3E [11:32:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7B B1 47 00 BC E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9A 74 01 00 F4 03 04 00 34 3A F1 65 B6 04 01 00 00 40 B3 86 8B DE 55 1C 96 [11:32:41]CommunicateWithHost err = 0 [11:32:41]CheckOFDResponse [11:32:41]1017 (14) - 77093643461234 [11:32:41]1041 (16) - 0000000000874811 [11:32:41]1040 (4) - 95386 [11:32:41]1012 (4) - 13.03.2024 05:31 [11:32:41]1206 (1) - 0 [11:32:41]OFD Sender: Remove packet 95386 [11:32:41]ProducePacketName [11:32:41]name=ofd_packets/00095386 [11:32:41]NVStorageDeleteData [11:32:41]Write to MH i2c: 01 00 00 A4 75 19 [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 07 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 07 00 A4 75 00 80 00 00 00 48 0D F5 [11:32:41]RasterBufferAndPrint [11:32:41]line [11:32:41]line [11:32:41]line [11:32:41]line [11:32:41]line [11:32:41]written 0, free lines is 3406 [11:32:41]process_action close_receipt done [11:32:41]requested_data is exist [11:32:41]produce_requested_data [11:32:41]requested_item fm.sn is exist - process it [11:32:41]wFMCommunicate request_size=4 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 11 00 00 [11:32:41]Write to MH i2c: E2 08 00 AB 75 80 11 00 00 00 00 00 00 9A [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:41]Read from MH i2c: E2 17 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 17 00 AB 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EA [11:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:32:41]wFMCommunicate OK [11:32:41]requested_item fd.num is exist - process it [11:32:41]SAM_PROTO_GetFieldsCounters [11:32:41]wFMCommunicate request_size=4 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 13 00 00 [11:32:41]Write to MH i2c: E2 08 00 AC 75 80 13 00 00 00 00 00 00 9D [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 62 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 62 00 AC 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9A 74 01 00 0E 04 04 00 48 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 05 [11:32:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9A 74 01 00 0E 04 04 00 48 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 [11:32:41]wFMCommunicate OK [11:32:41]SAM_PROTO_GetFieldsCounters done [11:32:41]requested_item shift.num is exist - process it [11:32:41]requested_item shift.opened is exist - process it [11:32:41]req_shift_opened [11:32:41]FM_GetShiftState [11:32:41]SAM_PROTO_GetShiftState [11:32:41]wFMCommunicate request_size=4 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 13 01 00 [11:32:41]Write to MH i2c: E2 08 00 AD 75 80 13 01 00 00 00 00 00 9F [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]OFD Sender: No OFD packet to send [11:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 0E 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 0E 00 AD 75 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 84 [11:32:41]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:32:41]wFMCommunicate OK [11:32:41]SAM_PROTO_GetShiftState done [11:32:41]FM_GetShiftState done [11:32:41]req_shift_opened done [11:32:41]requested_item shift.open_date is exist - process it [11:32:41]req_shift_open_date [11:32:41]req_shift_open_date done [11:32:41]produce_requested_data done [11:32:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95386,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:32:41]process_action_free close_receipt [11:32:41]json_value_free [11:32:41]json_value_free done [11:32:41]process_json_proto returns [11:32:41]Send response to host [11:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95386,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:32:41]free response buf [11:32:41]execute_script done [11:32:41]execute_script returns [11:32:41]free content buf [11:32:41]Sock 9.Close socket [11:32:41]Sock 9.Thread stoped [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34: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:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11: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:52]accept exits with 8 [11:42:52]New connection [11:42:52]New thread 3066957156 created [11:42:52]Thread 3066813796 joined [11:42:52]Waiting for new connection... [11:42:52] Sock 8.Parse request [11:42:52]Sock 8.Check first char [11:42:52]Sock 8.First char is OK [11:42:52]request: POST /json_proto HTTP/1.0 [11:42:52]Method: POST [11:42:52]URL: /json_proto [11:42:52]Method is POST - this is cgi request [11:42:52]url: /json_proto [11:42:52]query_string will be loaded in cgi processing [11:42:52]execute_cgi json_proto POST (null) [11:42:52]execute_cgi path=json_proto method=POST [11:42:52]POST find Content-Length [11:42:52]Host: 172.17.62.67:8080 [11:42:52]Content-Length: 682 [11:42:52]Content-Type: application/json [11:42:52] [11:42:52]POST finish read [11:42:52]Found Content-Length = 682 [11:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196374", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:52]execute_script... [11:42:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196374", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:52]POST & json_proto [11:42:52]process_json_proto [11:42:52]json parsed OK: [11:42:52]protocol is kg_v1.0 [11:42:52]action value=close_receipt [11:42:52]process_action close_receipt [11:42:52]cmd_close_receipt [11:42:52]MH_GetDate [11:42:52]Write to MH i2c: F0 00 00 AE 75 12 [11:42:52]Write i2c OK [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: F0 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: F0 05 00 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: F0 05 00 AE 75 00 47 91 F1 65 45 [11:42:52]GetLastDocTimeStamp 1710329569 [11:42:52]current date 1710330183 [11:42:52]FM_GetShiftState [11:42:52]SAM_PROTO_GetShiftState [11:42:52]wFMCommunicate request_size=4 [11:42:52]MH_SAM_APDU [11:42:52]CAPDU: 80 13 01 00 [11:42:52]Write to MH i2c: E2 08 00 AF 75 80 13 01 00 00 00 00 00 A1 [11:42:52]Write i2c OK [11:42:52]MH_I2C_Read... [11:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:52]Read from MH i2c: E2 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: E2 0E 00 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: E2 0E 00 AF 75 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 86 [11:42:52]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:42:52]wFMCommunicate OK [11:42:52]SAM_PROTO_GetShiftState done [11:42:52]FM_GetShiftState done [11:42:52]opened in 1710288279 [11:42:52]opened+sec_in_day 1710374679 [11:42:52]quantity*price = 100011 [11:42:52]sum+1 = 100012 [11:42:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 82 13.03.2024 11:43 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95387 ФПД: 149302604189000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T114303&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95387&fm=149302604189000&tin=02508201610067®Number=0000000000090555&sum=100000 [11:42:54]StoreToDocumentArchive [11:42:54]shift 328 fd 95387 [11:42:54]save to /storage/0328/doc_00095387 [11:42:54]save last doc name /storage/0328/doc_00095387 to /storage/kkm_last_doc_name [11:42:54]save OK [11:42:54]Clear old archive folders... [11:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:54]tlvbuf is 01A25810 [11:42:54]SAM_PROTO_ClearQueue [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 09 00 00 [11:42:54]Write to MH i2c: E2 08 00 BC 75 80 09 00 00 00 00 00 00 A3 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:54]Read from MH i2c: E2 03 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 BC 75 00 90 00 A5 [11:42:54]RAPDU: 90 00 [11:42:54]wFMCommunicate OK [11:42:54]SAM_PROTO_ClearQueue done [11:42:54]KKMCreateOFDPacket [11:42:54]OFDProtocolAddRootSTLVToBuf [11:42:54]FM_MakeSignedData [11:42:54]FM_MakeSignedData [11:42:54]SAM_PROTO_SignData [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 0D 01 02 [11:42:54]Write to MH i2c: E2 08 00 BD 75 80 0D 01 02 00 00 00 00 AB [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 BD 75 00 90 00 A6 [11:42:54]RAPDU: 90 00 [11:42:54]wFMCommunicate OK [11:42:54]wFMCommunicate request_size=255 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 47 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 74 01 00 35 04 06 00 87 [11:42:54]Write to MH i2c: E2 02 01 BE 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 47 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 74 01 00 35 04 06 00 87 00 00 B3 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 BE 75 00 90 00 A7 [11:42:54]RAPDU: 90 00 [11:42:54]wFMCommunicate OK [11:42:54]wFMCommunicate request_size=10 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 0D 02 02 05 CA 38 AF CD 48 [11:42:54]Write to MH i2c: E2 0D 00 BF 75 80 0D 02 02 05 00 CA 38 AF CD 48 00 00 7E [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 03 00 BF 75 00 90 00 A8 [11:42:54]RAPDU: 90 00 [11:42:54]wFMCommunicate OK [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 0D 03 02 [11:42:54]Write to MH i2c: E2 08 00 C0 75 80 0D 03 02 00 00 00 00 B0 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0B 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0B 00 C0 75 00 AC BB 22 56 E4 37 41 50 90 00 3C [11:42:54]RAPDU: AC BB 22 56 E4 37 41 50 90 00 [11:42:54]wFMCommunicate OK [11:42:54]SAM_PROTO_SignData done [11:42:54]FM_MakeSignedData done [11:42:54]CreateOFDProtocolMessage [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 11 00 00 [11:42:54]Write to MH i2c: E2 08 00 C1 75 80 11 00 00 00 00 00 00 B0 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 17 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 17 00 C1 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [11:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:42:54]wFMCommunicate OK [11:42:54]CreateOFDProtocolMessage done [11:42:54]OFDSenderStorePacket 95387 [11:42:54]StoreOFDPacket docnum=95387 [11:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AB E0 07 01 16 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 47 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 74 01 00 35 04 06 00 87 CA 38 AF CD 48 AC BB 22 56 E4 37 41 50 [11:42:54]CheckFolder [11:42:54]dirname=/storage/ofd_packets [11:42:54]CheckFolder done [11:42:54]ProducePacketName [11:42:54]name=ofd_packets/00095387 [11:42:54]NVStorageSaveData ofd_packets/00095387 [11:42:54]File name is /storage/ofd_packets/00095387 [11:42:54]Write 301 bytes [11:42:54]NVStorageSaveData done [11:42:54]OFDSenderStorePacket done [11:42:54]KKMCreateOFDPacket done [11:42:54]NVStorageSaveData kkm_last_timestamp [11:42:54]File name is /storage/kkm_last_timestamp [11:42:54]Write 4 bytes [11:42:54]NVStorageSaveData done [11:42:54]ExternCall_PrintAddStr [11:42:54]wPrintStart [11:42:54]Write to MH i2c: 01 00 00 C2 75 37 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 07 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 07 00 C2 75 00 80 00 00 00 FF 0F CC [11:42:54]RasterBufferAndPrint [11:42:54]line Счет N : (1)196374 [11:42:54]line ИНН: 02508201610067 [11:42:54]line Контрольно-Кассовый Чек [11:42:54]line ПРОДАЖА [11:42:54]line ТРК (МРК, ГНК) : 32 [11:42:54]line Товар: 2710124130 [11:42:54]line Аи-92-К-5 [11:42:54]line 15.900 * 62.90 [11:42:54]line = 1000.11 [11:42:54]line НДС 12% НСП 1% [11:42:54]line > о реализуемом товаре [11:42:54]line ОКРУГЛЕНИЕ: -0.11 [11:42:54]line ИТОГО: 1000.00 [11:42:54]line Внесено: 1000.00 [11:42:54]line СДАЧА: 0.00 [11:42:54]line НСП 1% : 8.85 [11:42:54]line НДС 12% : 106.21 [11:42:54]line Наличными: 1000.00 [11:42:54]line Безнал.: 0.00 [11:42:54]line Место: АЗС № 6 "Партнер Нефть" [11:42:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:42:54]line СНО: Общий режим [11:42:54]line Чек 82 13.03.2024 11:43 [11:42:54]line Смена: 328 ФФД: 1.0 [11:42:54]line ЗНМ: 0300000009 [11:42:54]line РНМ: 0000000000090555 [11:42:54]line Версия ККМ: 001 [11:42:54]line ФМ: 0000000000874811 [11:42:54]line ФД: 95387 [11:42:54]line ФПД: 149302604189000 [11:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T114303&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95387&fm=149302604189000&tin=02508201610067®Number=0000000000090555&sum=100000 [11:42:54]OFD Sender: Processing packet 95387 [packets to send 30, broken 29] [11:42:54]ProducePacketName [11:42:54]name=ofd_packets/00095387 [11:42:54]OFD Sender: To server: pG, [11:42:54]CommunicateWithHost lk.salyk.kg:30040 [11:42:54]ConnectInit lk.salyk.kg [11:42:54]written 0, free lines is 4095 [11:42:55]Connected sock=10 [11:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AB E0 07 01 16 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 47 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 74 01 00 35 04 06 00 87 CA 38 AF CD 48 AC BB 22 56 E4 37 41 50 [11:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A0 ED 47 00 25 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9B 74 01 00 F4 03 04 00 9A 3C F1 65 B6 04 01 00 00 A7 8D FE EA 9D EB B5 99 [11:42:55]CommunicateWithHost err = 0 [11:42:55]CheckOFDResponse [11:42:55]1017 (14) - 77093643461234 [11:42:55]1041 (16) - 0000000000874811 [11:42:55]1040 (4) - 95387 [11:42:55]1012 (4) - 13.03.2024 05:41 [11:42:55]1206 (1) - 0 [11:42:55]OFD Sender: Remove packet 95387 [11:42:55]ProducePacketName [11:42:55]name=ofd_packets/00095387 [11:42:55]NVStorageDeleteData [11:42:55]Write to MH i2c: 01 00 00 ED 75 62 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 07 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 07 00 ED 75 00 80 00 00 00 68 0D 5E [11:42:55]RasterBufferAndPrint [11:42:55]line [11:42:55]line [11:42:55]line [11:42:55]line [11:42:55]line [11:42:55]written 0, free lines is 3438 [11:42:55]process_action close_receipt done [11:42:55]requested_data is exist [11:42:55]produce_requested_data [11:42:55]requested_item fm.sn is exist - process it [11:42:55]wFMCommunicate request_size=4 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 11 00 00 [11:42:55]Write to MH i2c: E2 08 00 F4 75 80 11 00 00 00 00 00 00 E3 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 17 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 17 00 F4 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 33 [11:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:42:55]wFMCommunicate OK [11:42:55]requested_item fd.num is exist - process it [11:42:55]SAM_PROTO_GetFieldsCounters [11:42:55]wFMCommunicate request_size=4 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 13 00 00 [11:42:55]Write to MH i2c: E2 08 00 F5 75 80 13 00 00 00 00 00 00 E6 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 62 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 62 00 F5 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9B 74 01 00 0E 04 04 00 48 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 52 [11:42:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9B 74 01 00 0E 04 04 00 48 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 [11:42:55]wFMCommunicate OK [11:42:55]SAM_PROTO_GetFieldsCounters done [11:42:55]requested_item shift.num is exist - process it [11:42:55]requested_item shift.opened is exist - process it [11:42:55]req_shift_opened [11:42:55]FM_GetShiftState [11:42:55]SAM_PROTO_GetShiftState [11:42:55]wFMCommunicate request_size=4 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 13 01 00 [11:42:55]Write to MH i2c: E2 08 00 F6 75 80 13 01 00 00 00 00 00 E8 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 0E 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 0E 00 F6 75 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CD [11:42:55]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:42:55]wFMCommunicate OK [11:42:55]SAM_PROTO_GetShiftState done [11:42:55]FM_GetShiftState done [11:42:55]req_shift_opened done [11:42:55]requested_item shift.open_date is exist - process it [11:42:55]req_shift_open_date [11:42:55]req_shift_open_date done [11:42:55]produce_requested_data done [11:42:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95387,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:42:55]process_action_free close_receipt [11:42:55]json_value_free [11:42:55]json_value_free done [11:42:55]process_json_proto returns [11:42:55]Send response to host [11:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95387,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:42:55]free response buf [11:42:55]execute_script done [11:42:55]execute_script returns [11:42:55]free content buf [11:42:55]Sock 8.Close socket [11:42:55]Sock 8.Thread stoped [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:26]accept exits with 9 [11:44:26]New connection [11:44:26]New thread 3066813796 created [11:44:26]Thread 3066957156 joined [11:44:26]Waiting for new connection... [11:44:26] Sock 9.Parse request [11:44:26]Sock 9.Check first char [11:44:26]Sock 9.First char is OK [11:44:26]request: POST /json_proto HTTP/1.0 [11:44:26]Method: POST [11:44:26]URL: /json_proto [11:44:26]Method is POST - this is cgi request [11:44:26]url: /json_proto [11:44:26]query_string will be loaded in cgi processing [11:44:26]execute_cgi json_proto POST (null) [11:44:26]execute_cgi path=json_proto method=POST [11:44:26]POST find Content-Length [11:44:26]Host: 172.17.62.67:8080 [11:44:26]Content-Length: 679 [11:44:26]Content-Type: application/json [11:44:26] [11:44:26]POST finish read [11:44:26]Found Content-Length = 679 [11:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196375", "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" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:26]execute_script... [11:44:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196375", "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" : 70.90, "quantity" : 28.210, "sum" : 2000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:26]POST & json_proto [11:44:26]process_json_proto [11:44:26]json parsed OK: [11:44:26]protocol is kg_v1.0 [11:44:26]action value=close_receipt [11:44:26]process_action close_receipt [11:44:26]cmd_close_receipt [11:44:26]MH_GetDate [11:44:26]Write to MH i2c: F0 00 00 F7 75 5B [11:44:26]Write i2c OK [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 05 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 05 00 F7 75 00 A5 91 F1 65 EC [11:44:26]GetLastDocTimeStamp 1710330183 [11:44:26]current date 1710330277 [11:44:26]FM_GetShiftState [11:44:26]SAM_PROTO_GetShiftState [11:44:26]wFMCommunicate request_size=4 [11:44:26]MH_SAM_APDU [11:44:26]CAPDU: 80 13 01 00 [11:44:26]Write to MH i2c: E2 08 00 F8 75 80 13 01 00 00 00 00 00 EA [11:44:26]Write i2c OK [11:44:26]MH_I2C_Read... [11:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:26]Read from MH i2c: E2 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 0E 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 0E 00 F8 75 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CF [11:44:26]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:44:26]wFMCommunicate OK [11:44:26]SAM_PROTO_GetShiftState done [11:44:26]FM_GetShiftState done [11:44:26]opened in 1710288279 [11:44:26]opened+sec_in_day 1710374679 [11:44:26]quantity*price = 200008 [11:44:26]sum+1 = 200010 [11:44:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 83 13.03.2024 11:44 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95388 ФПД: 244024736702688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T114437&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95388&fm=244024736702688&tin=02508201610067®Number=0000000000090555&sum=200000 [11:44:27]StoreToDocumentArchive [11:44:27]shift 328 fd 95388 [11:44:27]save to /storage/0328/doc_00095388 [11:44:27]save last doc name /storage/0328/doc_00095388 to /storage/kkm_last_doc_name [11:44:27]save OK [11:44:27]Clear old archive folders... [11:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:44:27]tlvbuf is 01A03980 [11:44:27]SAM_PROTO_ClearQueue [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 09 00 00 [11:44:27]Write to MH i2c: E2 08 00 05 76 80 09 00 00 00 00 00 00 ED [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 05 76 00 90 00 EF [11:44:27]RAPDU: 90 00 [11:44:27]wFMCommunicate OK [11:44:27]SAM_PROTO_ClearQueue done [11:44:27]KKMCreateOFDPacket [11:44:27]OFDProtocolAddRootSTLVToBuf [11:44:27]FM_MakeSignedData [11:44:27]FM_MakeSignedData [11:44:27]SAM_PROTO_SignData [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 0D 01 02 [11:44:27]Write to MH i2c: E2 08 00 06 76 80 0D 01 02 00 00 00 00 F5 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 06 76 00 90 00 F0 [11:44:27]RAPDU: 90 00 [11:44:27]wFMCommunicate OK [11:44:27]wFMCommunicate request_size=255 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A5 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 74 01 00 35 04 06 00 DD F0 6F BF [11:44:27]Write to MH i2c: E2 02 01 07 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A5 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 74 01 00 35 04 06 00 DD F0 6F BF 00 00 22 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 07 76 00 90 00 F1 [11:44:28]RAPDU: 90 00 [11:44:28]wFMCommunicate OK [11:44:28]wFMCommunicate request_size=7 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 0D 02 02 02 60 E0 [11:44:28]Write to MH i2c: E2 0A 00 08 76 80 0D 02 02 02 00 60 E0 00 00 3C [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 08 76 00 90 00 F2 [11:44:28]RAPDU: 90 00 [11:44:28]wFMCommunicate OK [11:44:28]wFMCommunicate request_size=4 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 0D 03 02 [11:44:28]Write to MH i2c: E2 08 00 09 76 80 0D 03 02 00 00 00 00 FA [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0B 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0B 00 09 76 00 F0 67 96 7E E8 38 81 96 90 00 9D [11:44:28]RAPDU: F0 67 96 7E E8 38 81 96 90 00 [11:44:28]wFMCommunicate OK [11:44:28]SAM_PROTO_SignData done [11:44:28]FM_MakeSignedData done [11:44:28]CreateOFDProtocolMessage [11:44:28]wFMCommunicate request_size=4 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 11 00 00 [11:44:28]Write to MH i2c: E2 08 00 0A 76 80 11 00 00 00 00 00 00 FA [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 17 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 17 00 0A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4A [11:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:44:28]wFMCommunicate OK [11:44:28]CreateOFDProtocolMessage done [11:44:28]OFDSenderStorePacket 95388 [11:44:28]StoreOFDPacket docnum=95388 [11:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 68 EC 04 01 F2 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A5 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 74 01 00 35 04 06 00 DD F0 6F BF 60 E0 F0 67 96 7E E8 38 81 96 [11:44:28]CheckFolder [11:44:28]dirname=/storage/ofd_packets [11:44:28]CheckFolder done [11:44:28]ProducePacketName [11:44:28]name=ofd_packets/00095388 [11:44:28]NVStorageSaveData ofd_packets/00095388 [11:44:28]File name is /storage/ofd_packets/00095388 [11:44:28]Write 298 bytes [11:44:28]NVStorageSaveData done [11:44:28]OFDSenderStorePacket done [11:44:28]KKMCreateOFDPacket done [11:44:28]NVStorageSaveData kkm_last_timestamp [11:44:28]File name is /storage/kkm_last_timestamp [11:44:28]Write 4 bytes [11:44:28]NVStorageSaveData done [11:44:28]ExternCall_PrintAddStr [11:44:28]wPrintStart [11:44:28]Write to MH i2c: 01 00 00 0B 76 81 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 07 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 07 00 0B 76 00 80 00 00 00 FF 0F 16 [11:44:28]RasterBufferAndPrint [11:44:28]line Счет N : (1)196375 [11:44:28]line ИНН: 02508201610067 [11:44:28]line Контрольно-Кассовый Чек [11:44:28]line ПРОДАЖА [11:44:28]line ТРК (МРК, ГНК) : 51 [11:44:28]line Товар: 2710194210 [11:44:28]line ДТ-К-5 [11:44:28]line 28.210 * 70.90 [11:44:28]line = 2000.09 [11:44:28]line НДС 12% НСП 1% [11:44:28]line > о реализуемом товаре [11:44:28]line ОКРУГЛЕНИЕ: -0.09 [11:44:28]line ИТОГО: 2000.00 [11:44:28]line Внесено: 2000.00 [11:44:28]line СДАЧА: 0.00 [11:44:28]line НСП 1% : 17.70 [11:44:28]line НДС 12% : 212.40 [11:44:28]line Наличными: 2000.00 [11:44:28]line Безнал.: 0.00 [11:44:28]line Место: АЗС № 6 "Партнер Нефть" [11:44:28]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:44:28]line СНО: Общий режим [11:44:28]line Чек 83 13.03.2024 11:44 [11:44:28]line Смена: 328 ФФД: 1.0 [11:44:28]line ЗНМ: 0300000009 [11:44:28]line РНМ: 0000000000090555 [11:44:28]line Версия ККМ: 001 [11:44:28]line ФМ: 0000000000874811 [11:44:28]line ФД: 95388 [11:44:28]line ФПД: 244024736702688 [11:44:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T114437&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95388&fm=244024736702688&tin=02508201610067®Number=0000000000090555&sum=200000 [11:44:28]OFD Sender: Processing packet 95388 [packets to send 30, broken 29] [11:44:28]ProducePacketName [11:44:28]name=ofd_packets/00095388 [11:44:28]OFD Sender: To server: pG, [11:44:28]CommunicateWithHost lk.salyk.kg:30040 [11:44:28]ConnectInit lk.salyk.kg [11:44:28]written 0, free lines is 4095 [11:44:28]Connected sock=10 [11: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 34 38 31 31 0C 01 00 00 68 EC 04 01 F2 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 6E 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 49 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A5 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 74 01 00 35 04 06 00 DD F0 6F BF 60 E0 F0 67 96 7E E8 38 81 96 [11:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 94 5D 47 00 DD DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9C 74 01 00 F4 03 04 00 F8 3C F1 65 B6 04 01 00 00 0A 92 E9 7D 4B 50 9C C5 [11:44:28]CommunicateWithHost err = 0 [11:44:28]CheckOFDResponse [11:44:28]1017 (14) - 77093643461234 [11:44:28]1041 (16) - 0000000000874811 [11:44:28]1040 (4) - 95388 [11:44:28]1012 (4) - 13.03.2024 05:43 [11:44:28]1206 (1) - 0 [11:44:28]OFD Sender: Remove packet 95388 [11:44:28]ProducePacketName [11:44:28]name=ofd_packets/00095388 [11:44:28]NVStorageDeleteData [11:44:29]Write to MH i2c: 01 00 00 36 76 AC [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 07 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 07 00 36 76 00 80 00 00 00 4F 0D 8F [11:44:29]RasterBufferAndPrint [11:44:29]line [11:44:29]line [11:44:29]line [11:44:29]line [11:44:29]line [11:44:29]written 0, free lines is 3413 [11:44:29]process_action close_receipt done [11:44:29]requested_data is exist [11:44:29]produce_requested_data [11:44:29]requested_item fm.sn is exist - process it [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 11 00 00 [11:44:29]Write to MH i2c: E2 08 00 3D 76 80 11 00 00 00 00 00 00 2D [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:29]Read from MH i2c: E2 17 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 17 00 3D 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7D [11:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:44:29]wFMCommunicate OK [11:44:29]requested_item fd.num is exist - process it [11:44:29]SAM_PROTO_GetFieldsCounters [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 13 00 00 [11:44:29]Write to MH i2c: E2 08 00 3E 76 80 13 00 00 00 00 00 00 30 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 62 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 62 00 3E 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9C 74 01 00 0E 04 04 00 48 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 A0 [11:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9C 74 01 00 0E 04 04 00 48 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 [11:44:29]wFMCommunicate OK [11:44:29]SAM_PROTO_GetFieldsCounters done [11:44:29]requested_item shift.num is exist - process it [11:44:29]requested_item shift.opened is exist - process it [11:44:29]req_shift_opened [11:44:29]FM_GetShiftState [11:44:29]SAM_PROTO_GetShiftState [11:44:29]wFMCommunicate request_size=4 [11:44:29]MH_SAM_APDU [11:44:29]CAPDU: 80 13 01 00 [11:44:29]Write to MH i2c: E2 08 00 3F 76 80 13 01 00 00 00 00 00 32 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:29]Read from MH i2c: E2 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 0E 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: E2 0E 00 3F 76 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 17 [11:44:29]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:44:29]wFMCommunicate OK [11:44:29]SAM_PROTO_GetShiftState done [11:44:29]FM_GetShiftState done [11:44:29]req_shift_opened done [11:44:29]requested_item shift.open_date is exist - process it [11:44:29]req_shift_open_date [11:44:29]req_shift_open_date done [11:44:29]produce_requested_data done [11:44:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95388,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:44:29]process_action_free close_receipt [11:44:29]json_value_free [11:44:29]json_value_free done [11:44:29]process_json_proto returns [11:44:29]Send response to host [11:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95388,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:44:29]free response buf [11:44:29]execute_script done [11:44:29]execute_script returns [11:44:29]free content buf [11:44:29]Sock 9.Close socket [11:44:29]Sock 9.Thread stoped [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:02]accept exits with 8 [11:45:02]New connection [11:45:02]New thread 3066957156 created [11:45:02]Thread 3066813796 joined [11:45:02]Waiting for new connection... [11:45:02] Sock 8.Parse request [11:45:02]Sock 8.Check first char [11:45:02]Sock 8.First char is OK [11:45:02]request: POST /json_proto HTTP/1.0 [11:45:02]Method: POST [11:45:02]URL: /json_proto [11:45:02]Method is POST - this is cgi request [11:45:02]url: /json_proto [11:45:02]query_string will be loaded in cgi processing [11:45:02]execute_cgi json_proto POST (null) [11:45:02]execute_cgi path=json_proto method=POST [11:45:02]POST find Content-Length [11:45:02]Host: 172.17.62.67:8080 [11:45:02]Content-Length: 677 [11:45:02]Content-Type: application/json [11:45:02] [11:45:02]POST finish read [11:45:02]Found Content-Length = 677 [11:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196377", "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" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:02]execute_script... [11:45: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)196377", "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" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:02]POST & json_proto [11:45:02]process_json_proto [11:45:02]json parsed OK: [11:45:02]protocol is kg_v1.0 [11:45:02]action value=close_receipt [11:45:02]process_action close_receipt [11:45:02]cmd_close_receipt [11:45:02]MH_GetDate [11:45:02]Write to MH i2c: F0 00 00 40 76 A5 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: F0 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: F0 05 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: F0 05 00 40 76 00 C9 91 F1 65 5A [11:45:02]GetLastDocTimeStamp 1710330277 [11:45:02]current date 1710330313 [11:45:02]FM_GetShiftState [11:45:02]SAM_PROTO_GetShiftState [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 13 01 00 [11:45:02]Write to MH i2c: E2 08 00 41 76 80 13 01 00 00 00 00 00 34 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0E 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0E 00 41 76 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 19 [11:45:02]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:45:02]wFMCommunicate OK [11:45:02]SAM_PROTO_GetShiftState done [11:45:02]FM_GetShiftState done [11:45:02]opened in 1710288279 [11:45:02]opened+sec_in_day 1710374679 [11:45:02]quantity*price = 20002 [11:45:02]sum+1 = 20003 [11:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 84 13.03.2024 11:45 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95389 ФПД: 82659598907974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T114513&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95389&fm=82659598907974&tin=02508201610067®Number=0000000000090555&sum=20000 [11:45:03]StoreToDocumentArchive [11:45:03]shift 328 fd 95389 [11:45:03]save to /storage/0328/doc_00095389 [11:45:03]save last doc name /storage/0328/doc_00095389 to /storage/kkm_last_doc_name [11:45:03]save OK [11:45:03]Clear old archive folders... [11:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:03]tlvbuf is 01CA2300 [11:45:03]SAM_PROTO_ClearQueue [11:45:03]wFMCommunicate request_size=4 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 09 00 00 [11:45:03]Write to MH i2c: E2 08 00 4E 76 80 09 00 00 00 00 00 00 36 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 4E 76 00 90 00 38 [11:45:03]RAPDU: 90 00 [11:45:03]wFMCommunicate OK [11:45:03]SAM_PROTO_ClearQueue done [11:45:03]KKMCreateOFDPacket [11:45:03]OFDProtocolAddRootSTLVToBuf [11:45:03]FM_MakeSignedData [11:45:03]FM_MakeSignedData [11:45:03]SAM_PROTO_SignData [11:45:03]wFMCommunicate request_size=4 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 0D 01 02 [11:45:03]Write to MH i2c: E2 08 00 4F 76 80 0D 01 02 00 00 00 00 3E [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 [11:45:03]MH_I2C_Read... [11:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:03]Read from MH i2c: E2 03 00 [11:45:03]MH_I2C_Read... [11:45:03]Read from MH i2c: E2 03 00 4F 76 00 90 00 39 [11:45:03]RAPDU: 90 00 [11:45:03]wFMCommunicate OK [11:45:03]wFMCommunicate request_size=255 [11:45:03]MH_SAM_APDU [11:45:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C9 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 74 01 00 35 04 06 00 4B [11:45:03]Write to MH i2c: E2 02 01 50 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C9 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 74 01 00 35 04 06 00 4B 00 00 61 [11:45:03]Write i2c OK [11:45:03]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 03 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 03 00 50 76 00 90 00 3A [11:45:04]RAPDU: 90 00 [11:45:04]wFMCommunicate OK [11:45:04]wFMCommunicate request_size=10 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 0D 02 02 05 2D B0 07 BA 46 [11:45:04]Write to MH i2c: E2 0D 00 51 76 80 0D 02 02 05 00 2D B0 07 BA 46 00 00 2F [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 03 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 03 00 51 76 00 90 00 3B [11:45:04]RAPDU: 90 00 [11:45:04]wFMCommunicate OK [11:45:04]wFMCommunicate request_size=4 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 0D 03 02 [11:45:04]Write to MH i2c: E2 08 00 52 76 80 0D 03 02 00 00 00 00 43 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 0B 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 0B 00 52 76 00 9A A7 D6 EF 3B 46 64 C7 90 00 F6 [11:45:04]RAPDU: 9A A7 D6 EF 3B 46 64 C7 90 00 [11:45:04]wFMCommunicate OK [11:45:04]SAM_PROTO_SignData done [11:45:04]FM_MakeSignedData done [11:45:04]CreateOFDProtocolMessage [11:45:04]wFMCommunicate request_size=4 [11:45:04]MH_SAM_APDU [11:45:04]CAPDU: 80 11 00 00 [11:45:04]Write to MH i2c: E2 08 00 53 76 80 11 00 00 00 00 00 00 43 [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:04]Read from MH i2c: E2 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 17 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: E2 17 00 53 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 93 [11:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:45:04]wFMCommunicate OK [11:45:04]CreateOFDProtocolMessage done [11:45:04]OFDSenderStorePacket 95389 [11:45:04]StoreOFDPacket docnum=95389 [11:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8C 01 07 01 BE ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C9 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 74 01 00 35 04 06 00 4B 2D B0 07 BA 46 9A A7 D6 EF 3B 46 64 C7 [11:45:04]CheckFolder [11:45:04]dirname=/storage/ofd_packets [11:45:04]CheckFolder done [11:45:04]ProducePacketName [11:45:04]name=ofd_packets/00095389 [11:45:04]NVStorageSaveData ofd_packets/00095389 [11:45:04]File name is /storage/ofd_packets/00095389 [11:45:04]Write 301 bytes [11:45:04]NVStorageSaveData done [11:45:04]OFDSenderStorePacket done [11:45:04]KKMCreateOFDPacket done [11:45:04]NVStorageSaveData kkm_last_timestamp [11:45:04]File name is /storage/kkm_last_timestamp [11:45:04]Write 4 bytes [11:45:04]NVStorageSaveData done [11:45:04]ExternCall_PrintAddStr [11:45:04]wPrintStart [11:45:04]Write to MH i2c: 01 00 00 54 76 CA [11:45:04]Write i2c OK [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: 01 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: 01 07 00 [11:45:04]MH_I2C_Read... [11:45:04]Read from MH i2c: 01 07 00 54 76 00 80 00 00 00 FF 0F 5F [11:45:04]RasterBufferAndPrint [11:45:04]line Счет N : (1)196377 [11:45:04]line ИНН: 02508201610067 [11:45:04]line Контрольно-Кассовый Чек [11:45:04]line ПРОДАЖА [11:45:04]line ТРК (МРК, ГНК) : 22 [11:45:04]line Товар: 2710124130 [11:45:04]line Аи-92-К-5 [11:45:04]line 3.180 * 62.90 [11:45:04]line = 200.02 [11:45:04]line НДС 12% НСП 1% [11:45:04]line > о реализуемом товаре [11:45:04]line ОКРУГЛЕНИЕ: -0.02 [11:45:04]line ИТОГО: 200.00 [11:45:04]line Внесено: 200.00 [11:45:04]line СДАЧА: 0.00 [11:45:04]line НСП 1% : 1.77 [11:45:04]line НДС 12% : 21.24 [11:45:04]line Наличными: 200.00 [11:45:04]line Безнал.: 0.00 [11:45:04]line Место: АЗС № 6 "Партнер Нефть" [11:45:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:45:04]line СНО: Общий режим [11:45:04]line Чек 84 13.03.2024 11:45 [11:45:04]line Смена: 328 ФФД: 1.0 [11:45:04]line ЗНМ: 0300000009 [11:45:04]line РНМ: 0000000000090555 [11:45:04]line Версия ККМ: 001 [11:45:04]line ФМ: 0000000000874811 [11:45:04]line ФД: 95389 [11:45:04]line ФПД: 82659598907974 [11:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T114513&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95389&fm=82659598907974&tin=02508201610067®Number=0000000000090555&sum=20000 [11:45:04]OFD Sender: Processing packet 95389 [packets to send 30, broken 29] [11:45:04]ProducePacketName [11:45:04]name=ofd_packets/00095389 [11:45:04]OFD Sender: To server: pG, [11:45:04]CommunicateWithHost lk.salyk.kg:30040 [11:45:04]ConnectInit lk.salyk.kg [11:45:04]written 0, free lines is 4095 [11:45:04]Connected sock=10 [11:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 8C 01 07 01 BE ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C9 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9D 74 01 00 35 04 06 00 4B 2D B0 07 BA 46 9A A7 D6 EF 3B 46 64 C7 [11:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 47 BE 47 00 F9 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 34 38 31 31 10 04 04 00 9D 74 01 00 F4 03 04 00 1C 3D F1 65 B6 04 01 00 00 50 E2 CB EB 20 54 0A 05 [11:45:04]CommunicateWithHost err = 0 [11:45:04]CheckOFDResponse [11:45:04]1017 (14) - 77093643461234 [11:45:04]1041 (16) - 0000000000874811 [11:45:04]1040 (4) - 95389 [11:45:04]1012 (4) - 13.03.2024 05:43 [11:45:04]1206 (1) - 0 [11:45:04]OFD Sender: Remove packet 95389 [11:45:04]ProducePacketName [11:45:04]name=ofd_packets/00095389 [11:45:04]NVStorageDeleteData [11:45:05]Write to MH i2c: 01 00 00 7F 76 F5 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 07 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: 01 07 00 7F 76 00 80 00 00 00 49 0D D2 [11:45:05]RasterBufferAndPrint [11:45:05]line [11:45:05]line [11:45:05]line [11:45:05]line [11:45:05]line [11:45:05]written 0, free lines is 3407 [11:45:05]process_action close_receipt done [11:45:05]requested_data is exist [11:45:05]produce_requested_data [11:45:05]requested_item fm.sn is exist - process it [11:45:05]wFMCommunicate request_size=4 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 11 00 00 [11:45:05]Write to MH i2c: E2 08 00 86 76 80 11 00 00 00 00 00 00 76 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 17 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 17 00 86 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [11:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:45:05]wFMCommunicate OK [11:45:05]requested_item fd.num is exist - process it [11:45:05]SAM_PROTO_GetFieldsCounters [11:45:05]wFMCommunicate request_size=4 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 13 00 00 [11:45:05]Write to MH i2c: E2 08 00 87 76 80 13 00 00 00 00 00 00 79 [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 62 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 62 00 87 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9D 74 01 00 0E 04 04 00 48 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 ED [11:45:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9D 74 01 00 0E 04 04 00 48 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 [11:45:05]wFMCommunicate OK [11:45:05]SAM_PROTO_GetFieldsCounters done [11:45:05]requested_item shift.num is exist - process it [11:45:05]requested_item shift.opened is exist - process it [11:45:05]req_shift_opened [11:45:05]FM_GetShiftState [11:45:05]SAM_PROTO_GetShiftState [11:45:05]wFMCommunicate request_size=4 [11:45:05]MH_SAM_APDU [11:45:05]CAPDU: 80 13 01 00 [11:45:05]Write to MH i2c: E2 08 00 88 76 80 13 01 00 00 00 00 00 7B [11:45:05]Write i2c OK [11:45:05]MH_I2C_Read... [11:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:05]Read from MH i2c: E2 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 0E 00 [11:45:05]MH_I2C_Read... [11:45:05]Read from MH i2c: E2 0E 00 88 76 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 60 [11:45:05]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:45:05]wFMCommunicate OK [11:45:05]SAM_PROTO_GetShiftState done [11:45:05]FM_GetShiftState done [11:45:05]req_shift_opened done [11:45:05]requested_item shift.open_date is exist - process it [11:45:05]req_shift_open_date [11:45:05]req_shift_open_date done [11:45:05]produce_requested_data done [11:45:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95389,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:45:05]process_action_free close_receipt [11:45:05]json_value_free [11:45:05]json_value_free done [11:45:05]process_json_proto returns [11:45:05]Send response to host [11:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95389,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:45:05]free response buf [11:45:05]execute_script done [11:45:05]execute_script returns [11:45:05]free content buf [11:45:05]Sock 8.Close socket [11:45:05]Sock 8.Thread stoped [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:51]accept exits with 9 [11:45:51]New connection [11:45:51]New thread 3066813796 created [11:45:51]Thread 3066957156 joined [11:45:51]Waiting for new connection... [11:45:51] Sock 9.Parse request [11:45:51]Sock 9.Check first char [11:45:51]Sock 9.First char is OK [11:45:51]request: POST /json_proto HTTP/1.0 [11:45:51]Method: POST [11:45:51]URL: /json_proto [11:45:51]Method is POST - this is cgi request [11:45:51]url: /json_proto [11:45:51]query_string will be loaded in cgi processing [11:45:51]execute_cgi json_proto POST (null) [11:45:51]execute_cgi path=json_proto method=POST [11:45:51]POST find Content-Length [11:45:51]Host: 172.17.62.67:8080 [11:45:51]Content-Length: 816 [11:45:51]Content-Type: application/json [11:45:51] [11:45:51]POST finish read [11:45:51]Found Content-Length = 816 [11:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:51]execute_script... [11: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 : (1)196376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 7.200, "sum" : 500.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:51]POST & json_proto [11:45:51]process_json_proto [11:45:51]json parsed OK: [11:45:51]protocol is kg_v1.0 [11:45:51]action value=close_receipt [11:45:51]process_action close_receipt [11:45:51]cmd_close_receipt [11:45:51]MH_GetDate [11:45:51]Write to MH i2c: F0 00 00 89 76 EE [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: F0 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: F0 05 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: F0 05 00 89 76 00 F9 91 F1 65 D3 [11:45:51]GetLastDocTimeStamp 1710330313 [11:45:51]current date 1710330361 [11:45:51]FM_GetShiftState [11:45:51]SAM_PROTO_GetShiftState [11:45:51]wFMCommunicate request_size=4 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 13 01 00 [11:45:51]Write to MH i2c: E2 08 00 8A 76 80 13 01 00 00 00 00 00 7D [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 0E 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 0E 00 8A 76 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 62 [11:45:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:45:51]wFMCommunicate OK [11:45:51]SAM_PROTO_GetShiftState done [11:45:51]FM_GetShiftState done [11:45:51]opened in 1710288279 [11:45:51]opened+sec_in_day 1710374679 [11:45:51]quantity*price = 50040 [11:45:51]sum+1 = 50041 [11:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.40 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.40 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 85 13.03.2024 11:46 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95390 ФПД: 27305497050581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T114601&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95390&fm=27305497050581&tin=02508201610067®Number=0000000000090555&sum=50040 [11:45:52]StoreToDocumentArchive [11:45:52]shift 328 fd 95390 [11:45:52]save to /storage/0328/doc_00095390 [11:45:52]save last doc name /storage/0328/doc_00095390 to /storage/kkm_last_doc_name [11:45:52]save OK [11:45:52]Clear old archive folders... [11:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:52]tlvbuf is 01A0F6D0 [11:45:52]SAM_PROTO_ClearQueue [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 09 00 00 [11:45:52]Write to MH i2c: E2 08 00 97 76 80 09 00 00 00 00 00 00 7F [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 97 76 00 90 00 81 [11:45:52]RAPDU: 90 00 [11:45:52]wFMCommunicate OK [11:45:52]SAM_PROTO_ClearQueue done [11:45:52]KKMCreateOFDPacket [11:45:52]OFDProtocolAddRootSTLVToBuf [11:45:52]FM_MakeSignedData [11:45:52]FM_MakeSignedData [11:45:52]SAM_PROTO_SignData [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 0D 01 02 [11:45:52]Write to MH i2c: E2 08 00 98 76 80 0D 01 02 00 00 00 00 87 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 98 76 00 90 00 82 [11:45:52]RAPDU: 90 00 [11:45:52]wFMCommunicate OK [11:45:52]wFMCommunicate request_size=255 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 F9 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 74 01 00 35 04 06 00 18 [11:45:52]Write to MH i2c: E2 02 01 99 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 F9 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 74 01 00 35 04 06 00 18 00 00 FA [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 99 76 00 90 00 83 [11:45:52]RAPDU: 90 00 [11:45:52]wFMCommunicate OK [11:45:52]wFMCommunicate request_size=10 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 0D 02 02 05 D5 8E 73 BD D5 [11:45:52]Write to MH i2c: E2 0D 00 9A 76 80 0D 02 02 05 00 D5 8E 73 BD D5 00 00 FC [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 03 00 9A 76 00 90 00 84 [11:45:52]RAPDU: 90 00 [11:45:52]wFMCommunicate OK [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 0D 03 02 [11:45:52]Write to MH i2c: E2 08 00 9B 76 80 0D 03 02 00 00 00 00 8C [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:52]Read from MH i2c: E2 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 0B 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: E2 0B 00 9B 76 00 4C 37 59 B7 28 3F 16 CC 90 00 69 [11:45:52]RAPDU: 4C 37 59 B7 28 3F 16 CC 90 00 [11:45:52]wFMCommunicate OK [11:45:52]SAM_PROTO_SignData done [11:45:52]FM_MakeSignedData done [11:45:52]CreateOFDProtocolMessage [11:45:52]wFMCommunicate request_size=4 [11:45:52]MH_SAM_APDU [11:45:52]CAPDU: 80 11 00 00 [11:45:52]Write to MH i2c: E2 08 00 9C 76 80 11 00 00 00 00 00 00 8C [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 9C 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DC [11:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:45:53]wFMCommunicate OK [11:45:53]CreateOFDProtocolMessage done [11:45:53]OFDSenderStorePacket 95390 [11:45:53]StoreOFDPacket docnum=95390 [11:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B 90 07 01 26 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 F9 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 74 01 00 35 04 06 00 18 D5 8E 73 BD D5 4C 37 59 B7 28 3F 16 CC [11:45:53]CheckFolder [11:45:53]dirname=/storage/ofd_packets [11:45:53]CheckFolder done [11:45:53]ProducePacketName [11:45:53]name=ofd_packets/00095390 [11:45:53]NVStorageSaveData ofd_packets/00095390 [11:45:53]File name is /storage/ofd_packets/00095390 [11:45:53]Write 301 bytes [11:45:53]NVStorageSaveData done [11:45:53]OFDSenderStorePacket done [11:45:53]KKMCreateOFDPacket done [11:45:53]NVStorageSaveData kkm_last_timestamp [11:45:53]File name is /storage/kkm_last_timestamp [11:45:53]Write 4 bytes [11:45:53]NVStorageSaveData done [11:45:53]ExternCall_PrintAddStr [11:45:53]wPrintStart [11:45:53]Write to MH i2c: 01 00 00 9D 76 13 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 9D 76 00 80 00 00 00 FF 0F A8 [11:45:53]RasterBufferAndPrint [11:45:53]line Счет N : (1)196376 [11:45:53]line ИНН: 02508201610067 [11:45:53]line Контрольно-Кассовый Чек [11:45:53]line ПРОДАЖА [11:45:53]line ТРК (МРК, ГНК) : 41 [11:45:53]line Товар: 2710124500 [11:45:53]line Аи-95-К-5 [11:45:53]line 7.200 * 69.50 [11:45:53]line = 500.40 [11:45:53]line НДС 12% НСП 1% [11:45:53]line > о реализуемом товаре [11:45:53]line ИТОГО: 500.40 [11:45:53]line НСП 1% : 4.43 [11:45:53]line НДС 12% : 53.14 [11:45:53]line Наличными: 0.00 [11:45:53]line Безнал.: 500.40 [11:45:53]line Место: АЗС № 6 "Партнер Нефть" [11:45:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [11:45:53]line СНО: Общий режим [11:45:53]line Чек 85 13.03.2024 11:46 [11:45:53]line Смена: 328 ФФД: 1.0 [11:45:53]line ЗНМ: 0300000009 [11:45:53]line РНМ: 0000000000090555 [11:45:53]line Версия ККМ: 001 [11:45:53]line Платежная система: Бакай Банк [11:45:53]line ФМ: 0000000000874811 [11:45:53]line ФД: 95390 [11:45:53]line ФПД: 27305497050581 [11:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T114601&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95390&fm=27305497050581&tin=02508201610067®Number=0000000000090555&sum=50040 [11:45:53]OFD Sender: Processing packet 95390 [packets to send 30, broken 29] [11:45:53]ProducePacketName [11:45:53]name=ofd_packets/00095390 [11:45:53]OFD Sender: To server: pG, [11:45:53]CommunicateWithHost lk.salyk.kg:30040 [11:45:53]ConnectInit lk.salyk.kg [11:45:53]written 0, free lines is 4095 [11:45:53]Connected sock=10 [11:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B 90 07 01 26 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 1C 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 78 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 F9 91 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 74 01 00 35 04 06 00 18 D5 8E 73 BD D5 4C 37 59 B7 28 3F 16 CC [11:45:53]Write to MH i2c: 01 00 00 C7 76 3D [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 C7 76 00 80 00 00 00 66 0D 37 [11:45:53]RasterBufferAndPrint [11:45:53]line [11:45:53]line [11:45:53]line [11:45:53]line [11:45:53]line [11:45:53]written 0, free lines is 3436 [11:45:53]process_action close_receipt done [11:45:53]requested_data is exist [11:45:53]produce_requested_data [11:45:53]requested_item fm.sn is exist - process it [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 11 00 00 [11:45:53]Write to MH i2c: E2 08 00 CE 76 80 11 00 00 00 00 00 00 BE [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 FC AC 47 00 D2 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9E 74 01 00 F4 03 04 00 4D 3D F1 65 B6 04 01 00 00 14 BE E2 06 C7 A6 AD FB [11:45:53]CommunicateWithHost err = 0 [11:45:53]CheckOFDResponse [11:45:53]1017 (14) - 77093643461234 [11:45:53]1041 (16) - 0000000000874811 [11:45:53]1040 (4) - 95390 [11:45:53]1012 (4) - 13.03.2024 05:44 [11:45:53]1206 (1) - 0 [11:45:53]OFD Sender: Remove packet 95390 [11:45:53]ProducePacketName [11:45:53]name=ofd_packets/00095390 [11:45:53]NVStorageDeleteData [11:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 CE 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [11:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:45:53]wFMCommunicate OK [11:45:53]requested_item fd.num is exist - process it [11:45:53]SAM_PROTO_GetFieldsCounters [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 13 00 00 [11:45:53]Write to MH i2c: E2 08 00 CF 76 80 13 00 00 00 00 00 00 C1 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 62 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 62 00 CF 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 74 01 00 0E 04 04 00 48 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 39 [11:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 74 01 00 0E 04 04 00 48 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 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_GetFieldsCounters done [11:45:54]requested_item shift.num is exist - process it [11:45:54]requested_item shift.opened is exist - process it [11:45:54]req_shift_opened [11:45:54]FM_GetShiftState [11:45:54]SAM_PROTO_GetShiftState [11:45:54]wFMCommunicate request_size=4 [11:45:54]MH_SAM_APDU [11:45:54]CAPDU: 80 13 01 00 [11:45:54]Write to MH i2c: E2 08 00 D0 76 80 13 01 00 00 00 00 00 C3 [11:45:54]Write i2c OK [11:45:54]MH_I2C_Read... [11:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 D0 76 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A8 [11:45:54]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_GetShiftState done [11:45:54]FM_GetShiftState done [11:45:54]req_shift_opened done [11:45:54]requested_item shift.open_date is exist - process it [11:45:54]req_shift_open_date [11:45:54]req_shift_open_date done [11:45:54]produce_requested_data done [11:45:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95390,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:45:54]process_action_free close_receipt [11:45:54]json_value_free [11:45:54]json_value_free done [11:45:54]process_json_proto returns [11:45:54]Send response to host [11:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95390,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:45:54]free response buf [11:45:54]execute_script done [11:45:54]execute_script returns [11:45:54]free content buf [11:45:54]Sock 9.Close socket [11:45:54]Sock 9.Thread stoped [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:13]accept exits with 8 [11:54:13]New connection [11:54:13]New thread 3066957156 created [11:54:13]Thread 3066813796 joined [11:54:13]Waiting for new connection... [11:54:13] Sock 8.Parse request [11:54:13]Sock 8.Check first char [11:54:13]Sock 8.First char is OK [11:54:13]request: POST /json_proto HTTP/1.0 [11:54:13]Method: POST [11:54:13]URL: /json_proto [11:54:13]Method is POST - this is cgi request [11:54:13]url: /json_proto [11:54:13]query_string will be loaded in cgi processing [11:54:13]execute_cgi json_proto POST (null) [11:54:13]execute_cgi path=json_proto method=POST [11:54:13]POST find Content-Length [11:54:13]Host: 172.17.62.67:8080 [11:54:13]Content-Length: 1211 [11:54:13]Content-Type: application/json [11:54:13] [11:54:13]POST finish read [11:54:13]Found Content-Length = 1211 [11:54:13]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196379\u000A13.03.2024 11:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 160.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 11344.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\u000A3768236;34;35;40;39;38;37;27\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:13]execute_script... [11:54:13]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196379\u000A13.03.2024 11:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 61\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 160.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 11344.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\u000A3768236;34;35;40;39;38;37;27\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:13]POST & json_proto [11:54:13]process_json_proto [11:54:13]json parsed OK: [11:54:13]protocol is kg_v1.0 [11:54:13]action value=print_text [11:54:13]process_action print_text [11:54:13]cmd_print_text [11:54:13]ExternCall_PrintAddStr [11:54:13]wPrintStart [11:54:13]Write to MH i2c: 01 00 00 D1 76 47 [11:54:13]Write i2c OK [11:54:13]MH_I2C_Read... [11:54:13]Read from MH i2c: 01 [11:54:13]MH_I2C_Read... [11:54:13]Read from MH i2c: 01 07 00 [11:54:13]MH_I2C_Read... [11:54:13]Read from MH i2c: 01 07 00 D1 76 00 80 00 00 00 FF 0F DC [11:54:13]RasterBufferAndPrint [11:54:13]line *****ТОВАРНЫЙ ЧЕК***** [11:54:13]line АЗС 6 [11:54:13]line Партнер нефть [11:54:13]line 02508201610067 [11:54:13]line Кассир : Сабырбек у. М. [11:54:13]line Счет N : (1)196379 [11:54:13]line 13.03.2024 11:48 [11:54:13]line ПРОДАЖА [11:54:13]line ТРК (МРК, ГНК): 61 [11:54:13]line Вид ГСМ : 2710194210 [11:54:13]line ДТ-К-5 [11:54:13]line 160.000 x 70.90 [11:54:13]line ИТОГ: 11344.00 [11:54:13]line Тип оплаты: Талоны: Партнер нефть [11:54:13]line 3768236;34;35;40;39;38;37;27 [11:54:13]line ______________________ [11:54:13]line (подпись) [11:54:13]written 0, free lines is 4095 [11:54:14]Write to MH i2c: 01 00 00 E5 76 5B [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: 01 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: 01 07 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: 01 07 00 E5 76 00 80 00 00 00 7B 0E 6B [11:54:14]RasterBufferAndPrint [11:54:14]line [11:54:14]line [11:54:14]line [11:54:14]line [11:54:14]line [11:54:14]written 0, free lines is 3711 [11:54:14]process_action print_text done [11:54:14]requested_data is exist [11:54:14]produce_requested_data [11:54:14]requested_item fm.sn is exist - process it [11:54:14]wFMCommunicate request_size=4 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 11 00 00 [11:54:14]Write to MH i2c: E2 08 00 EC 76 80 11 00 00 00 00 00 00 DC [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 17 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 17 00 EC 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2C [11:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:54:14]wFMCommunicate OK [11:54:14]requested_item fd.num is exist - process it [11:54:14]SAM_PROTO_GetFieldsCounters [11:54:14]wFMCommunicate request_size=4 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 13 00 00 [11:54:14]Write to MH i2c: E2 08 00 ED 76 80 13 00 00 00 00 00 00 DF [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 62 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 62 00 ED 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 74 01 00 0E 04 04 00 48 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 57 [11:54:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 74 01 00 0E 04 04 00 48 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 [11:54:14]wFMCommunicate OK [11:54:14]SAM_PROTO_GetFieldsCounters done [11:54:14]requested_item shift.num is exist - process it [11:54:14]requested_item shift.opened is exist - process it [11:54:14]req_shift_opened [11:54:14]FM_GetShiftState [11:54:14]SAM_PROTO_GetShiftState [11:54:14]wFMCommunicate request_size=4 [11:54:14]MH_SAM_APDU [11:54:14]CAPDU: 80 13 01 00 [11:54:14]Write to MH i2c: E2 08 00 EE 76 80 13 01 00 00 00 00 00 E1 [11:54:14]Write i2c OK [11:54:14]MH_I2C_Read... [11:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:14]Read from MH i2c: E2 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 0E 00 [11:54:14]MH_I2C_Read... [11:54:14]Read from MH i2c: E2 0E 00 EE 76 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C6 [11:54:14]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:54:14]wFMCommunicate OK [11:54:14]SAM_PROTO_GetShiftState done [11:54:14]FM_GetShiftState done [11:54:14]req_shift_opened done [11:54:14]requested_item shift.open_date is exist - process it [11:54:14]req_shift_open_date [11:54:14]req_shift_open_date done [11:54:14]produce_requested_data done [11:54:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95390,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:54:14]process_action_free print_text [11:54:14]json_value_free [11:54:14]json_value_free done [11:54:14]process_json_proto returns [11:54:14]Send response to host [11:54:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95390,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:54:14]free response buf [11:54:14]execute_script done [11:54:14]execute_script returns [11:54:14]free content buf [11:54:14]Sock 8.Close socket [11:54:14]Sock 8.Thread stoped [11:54:14]OFD Sender: No OFD packet to send [11:54:15]accept exits with 9 [11:54:15]New connection [11:54:15]New thread 3066813796 created [11:54:15]Thread 3066957156 joined [11:54:15]Waiting for new connection... [11:54:15] Sock 9.Parse request [11:54:15]Sock 9.Check first char [11:54:15]Sock 9.First char is OK [11:54:15]request: POST /json_proto HTTP/1.0 [11:54:15]Method: POST [11:54:15]URL: /json_proto [11:54:15]Method is POST - this is cgi request [11:54:15]url: /json_proto [11:54:15]query_string will be loaded in cgi processing [11:54:15]execute_cgi json_proto POST (null) [11:54:15]execute_cgi path=json_proto method=POST [11:54:15]POST find Content-Length [11:54:15]Host: 172.17.62.67:8080 [11:54:15]Content-Length: 1214 [11:54:15]Content-Type: application/json [11:54:15] [11:54:15]POST finish read [11:54:15]Found Content-Length = 1214 [11:54:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196378\u000A13.03.2024 11:48\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 180.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 12762.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\u000A3768222;21;33;32;31;30;24;23;20\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:15]execute_script... [11:54:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196378\u000A13.03.2024 11:48\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 180.000 x 70.90\u000A\u0418\u0422\u041E\u0413: 12762.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\u000A3768222;21;33;32;31;30;24;23;20\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:15]POST & json_proto [11:54:15]process_json_proto [11:54:15]json parsed OK: [11:54:15]protocol is kg_v1.0 [11:54:15]action value=print_text [11:54:15]process_action print_text [11:54:15]cmd_print_text [11:54:15]ExternCall_PrintAddStr [11:54:15]wPrintStart [11:54:15]Write to MH i2c: 01 00 00 EF 76 65 [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 07 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 07 00 EF 76 00 80 00 00 00 FF 0F FA [11:54:15]RasterBufferAndPrint [11:54:15]line *****ТОВАРНЫЙ ЧЕК***** [11:54:15]line АЗС 6 [11:54:15]line Партнер нефть [11:54:15]line 02508201610067 [11:54:15]line Кассир : Сабырбек у. М. [11:54:15]line Счет N : (1)196378 [11:54:15]line 13.03.2024 11:48 [11:54:15]line ПРОДАЖА [11:54:15]line ТРК (МРК, ГНК): 51 [11:54:15]line Вид ГСМ : 2710194210 [11:54:15]line ДТ-К-5 [11:54:15]line 180.000 x 70.90 [11:54:15]line ИТОГ: 12762.00 [11:54:15]line Тип оплаты: Талоны: Партнер нефть [11:54:15]line 3768222;21;33;32;31;30;24;23;20 [11:54:15]line ______________________ [11:54:15]line (подпись) [11:54:15]written 0, free lines is 4095 [11:54:15]Write to MH i2c: 01 00 00 03 77 7A [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 07 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: 01 07 00 03 77 00 80 00 00 00 7E 0E 8D [11:54:15]RasterBufferAndPrint [11:54:15]line [11:54:15]line [11:54:15]line [11:54:15]line [11:54:15]line [11:54:15]written 0, free lines is 3714 [11:54:15]process_action print_text done [11:54:15]requested_data is exist [11:54:15]produce_requested_data [11:54:15]requested_item fm.sn is exist - process it [11:54:15]wFMCommunicate request_size=4 [11:54:15]MH_SAM_APDU [11:54:15]CAPDU: 80 11 00 00 [11:54:15]Write to MH i2c: E2 08 00 0A 77 80 11 00 00 00 00 00 00 FB [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:15]Read from MH i2c: E2 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 17 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 17 00 0A 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4B [11:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:54:15]wFMCommunicate OK [11:54:15]requested_item fd.num is exist - process it [11:54:15]SAM_PROTO_GetFieldsCounters [11:54:15]wFMCommunicate request_size=4 [11:54:15]MH_SAM_APDU [11:54:15]CAPDU: 80 13 00 00 [11:54:15]Write to MH i2c: E2 08 00 0B 77 80 13 00 00 00 00 00 00 FE [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:15]Read from MH i2c: E2 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 62 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 62 00 0B 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 74 01 00 0E 04 04 00 48 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 76 [11:54:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 74 01 00 0E 04 04 00 48 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 [11:54:15]wFMCommunicate OK [11:54:15]SAM_PROTO_GetFieldsCounters done [11:54:15]requested_item shift.num is exist - process it [11:54:15]requested_item shift.opened is exist - process it [11:54:15]req_shift_opened [11:54:15]FM_GetShiftState [11:54:15]SAM_PROTO_GetShiftState [11:54:15]wFMCommunicate request_size=4 [11:54:15]MH_SAM_APDU [11:54:15]CAPDU: 80 13 01 00 [11:54:15]Write to MH i2c: E2 08 00 0C 77 80 13 01 00 00 00 00 00 00 [11:54:15]Write i2c OK [11:54:15]MH_I2C_Read... [11:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:15]Read from MH i2c: E2 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 0E 00 [11:54:15]MH_I2C_Read... [11:54:15]Read from MH i2c: E2 0E 00 0C 77 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E5 [11:54:15]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:54:15]wFMCommunicate OK [11:54:15]SAM_PROTO_GetShiftState done [11:54:15]FM_GetShiftState done [11:54:15]req_shift_opened done [11:54:15]requested_item shift.open_date is exist - process it [11:54:15]req_shift_open_date [11:54:15]req_shift_open_date done [11:54:15]produce_requested_data done [11:54:15]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95390,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:54:15]process_action_free print_text [11:54:15]json_value_free [11:54:15]json_value_free done [11:54:15]process_json_proto returns [11:54:15]Send response to host [11:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95390,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:54:15]free response buf [11:54:15]execute_script done [11:54:15]execute_script returns [11:54:15]free content buf [11:54:15]Sock 9.Close socket [11:54:15]Sock 9.Thread stoped [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:33]accept exits with 8 [11:55:33]New connection [11:55:33]New thread 3066957156 created [11:55:33]Thread 3066813796 joined [11:55:33]Waiting for new connection... [11:55:33] Sock 8.Parse request [11:55:33]Sock 8.Check first char [11:55:33]Sock 8.First char is OK [11:55:33]request: POST /json_proto HTTP/1.0 [11:55:33]Method: POST [11:55:33]URL: /json_proto [11:55:33]Method is POST - this is cgi request [11:55:33]url: /json_proto [11:55:33]query_string will be loaded in cgi processing [11:55:33]execute_cgi json_proto POST (null) [11:55:33]execute_cgi path=json_proto method=POST [11:55:33]POST find Content-Length [11:55:33]Host: 172.17.62.67:8080 [11:55:33]Content-Length: 1188 [11:55:33]Content-Type: application/json [11:55:33] [11:55:33]POST finish read [11:55:33]Found Content-Length = 1188 [11:55:33]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196380\u000A13.03.2024 11:49\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3768226\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:33]execute_script... [11:55:33]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196380\u000A13.03.2024 11:49\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3768226\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:33]POST & json_proto [11:55:33]process_json_proto [11:55:33]json parsed OK: [11:55:33]protocol is kg_v1.0 [11:55:33]action value=print_text [11:55:33]process_action print_text [11:55:33]cmd_print_text [11:55:33]ExternCall_PrintAddStr [11:55:33]wPrintStart [11:55:33]Write to MH i2c: 01 00 00 0D 77 84 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: 01 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: 01 07 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: 01 07 00 0D 77 00 80 00 00 00 FF 0F 19 [11:55:33]RasterBufferAndPrint [11:55:33]line *****ТОВАРНЫЙ ЧЕК***** [11:55:33]line АЗС 6 [11:55:33]line Партнер нефть [11:55:33]line 02508201610067 [11:55:33]line Кассир : Сабырбек у. М. [11:55:33]line Счет N : (1)196380 [11:55:33]line 13.03.2024 11:49 [11:55:33]line ПРОДАЖА [11:55:33]line ТРК (МРК, ГНК): 51 [11:55:33]line Вид ГСМ : 2710194210 [11:55:33]line ДТ-К-5 [11:55:33]line 20.000 x 70.90 [11:55:33]line ИТОГ: 1418.00 [11:55:33]line Тип оплаты: Талоны: Партнер нефть [11:55:33]line 3768226 [11:55:33]line ______________________ [11:55:33]line (подпись) [11:55:33]written 0, free lines is 4095 [11:55:33]Write to MH i2c: 01 00 00 21 77 98 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: 01 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: 01 07 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: 01 07 00 21 77 00 80 00 00 00 65 0E 92 [11:55:33]RasterBufferAndPrint [11:55:33]line [11:55:33]line [11:55:33]line [11:55:33]line [11:55:33]line [11:55:33]written 0, free lines is 3689 [11:55:33]process_action print_text done [11:55:33]requested_data is exist [11:55:33]produce_requested_data [11:55:33]requested_item fm.sn is exist - process it [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 11 00 00 [11:55:33]Write to MH i2c: E2 08 00 28 77 80 11 00 00 00 00 00 00 19 [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 17 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 17 00 28 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 69 [11:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [11:55:33]wFMCommunicate OK [11:55:33]requested_item fd.num is exist - process it [11:55:33]SAM_PROTO_GetFieldsCounters [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 13 00 00 [11:55:33]Write to MH i2c: E2 08 00 29 77 80 13 00 00 00 00 00 00 1C [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 62 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 62 00 29 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 74 01 00 0E 04 04 00 48 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 94 [11:55:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9E 74 01 00 0E 04 04 00 48 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 [11:55:33]wFMCommunicate OK [11:55:33]SAM_PROTO_GetFieldsCounters done [11:55:33]requested_item shift.num is exist - process it [11:55:33]requested_item shift.opened is exist - process it [11:55:33]req_shift_opened [11:55:33]FM_GetShiftState [11:55:33]SAM_PROTO_GetShiftState [11:55:33]wFMCommunicate request_size=4 [11:55:33]MH_SAM_APDU [11:55:33]CAPDU: 80 13 01 00 [11:55:33]Write to MH i2c: E2 08 00 2A 77 80 13 01 00 00 00 00 00 1E [11:55:33]Write i2c OK [11:55:33]MH_I2C_Read... [11:55:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:33]Read from MH i2c: E2 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 0E 00 [11:55:33]MH_I2C_Read... [11:55:33]Read from MH i2c: E2 0E 00 2A 77 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 03 [11:55:33]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [11:55:33]wFMCommunicate OK [11:55:33]SAM_PROTO_GetShiftState done [11:55:33]FM_GetShiftState done [11:55:33]req_shift_opened done [11:55:33]requested_item shift.open_date is exist - process it [11:55:33]req_shift_open_date [11:55:33]req_shift_open_date done [11:55:33]produce_requested_data done [11:55:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95390,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [11:55:33]process_action_free print_text [11:55:33]json_value_free [11:55:33]json_value_free done [11:55:33]process_json_proto returns [11:55:33]Send response to host [11:55:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95390,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [11:55:33]free response buf [11:55:33]execute_script done [11:55:33]execute_script returns [11:55:33]free content buf [11:55:33]Sock 8.Close socket [11:55:33]Sock 8.Thread stoped [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]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:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:08]accept exits with 9 [12:01:08]New connection [12:01:08]New thread 3066813796 created [12:01:08]Thread 3066957156 joined [12:01:08]Waiting for new connection... [12:01:08] Sock 9.Parse request [12:01:08]Sock 9.Check first char [12:01:08]Sock 9.First char is OK [12:01:08]request: POST /json_proto HTTP/1.0 [12:01:08]Method: POST [12:01:08]URL: /json_proto [12:01:08]Method is POST - this is cgi request [12:01:08]url: /json_proto [12:01:08]query_string will be loaded in cgi processing [12:01:08]execute_cgi json_proto POST (null) [12:01:08]execute_cgi path=json_proto method=POST [12:01:08]POST find Content-Length [12:01:08]Host: 172.17.62.67:8080 [12:01:08]Content-Length: 682 [12:01:08]Content-Type: application/json [12:01:08] [12:01:08]POST finish read [12:01:08]Found Content-Length = 682 [12:01:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196381", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:01:08]execute_script... [12:01:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196381", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:01:08]POST & json_proto [12:01:08]process_json_proto [12:01:08]json parsed OK: [12:01:08]protocol is kg_v1.0 [12:01:08]action value=close_receipt [12:01:08]process_action close_receipt [12:01:08]cmd_close_receipt [12:01:08]MH_GetDate [12:01:08]Write to MH i2c: F0 00 00 2B 77 91 [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: F0 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: F0 05 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: F0 05 00 2B 77 00 8E 95 F1 65 0F [12:01:08]GetLastDocTimeStamp 1710330361 [12:01:08]current date 1710331278 [12:01:08]FM_GetShiftState [12:01:08]SAM_PROTO_GetShiftState [12:01:08]wFMCommunicate request_size=4 [12:01:08]MH_SAM_APDU [12:01:08]CAPDU: 80 13 01 00 [12:01:08]Write to MH i2c: E2 08 00 2C 77 80 13 01 00 00 00 00 00 20 [12:01:08]Write i2c OK [12:01:08]MH_I2C_Read... [12:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:08]Read from MH i2c: E2 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 0E 00 [12:01:08]MH_I2C_Read... [12:01:08]Read from MH i2c: E2 0E 00 2C 77 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 05 [12:01:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:01:08]wFMCommunicate OK [12:01:08]SAM_PROTO_GetShiftState done [12:01:08]FM_GetShiftState done [12:01:08]opened in 1710288279 [12:01:08]opened+sec_in_day 1710374679 [12:01:08]quantity*price = 100011 [12:01:08]sum+1 = 100012 [12:01:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 86 13.03.2024 12:01 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95391 ФПД: 65253411933675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120118&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95391&fm=65253411933675&tin=02508201610067®Number=0000000000090555&sum=100000 [12:01:09]StoreToDocumentArchive [12:01:09]shift 328 fd 95391 [12:01:09]save to /storage/0328/doc_00095391 [12:01:09]save last doc name /storage/0328/doc_00095391 to /storage/kkm_last_doc_name [12:01:09]save OK [12:01:09]Clear old archive folders... [12:01:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:09]tlvbuf is 01AD2430 [12:01:09]SAM_PROTO_ClearQueue [12:01:09]wFMCommunicate request_size=4 [12:01:09]MH_SAM_APDU [12:01:09]CAPDU: 80 09 00 00 [12:01:09]Write to MH i2c: E2 08 00 39 77 80 09 00 00 00 00 00 00 22 [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:09]Read from MH i2c: E2 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 39 77 00 90 00 24 [12:01:09]RAPDU: 90 00 [12:01:09]wFMCommunicate OK [12:01:09]SAM_PROTO_ClearQueue done [12:01:09]KKMCreateOFDPacket [12:01:09]OFDProtocolAddRootSTLVToBuf [12:01:09]FM_MakeSignedData [12:01:09]FM_MakeSignedData [12:01:09]SAM_PROTO_SignData [12:01:09]wFMCommunicate request_size=4 [12:01:09]MH_SAM_APDU [12:01:09]CAPDU: 80 0D 01 02 [12:01:09]Write to MH i2c: E2 08 00 3A 77 80 0D 01 02 00 00 00 00 2A [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:09]Read from MH i2c: E2 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 3A 77 00 90 00 25 [12:01:09]RAPDU: 90 00 [12:01:09]wFMCommunicate OK [12:01:09]wFMCommunicate request_size=255 [12:01:09]MH_SAM_APDU [12:01:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 56 00 00 00 F4 03 04 00 8E 95 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 74 01 00 35 04 06 00 3B [12:01:09]Write to MH i2c: E2 02 01 3B 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 56 00 00 00 F4 03 04 00 8E 95 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 74 01 00 35 04 06 00 3B 00 00 39 [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:09]Read from MH i2c: E2 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 3B 77 00 90 00 26 [12:01:09]RAPDU: 90 00 [12:01:09]wFMCommunicate OK [12:01:09]wFMCommunicate request_size=10 [12:01:09]MH_SAM_APDU [12:01:09]CAPDU: 80 0D 02 02 05 58 FE 70 4D EB [12:01:09]Write to MH i2c: E2 0D 00 3C 77 80 0D 02 02 05 00 58 FE 70 4D EB 00 00 35 [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:09]Read from MH i2c: E2 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 03 00 3C 77 00 90 00 27 [12:01:09]RAPDU: 90 00 [12:01:09]wFMCommunicate OK [12:01:09]wFMCommunicate request_size=4 [12:01:09]MH_SAM_APDU [12:01:09]CAPDU: 80 0D 03 02 [12:01:09]Write to MH i2c: E2 08 00 3D 77 80 0D 03 02 00 00 00 00 2F [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:09]Read from MH i2c: E2 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 0B 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 0B 00 3D 77 00 ED 26 78 B0 6F 6C B1 2B 90 00 22 [12:01:09]RAPDU: ED 26 78 B0 6F 6C B1 2B 90 00 [12:01:09]wFMCommunicate OK [12:01:09]SAM_PROTO_SignData done [12:01:09]FM_MakeSignedData done [12:01:09]CreateOFDProtocolMessage [12:01:09]wFMCommunicate request_size=4 [12:01:09]MH_SAM_APDU [12:01:09]CAPDU: 80 11 00 00 [12:01:09]Write to MH i2c: E2 08 00 3E 77 80 11 00 00 00 00 00 00 2F [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:09]Read from MH i2c: E2 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 17 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: E2 17 00 3E 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7F [12:01:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:01:09]wFMCommunicate OK [12:01:09]CreateOFDProtocolMessage done [12:01:09]OFDSenderStorePacket 95391 [12:01:09]StoreOFDPacket docnum=95391 [12:01:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AB C8 07 01 4B D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 56 00 00 00 F4 03 04 00 8E 95 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 74 01 00 35 04 06 00 3B 58 FE 70 4D EB ED 26 78 B0 6F 6C B1 2B [12:01:09]CheckFolder [12:01:09]dirname=/storage/ofd_packets [12:01:09]CheckFolder done [12:01:09]ProducePacketName [12:01:09]name=ofd_packets/00095391 [12:01:09]NVStorageSaveData ofd_packets/00095391 [12:01:09]File name is /storage/ofd_packets/00095391 [12:01:09]Write 301 bytes [12:01:09]NVStorageSaveData done [12:01:09]OFDSenderStorePacket done [12:01:09]KKMCreateOFDPacket done [12:01:09]NVStorageSaveData kkm_last_timestamp [12:01:09]File name is /storage/kkm_last_timestamp [12:01:09]Write 4 bytes [12:01:09]NVStorageSaveData done [12:01:09]ExternCall_PrintAddStr [12:01:09]wPrintStart [12:01:09]Write to MH i2c: 01 00 00 3F 77 B6 [12:01:09]Write i2c OK [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: 01 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: 01 07 00 [12:01:09]MH_I2C_Read... [12:01:09]Read from MH i2c: 01 07 00 3F 77 00 80 00 00 00 FF 0F 4B [12:01:09]RasterBufferAndPrint [12:01:09]line Счет N : (1)196381 [12:01:09]line ИНН: 02508201610067 [12:01:09]line Контрольно-Кассовый Чек [12:01:09]line ПРОДАЖА [12:01:09]line ТРК (МРК, ГНК) : 32 [12:01:09]line Товар: 2710124130 [12:01:09]line Аи-92-К-5 [12:01:09]line 15.900 * 62.90 [12:01:09]line = 1000.11 [12:01:09]line НДС 12% НСП 1% [12:01:09]line > о реализуемом товаре [12:01:09]line ОКРУГЛЕНИЕ: -0.11 [12:01:09]line ИТОГО: 1000.00 [12:01:09]line Внесено: 1000.00 [12:01:09]line СДАЧА: 0.00 [12:01:09]line НСП 1% : 8.85 [12:01:09]line НДС 12% : 106.21 [12:01:09]line Наличными: 1000.00 [12:01:09]line Безнал.: 0.00 [12:01:09]line Место: АЗС № 6 "Партнер Нефть" [12:01:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:01:09]line СНО: Общий режим [12:01:09]line Чек 86 13.03.2024 12:01 [12:01:09]line Смена: 328 ФФД: 1.0 [12:01:09]line ЗНМ: 0300000009 [12:01:09]line РНМ: 0000000000090555 [12:01:09]line Версия ККМ: 001 [12:01:09]line ФМ: 0000000000874811 [12:01:09]line ФД: 95391 [12:01:09]line ФПД: 65253411933675 [12:01:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120118&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95391&fm=65253411933675&tin=02508201610067®Number=0000000000090555&sum=100000 [12:01:10]written 0, free lines is 4095 [12:01:10]OFD Sender: Processing packet 95391 [packets to send 30, broken 29] [12:01:10]ProducePacketName [12:01:10]name=ofd_packets/00095391 [12:01:10]OFD Sender: To server: pG, [12:01:10]CommunicateWithHost lk.salyk.kg:30040 [12:01:10]ConnectInit lk.salyk.kg [12:01:10]Connected sock=10 [12:01:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AB C8 07 01 4B D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 56 00 00 00 F4 03 04 00 8E 95 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 74 01 00 35 04 06 00 3B 58 FE 70 4D EB ED 26 78 B0 6F 6C B1 2B [12:01:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 56 A6 47 00 78 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 9F 74 01 00 F4 03 04 00 E1 40 F1 65 B6 04 01 00 00 DD 8F 53 6B 44 95 69 64 [12:01:10]CommunicateWithHost err = 0 [12:01:10]CheckOFDResponse [12:01:10]1017 (14) - 77093643461234 [12:01:10]1041 (16) - 0000000000874811 [12:01:10]1040 (4) - 95391 [12:01:10]1012 (4) - 13.03.2024 06:00 [12:01:10]1206 (1) - 0 [12:01:10]OFD Sender: Remove packet 95391 [12:01:10]ProducePacketName [12:01:10]name=ofd_packets/00095391 [12:01:10]NVStorageDeleteData [12:01:10]Write to MH i2c: 01 00 00 6A 77 E1 [12:01:10]Write i2c OK [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: 01 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: 01 07 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: 01 07 00 6A 77 00 80 00 00 00 4A 0D BF [12:01:10]RasterBufferAndPrint [12:01:10]line [12:01:10]line [12:01:10]line [12:01:10]line [12:01:10]line [12:01:10]written 0, free lines is 3410 [12:01:10]process_action close_receipt done [12:01:10]requested_data is exist [12:01:10]produce_requested_data [12:01:10]requested_item fm.sn is exist - process it [12:01:10]wFMCommunicate request_size=4 [12:01:10]MH_SAM_APDU [12:01:10]CAPDU: 80 11 00 00 [12:01:10]Write to MH i2c: E2 08 00 71 77 80 11 00 00 00 00 00 00 62 [12:01:10]Write i2c OK [12:01:10]MH_I2C_Read... [12:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:10]Read from MH i2c: E2 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 17 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 17 00 71 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B2 [12:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:01:10]wFMCommunicate OK [12:01:10]requested_item fd.num is exist - process it [12:01:10]SAM_PROTO_GetFieldsCounters [12:01:10]wFMCommunicate request_size=4 [12:01:10]MH_SAM_APDU [12:01:10]CAPDU: 80 13 00 00 [12:01:10]Write to MH i2c: E2 08 00 72 77 80 13 00 00 00 00 00 00 65 [12:01:10]Write i2c OK [12:01:10]MH_I2C_Read... [12:01:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:10]Read from MH i2c: E2 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 62 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 62 00 72 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9F 74 01 00 0E 04 04 00 48 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 E1 [12:01:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 9F 74 01 00 0E 04 04 00 48 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 [12:01:10]wFMCommunicate OK [12:01:10]SAM_PROTO_GetFieldsCounters done [12:01:10]requested_item shift.num is exist - process it [12:01:10]requested_item shift.opened is exist - process it [12:01:10]req_shift_opened [12:01:10]FM_GetShiftState [12:01:10]SAM_PROTO_GetShiftState [12:01:10]wFMCommunicate request_size=4 [12:01:10]MH_SAM_APDU [12:01:10]CAPDU: 80 13 01 00 [12:01:10]Write to MH i2c: E2 08 00 73 77 80 13 01 00 00 00 00 00 67 [12:01:10]Write i2c OK [12:01:10]MH_I2C_Read... [12:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:10]OFD Sender: No OFD packet to send [12:01:10]Read from MH i2c: E2 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 0E 00 [12:01:10]MH_I2C_Read... [12:01:10]Read from MH i2c: E2 0E 00 73 77 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4C [12:01:10]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:01:10]wFMCommunicate OK [12:01:10]SAM_PROTO_GetShiftState done [12:01:10]FM_GetShiftState done [12:01:10]req_shift_opened done [12:01:10]requested_item shift.open_date is exist - process it [12:01:10]req_shift_open_date [12:01:10]req_shift_open_date done [12:01:10]produce_requested_data done [12:01:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95391,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:01:10]process_action_free close_receipt [12:01:10]json_value_free [12:01:10]json_value_free done [12:01:10]process_json_proto returns [12:01:10]Send response to host [12:01:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95391,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:01:10]free response buf [12:01:10]execute_script done [12:01:10]execute_script returns [12:01:10]free content buf [12:01:10]Sock 9.Close socket [12:01:10]Sock 9.Thread stoped [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]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:48]accept exits with 8 [12:03:48]New connection [12:03:48]New thread 3066957156 created [12:03:48]Thread 3066813796 joined [12:03:48]Waiting for new connection... [12:03:48] Sock 8.Parse request [12:03:48]Sock 8.Check first char [12:03:48]Sock 8.First char is OK [12:03:48]request: POST /json_proto HTTP/1.0 [12:03:48]Method: POST [12:03:48]URL: /json_proto [12:03:48]Method is POST - this is cgi request [12:03:48]url: /json_proto [12:03:48]query_string will be loaded in cgi processing [12:03:48]execute_cgi json_proto POST (null) [12:03:48]execute_cgi path=json_proto method=POST [12:03:48]POST find Content-Length [12:03:48]Host: 172.17.62.67:8080 [12:03:48]Content-Length: 738 [12:03:48]Content-Type: application/json [12:03:48] [12:03:48]POST finish read [12:03:48]Found Content-Length = 738 [12:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95391, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196381", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:03:48]execute_script... [12:03:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 95391, "base_FM": "0000000000874811", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196381", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:03:48]POST & json_proto [12:03:48]process_json_proto [12:03:48]json parsed OK: [12:03:48]protocol is kg_v1.0 [12:03:48]action value=close_receipt [12:03:48]process_action close_receipt [12:03:48]cmd_close_receipt [12:03:48]MH_GetDate [12:03:48]Write to MH i2c: F0 00 00 74 77 DA [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: F0 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: F0 05 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: F0 05 00 74 77 00 2E 96 F1 65 F9 [12:03:48]GetLastDocTimeStamp 1710331278 [12:03:48]current date 1710331438 [12:03:48]FM_GetShiftState [12:03:48]SAM_PROTO_GetShiftState [12:03:48]wFMCommunicate request_size=4 [12:03:48]MH_SAM_APDU [12:03:48]CAPDU: 80 13 01 00 [12:03:48]Write to MH i2c: E2 08 00 75 77 80 13 01 00 00 00 00 00 69 [12:03:48]Write i2c OK [12:03:48]MH_I2C_Read... [12:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:48]Read from MH i2c: E2 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 0E 00 [12:03:48]MH_I2C_Read... [12:03:48]Read from MH i2c: E2 0E 00 75 77 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4E [12:03:48]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:03:48]wFMCommunicate OK [12:03:48]SAM_PROTO_GetShiftState done [12:03:48]FM_GetShiftState done [12:03:48]opened in 1710288279 [12:03:48]opened+sec_in_day 1710374679 [12:03:48]quantity*price = 100011 [12:03:48]sum+1 = 100012 [12:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 87 13.03.2024 12:03 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФД осн.: 95391 ФМ осн.: 0000000000874811 ФМ: 0000000000874811 ФД: 95392 ФПД: 80867361116737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120358&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95392&fm=80867361116737&tin=02508201610067®Number=0000000000090555&sum=100000 [12:03:49]StoreToDocumentArchive [12:03:49]shift 328 fd 95392 [12:03:49]save to /storage/0328/doc_00095392 [12:03:49]save last doc name /storage/0328/doc_00095392 to /storage/kkm_last_doc_name [12:03:49]save OK [12:03:49]Clear old archive folders... [12:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:03:49]tlvbuf is 01A27E50 [12:03:49]SAM_PROTO_ClearQueue [12:03:49]wFMCommunicate request_size=4 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 09 00 00 [12:03:49]Write to MH i2c: E2 08 00 84 77 80 09 00 00 00 00 00 00 6D [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:49]Read from MH i2c: E2 03 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 84 77 00 90 00 6F [12:03:49]RAPDU: 90 00 [12:03:49]wFMCommunicate OK [12:03:49]SAM_PROTO_ClearQueue done [12:03:49]KKMCreateOFDPacket [12:03:49]OFDProtocolAddRootSTLVToBuf [12:03:49]FM_MakeSignedData [12:03:49]FM_MakeSignedData [12:03:49]SAM_PROTO_SignData [12:03:49]wFMCommunicate request_size=4 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 0D 01 02 [12:03:49]Write to MH i2c: E2 08 00 85 77 80 0D 01 02 00 00 00 00 75 [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 85 77 00 90 00 70 [12:03:49]RAPDU: 90 00 [12:03:49]wFMCommunicate OK [12:03:49]wFMCommunicate request_size=255 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 57 00 00 00 F4 03 04 00 2E 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 9F 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 [12:03:49]Write to MH i2c: E2 02 01 86 77 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 57 00 00 00 F4 03 04 00 2E 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 9F 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 00 00 4D [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 86 77 00 90 00 71 [12:03:49]RAPDU: 90 00 [12:03:49]wFMCommunicate OK [12:03:49]wFMCommunicate request_size=38 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 74 01 00 35 04 06 00 49 8C 66 55 52 41 [12:03:49]Write to MH i2c: E2 29 00 87 77 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 74 01 00 35 04 06 00 49 8C 66 55 52 41 00 00 36 [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 03 00 87 77 00 90 00 72 [12:03:49]RAPDU: 90 00 [12:03:49]wFMCommunicate OK [12:03:49]wFMCommunicate request_size=4 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 0D 03 02 [12:03:49]Write to MH i2c: E2 08 00 88 77 80 0D 03 02 00 00 00 00 7A [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 0B 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 0B 00 88 77 00 6E 64 03 A7 BA 80 5A 1A 90 00 A5 [12:03:49]RAPDU: 6E 64 03 A7 BA 80 5A 1A 90 00 [12:03:49]wFMCommunicate OK [12:03:49]SAM_PROTO_SignData done [12:03:49]FM_MakeSignedData done [12:03:49]CreateOFDProtocolMessage [12:03:49]wFMCommunicate request_size=4 [12:03:49]MH_SAM_APDU [12:03:49]CAPDU: 80 11 00 00 [12:03:49]Write to MH i2c: E2 08 00 89 77 80 11 00 00 00 00 00 00 7A [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:49]Read from MH i2c: E2 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 17 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: E2 17 00 89 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CA [12:03:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:03:49]wFMCommunicate OK [12:03:49]CreateOFDProtocolMessage done [12:03:49]OFDSenderStorePacket 95392 [12:03:49]StoreOFDPacket docnum=95392 [12:03:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 C3 E7 23 01 07 02 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 57 00 00 00 F4 03 04 00 2E 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 9F 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 74 01 00 35 04 06 00 49 8C 66 55 52 41 6E 64 03 A7 BA 80 5A 1A [12:03:49]CheckFolder [12:03:49]dirname=/storage/ofd_packets [12:03:49]CheckFolder done [12:03:49]ProducePacketName [12:03:49]name=ofd_packets/00095392 [12:03:49]NVStorageSaveData ofd_packets/00095392 [12:03:49]File name is /storage/ofd_packets/00095392 [12:03:49]Write 329 bytes [12:03:49]NVStorageSaveData done [12:03:49]OFDSenderStorePacket done [12:03:49]KKMCreateOFDPacket done [12:03:49]NVStorageSaveData kkm_last_timestamp [12:03:49]File name is /storage/kkm_last_timestamp [12:03:49]Write 4 bytes [12:03:49]NVStorageSaveData done [12:03:49]ExternCall_PrintAddStr [12:03:49]wPrintStart [12:03:49]Write to MH i2c: 01 00 00 8A 77 01 [12:03:49]Write i2c OK [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 07 00 [12:03:49]MH_I2C_Read... [12:03:49]Read from MH i2c: 01 07 00 8A 77 00 80 00 00 00 FF 0F 96 [12:03:49]RasterBufferAndPrint [12:03:49]line Счет N : (1)196381 [12:03:49]line ИНН: 02508201610067 [12:03:49]line Контрольно-Кассовый Чек [12:03:49]line ВОЗВРАТ ПРОДАЖИ [12:03:49]line ТРК (МРК, ГНК) : 32 [12:03:49]line Товар: 2710124130 [12:03:49]line Аи-92-К-5 [12:03:49]line 15.900 * 62.90 [12:03:49]line = 1000.11 [12:03:49]line НДС 12% НСП 1% [12:03:49]line > о реализуемом товаре [12:03:49]line ОКРУГЛЕНИЕ: -0.11 [12:03:49]line ИТОГО: 1000.00 [12:03:49]line НСП 1% : 8.85 [12:03:49]line НДС 12% : 106.21 [12:03:49]line Наличными: 1000.00 [12:03:49]line Безнал.: 0.00 [12:03:49]line Место: АЗС № 6 "Партнер Нефть" [12:03:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:03:49]line СНО: Общий режим [12:03:49]line Чек 87 13.03.2024 12:03 [12:03:49]line Смена: 328 ФФД: 1.0 [12:03:49]line ЗНМ: 0300000009 [12:03:49]line РНМ: 0000000000090555 [12:03:49]line Версия ККМ: 001 [12:03:49]line ФД осн.: 95391 [12:03:49]line ФМ осн.: 0000000000874811 [12:03:49]line ФМ: 0000000000874811 [12:03:49]line ФД: 95392 [12:03:49]line ФПД: 80867361116737 [12:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120358&type=2&operation_type=1&fn_number=0000000000874811&fd_number=95392&fm=80867361116737&tin=02508201610067®Number=0000000000090555&sum=100000 [12:03:50]OFD Sender: Processing packet 95392 [packets to send 30, broken 29] [12:03:50]ProducePacketName [12:03:50]name=ofd_packets/00095392 [12:03:50]OFD Sender: To server: pG, [12:03:50]CommunicateWithHost lk.salyk.kg:30040 [12:03:50]ConnectInit lk.salyk.kg [12:03:50]written 0, free lines is 4095 [12:03:50]Connected sock=11 [12:03:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 2B 01 00 00 C3 E7 23 01 07 02 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 57 00 00 00 F4 03 04 00 2E 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 27 04 04 00 9F 74 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 74 01 00 35 04 06 00 49 8C 66 55 52 41 6E 64 03 A7 BA 80 5A 1A [12:03:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 77 2D 47 00 57 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A0 74 01 00 F4 03 04 00 81 41 F1 65 B6 04 01 00 00 7B B6 B8 20 E0 B8 38 D1 [12:03:50]CommunicateWithHost err = 0 [12:03:50]CheckOFDResponse [12:03:50]1017 (14) - 77093643461234 [12:03:50]1041 (16) - 0000000000874811 [12:03:50]1040 (4) - 95392 [12:03:50]1012 (4) - 13.03.2024 06:02 [12:03:50]1206 (1) - 0 [12:03:50]OFD Sender: Remove packet 95392 [12:03:50]ProducePacketName [12:03:50]name=ofd_packets/00095392 [12:03:50]NVStorageDeleteData [12:03:50]Write to MH i2c: 01 00 00 B5 77 2C [12:03:50]Write i2c OK [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: 01 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: 01 07 00 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: 01 07 00 B5 77 00 80 00 00 00 52 0D 12 [12:03:50]RasterBufferAndPrint [12:03:50]line [12:03:50]line [12:03:50]line [12:03:50]line [12:03:50]line [12:03:50]written 0, free lines is 3417 [12:03:50]process_action close_receipt done [12:03:50]requested_data is exist [12:03:50]produce_requested_data [12:03:50]requested_item fm.sn is exist - process it [12:03:50]wFMCommunicate request_size=4 [12:03:50]MH_SAM_APDU [12:03:50]CAPDU: 80 11 00 00 [12:03:50]Write to MH i2c: E2 08 00 BC 77 80 11 00 00 00 00 00 00 AD [12:03:50]Write i2c OK [12:03:50]MH_I2C_Read... [12:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:50]Read from MH i2c: E2 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 17 00 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 17 00 BC 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FD [12:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:03:50]wFMCommunicate OK [12:03:50]requested_item fd.num is exist - process it [12:03:50]SAM_PROTO_GetFieldsCounters [12:03:50]wFMCommunicate request_size=4 [12:03:50]MH_SAM_APDU [12:03:50]CAPDU: 80 13 00 00 [12:03:50]Write to MH i2c: E2 08 00 BD 77 80 13 00 00 00 00 00 00 B0 [12:03:50]Write i2c OK [12:03:50]MH_I2C_Read... [12:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:50]Read from MH i2c: E2 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 62 00 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 62 00 BD 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A0 74 01 00 0E 04 04 00 48 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 30 [12:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A0 74 01 00 0E 04 04 00 48 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 [12:03:50]wFMCommunicate OK [12:03:50]SAM_PROTO_GetFieldsCounters done [12:03:50]requested_item shift.num is exist - process it [12:03:50]requested_item shift.opened is exist - process it [12:03:50]req_shift_opened [12:03:50]FM_GetShiftState [12:03:50]SAM_PROTO_GetShiftState [12:03:50]wFMCommunicate request_size=4 [12:03:50]MH_SAM_APDU [12:03:50]CAPDU: 80 13 01 00 [12:03:50]Write to MH i2c: E2 08 00 BE 77 80 13 01 00 00 00 00 00 B2 [12:03:50]Write i2c OK [12:03:50]MH_I2C_Read... [12:03:50]OFD Sender: No OFD packet to send [12:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:50]Read from MH i2c: E2 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 0E 00 [12:03:50]MH_I2C_Read... [12:03:50]Read from MH i2c: E2 0E 00 BE 77 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 97 [12:03:50]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:03:50]wFMCommunicate OK [12:03:50]SAM_PROTO_GetShiftState done [12:03:50]FM_GetShiftState done [12:03:50]req_shift_opened done [12:03:50]requested_item shift.open_date is exist - process it [12:03:50]req_shift_open_date [12:03:50]req_shift_open_date done [12:03:50]produce_requested_data done [12:03:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95392,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:03:50]process_action_free close_receipt [12:03:50]json_value_free [12:03:50]json_value_free done [12:03:50]process_json_proto returns [12:03:50]Send response to host [12:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95392,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:03:50]free response buf [12:03:50]execute_script done [12:03:50]execute_script returns [12:03:50]free content buf [12:03:50]Sock 8.Close socket [12:03:50]Sock 8.Thread stoped [12:03:51]accept exits with 9 [12:03:51]New connection [12:03:51]New thread 3066813796 created [12:03:51]Thread 3066957156 joined [12:03:51]Waiting for new connection... [12:03:51] Sock 9.Parse request [12:03:51]Sock 9.Check first char [12:03:51]Sock 9.First char is OK [12:03:51]request: POST /json_proto HTTP/1.0 [12:03:51]Method: POST [12:03:51]URL: /json_proto [12:03:51]Method is POST - this is cgi request [12:03:51]url: /json_proto [12:03:51]query_string will be loaded in cgi processing [12:03:51]execute_cgi json_proto POST (null) [12:03:51]execute_cgi path=json_proto method=POST [12:03:51]POST find Content-Length [12:03:51]Host: 172.17.62.67:8080 [12:03:51]Content-Length: 679 [12:03:51]Content-Type: application/json [12:03:51] [12:03:51]POST finish read [12:03:51]Found Content-Length = 679 [12:03:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196381", "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" : 62.90, "quantity" : 15.560, "sum" : 978.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 978.00, "payments": [ { "type": 0, "sum" : 978.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:51]execute_script... [12:03:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196381", "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" : 62.90, "quantity" : 15.560, "sum" : 978.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 978.00, "payments": [ { "type": 0, "sum" : 978.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:51]POST & json_proto [12:03:51]process_json_proto [12:03:51]json parsed OK: [12:03:51]protocol is kg_v1.0 [12:03:51]action value=close_receipt [12:03:51]process_action close_receipt [12:03:51]cmd_close_receipt [12:03:51]MH_GetDate [12:03:51]Write to MH i2c: F0 00 00 BF 77 25 [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 05 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: F0 05 00 BF 77 00 31 96 F1 65 47 [12:03:51]GetLastDocTimeStamp 1710331438 [12:03:51]current date 1710331441 [12:03:51]FM_GetShiftState [12:03:51]SAM_PROTO_GetShiftState [12:03:51]wFMCommunicate request_size=4 [12:03:51]MH_SAM_APDU [12:03:51]CAPDU: 80 13 01 00 [12:03:51]Write to MH i2c: E2 08 00 C0 77 80 13 01 00 00 00 00 00 B4 [12:03:51]Write i2c OK [12:03:51]MH_I2C_Read... [12:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:51]Read from MH i2c: E2 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 0E 00 [12:03:51]MH_I2C_Read... [12:03:51]Read from MH i2c: E2 0E 00 C0 77 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 99 [12:03:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:03:51]wFMCommunicate OK [12:03:51]SAM_PROTO_GetShiftState done [12:03:51]FM_GetShiftState done [12:03:51]opened in 1710288279 [12:03:51]opened+sec_in_day 1710374679 [12:03:51]quantity*price = 97872 [12:03:51]sum+1 = 97873 [12:03:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 978.00 Внесено: 1000.00 СДАЧА: 22.00 НСП 1% : 8.66 НДС 12% : 103.93 Наличными: 978.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 88 13.03.2024 12:04 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95393 ФПД: 198489404889690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120401&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95393&fm=198489404889690&tin=02508201610067®Number=0000000000090555&sum=97800 [12:03:52]StoreToDocumentArchive [12:03:52]shift 328 fd 95393 [12:03:52]save to /storage/0328/doc_00095393 [12:03:52]save last doc name /storage/0328/doc_00095393 to /storage/kkm_last_doc_name [12:03:52]save OK [12:03:52]Clear old archive folders... [12:03:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:52]tlvbuf is 01A31F80 [12:03:52]SAM_PROTO_ClearQueue [12:03:52]wFMCommunicate request_size=4 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 09 00 00 [12:03:52]Write to MH i2c: E2 08 00 CD 77 80 09 00 00 00 00 00 00 B6 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 CD 77 00 90 00 B8 [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]SAM_PROTO_ClearQueue done [12:03:52]KKMCreateOFDPacket [12:03:52]OFDProtocolAddRootSTLVToBuf [12:03:52]FM_MakeSignedData [12:03:52]FM_MakeSignedData [12:03:52]SAM_PROTO_SignData [12:03:52]wFMCommunicate request_size=4 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 01 02 [12:03:52]Write to MH i2c: E2 08 00 CE 77 80 0D 01 02 00 00 00 00 BE [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 CE 77 00 90 00 B9 [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]wFMCommunicate request_size=255 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 50 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 28 00 00 00 00 07 04 06 00 08 7E 01 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 31 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 74 01 00 35 04 06 00 B4 [12:03:52]Write to MH i2c: E2 02 01 CF 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 50 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 28 00 00 00 00 07 04 06 00 08 7E 01 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 31 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 74 01 00 35 04 06 00 B4 00 00 FD [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 CF 77 00 90 00 BA [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]wFMCommunicate request_size=10 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 02 02 05 86 6A 78 5A 5A [12:03:52]Write to MH i2c: E2 0D 00 D0 77 80 0D 02 02 05 00 86 6A 78 5A 5A 00 00 E7 [12:03:52]Write i2c OK [12:03:52]MH_I2C_Read... [12:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:52]Read from MH i2c: E2 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 [12:03:52]MH_I2C_Read... [12:03:52]Read from MH i2c: E2 03 00 D0 77 00 90 00 BB [12:03:52]RAPDU: 90 00 [12:03:52]wFMCommunicate OK [12:03:52]wFMCommunicate request_size=4 [12:03:52]MH_SAM_APDU [12:03:52]CAPDU: 80 0D 03 02 [12:03:52]Write to MH i2c: E2 08 00 D1 77 80 0D 03 02 00 00 00 00 C3 [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:53]Read from MH i2c: E2 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 0B 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 0B 00 D1 77 00 5D 37 EF 05 B2 7D F2 42 90 00 AF [12:03:53]RAPDU: 5D 37 EF 05 B2 7D F2 42 90 00 [12:03:53]wFMCommunicate OK [12:03:53]SAM_PROTO_SignData done [12:03:53]FM_MakeSignedData done [12:03:53]CreateOFDProtocolMessage [12:03:53]wFMCommunicate request_size=4 [12:03:53]MH_SAM_APDU [12:03:53]CAPDU: 80 11 00 00 [12:03:53]Write to MH i2c: E2 08 00 D2 77 80 11 00 00 00 00 00 00 C3 [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:53]Read from MH i2c: E2 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 17 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: E2 17 00 D2 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 13 [12:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:03:53]wFMCommunicate OK [12:03:53]CreateOFDProtocolMessage done [12:03:53]OFDSenderStorePacket 95393 [12:03:53]StoreOFDPacket docnum=95393 [12:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1F 1A 07 01 C9 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 50 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 28 00 00 00 00 07 04 06 00 08 7E 01 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 31 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 74 01 00 35 04 06 00 B4 86 6A 78 5A 5A 5D 37 EF 05 B2 7D F2 42 [12:03:53]CheckFolder [12:03:53]dirname=/storage/ofd_packets [12:03:53]CheckFolder done [12:03:53]ProducePacketName [12:03:53]name=ofd_packets/00095393 [12:03:53]NVStorageSaveData ofd_packets/00095393 [12:03:53]File name is /storage/ofd_packets/00095393 [12:03:53]Write 301 bytes [12:03:53]NVStorageSaveData done [12:03:53]OFDSenderStorePacket done [12:03:53]KKMCreateOFDPacket done [12:03:53]NVStorageSaveData kkm_last_timestamp [12:03:53]File name is /storage/kkm_last_timestamp [12:03:53]Write 4 bytes [12:03:53]NVStorageSaveData done [12:03:53]ExternCall_PrintAddStr [12:03:53]wPrintStart [12:03:53]Write to MH i2c: 01 00 00 D3 77 4A [12:03:53]Write i2c OK [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 07 00 [12:03:53]MH_I2C_Read... [12:03:53]Read from MH i2c: 01 07 00 D3 77 00 80 00 00 00 FF 0F DF [12:03:53]RasterBufferAndPrint [12:03:53]line Счет N : (1)196381 [12:03:53]line ИНН: 02508201610067 [12:03:53]line Контрольно-Кассовый Чек [12:03:53]line ПРОДАЖА [12:03:53]line ТРК (МРК, ГНК) : 32 [12:03:53]line Товар: 2710124130 [12:03:53]line Аи-92-К-5 [12:03:53]line 15.560 * 62.90 [12:03:53]line = 978.72 [12:03:53]line НДС 12% НСП 1% [12:03:53]line > о реализуемом товаре [12:03:53]line ОКРУГЛЕНИЕ: -0.72 [12:03:53]line ИТОГО: 978.00 [12:03:53]line Внесено: 1000.00 [12:03:53]line СДАЧА: 22.00 [12:03:53]line НСП 1% : 8.66 [12:03:53]line НДС 12% : 103.93 [12:03:53]line Наличными: 978.00 [12:03:53]line Безнал.: 0.00 [12:03:53]line Место: АЗС № 6 "Партнер Нефть" [12:03:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:03:53]line СНО: Общий режим [12:03:53]line Чек 88 13.03.2024 12:04 [12:03:53]line Смена: 328 ФФД: 1.0 [12:03:53]line ЗНМ: 0300000009 [12:03:53]line РНМ: 0000000000090555 [12:03:53]line Версия ККМ: 001 [12:03:53]line ФМ: 0000000000874811 [12:03:53]line ФД: 95393 [12:03:53]line ФПД: 198489404889690 [12:03:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120401&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95393&fm=198489404889690&tin=02508201610067®Number=0000000000090555&sum=97800 [12:03:53]OFD Sender: Processing packet 95393 [packets to send 30, broken 29] [12:03:53]ProducePacketName [12:03:53]name=ofd_packets/00095393 [12:03:53]OFD Sender: To server: pG, [12:03:53]CommunicateWithHost lk.salyk.kg:30040 [12:03:53]ConnectInit lk.salyk.kg [12:03:53]written 0, free lines is 4095 [12:03:53]Connected sock=10 [12:03:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1F 1A 07 01 C9 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 50 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 28 00 00 00 00 07 04 06 00 08 7E 01 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 31 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 74 01 00 35 04 06 00 B4 86 6A 78 5A 5A 5D 37 EF 05 B2 7D F2 42 [12:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 BB 00 47 00 BD 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A1 74 01 00 F4 03 04 00 85 41 F1 65 B6 04 01 00 00 C7 BB 19 91 D7 49 A6 2D [12:03:54]CommunicateWithHost err = 0 [12:03:54]CheckOFDResponse [12:03:54]1017 (14) - 77093643461234 [12:03:54]1041 (16) - 0000000000874811 [12:03:54]1040 (4) - 95393 [12:03:54]1012 (4) - 13.03.2024 06:02 [12:03:54]1206 (1) - 0 [12:03:54]OFD Sender: Remove packet 95393 [12:03:54]ProducePacketName [12:03:54]name=ofd_packets/00095393 [12:03:54]NVStorageDeleteData [12:03:54]Write to MH i2c: 01 00 00 FE 77 75 [12:03:54]Write i2c OK [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: 01 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: 01 07 00 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: 01 07 00 FE 77 00 80 00 00 00 58 0D 61 [12:03:54]RasterBufferAndPrint [12:03:54]line [12:03:54]line [12:03:54]line [12:03:54]line [12:03:54]line [12:03:54]written 0, free lines is 3430 [12:03:54]process_action close_receipt done [12:03:54]requested_data is exist [12:03:54]produce_requested_data [12:03:54]requested_item fm.sn is exist - process it [12:03:54]wFMCommunicate request_size=4 [12:03:54]MH_SAM_APDU [12:03:54]CAPDU: 80 11 00 00 [12:03:54]Write to MH i2c: E2 08 00 05 78 80 11 00 00 00 00 00 00 F7 [12:03:54]Write i2c OK [12:03:54]MH_I2C_Read... [12:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:54]Read from MH i2c: E2 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: E2 17 00 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: E2 17 00 05 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 47 [12:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:03:54]wFMCommunicate OK [12:03:54]requested_item fd.num is exist - process it [12:03:54]SAM_PROTO_GetFieldsCounters [12:03:54]wFMCommunicate request_size=4 [12:03:54]MH_SAM_APDU [12:03:54]CAPDU: 80 13 00 00 [12:03:54]Write to MH i2c: E2 08 00 06 78 80 13 00 00 00 00 00 00 FA [12:03:54]Write i2c OK [12:03:54]MH_I2C_Read... [12:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:54]Read from MH i2c: E2 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: E2 62 00 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: E2 62 00 06 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A1 74 01 00 0E 04 04 00 48 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 7E [12:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A1 74 01 00 0E 04 04 00 48 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 [12:03:54]wFMCommunicate OK [12:03:54]SAM_PROTO_GetFieldsCounters done [12:03:54]requested_item shift.num is exist - process it [12:03:54]requested_item shift.opened is exist - process it [12:03:54]req_shift_opened [12:03:54]FM_GetShiftState [12:03:54]SAM_PROTO_GetShiftState [12:03:54]wFMCommunicate request_size=4 [12:03:54]MH_SAM_APDU [12:03:54]CAPDU: 80 13 01 00 [12:03:54]Write to MH i2c: E2 08 00 07 78 80 13 01 00 00 00 00 00 FC [12:03:54]Write i2c OK [12:03:54]MH_I2C_Read... [12:03:54]OFD Sender: No OFD packet to send [12:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:54]Read from MH i2c: E2 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: E2 0E 00 [12:03:54]MH_I2C_Read... [12:03:54]Read from MH i2c: E2 0E 00 07 78 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E1 [12:03:54]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:03:54]wFMCommunicate OK [12:03:54]SAM_PROTO_GetShiftState done [12:03:54]FM_GetShiftState done [12:03:54]req_shift_opened done [12:03:54]requested_item shift.open_date is exist - process it [12:03:54]req_shift_open_date [12:03:54]req_shift_open_date done [12:03:54]produce_requested_data done [12:03:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95393,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:03:54]process_action_free close_receipt [12:03:54]json_value_free [12:03:54]json_value_free done [12:03:54]process_json_proto returns [12:03:54]Send response to host [12:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95393,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:03:54]free response buf [12:03:54]execute_script done [12:03:54]execute_script returns [12:03:54]free content buf [12:03:54]Sock 9.Close socket [12:03:54]Sock 9.Thread stoped [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:28]accept exits with 8 [12:05:28]New connection [12:05:28]New thread 3066957156 created [12:05:28]Thread 3066813796 joined [12:05:28]Waiting for new connection... [12:05:28] Sock 8.Parse request [12:05:28]Sock 8.Check first char [12:05:28]Sock 8.First char is OK [12:05:28]request: POST /json_proto HTTP/1.0 [12:05:28]Method: POST [12:05:28]URL: /json_proto [12:05:28]Method is POST - this is cgi request [12:05:28]url: /json_proto [12:05:28]query_string will be loaded in cgi processing [12:05:28]execute_cgi json_proto POST (null) [12:05:28]execute_cgi path=json_proto method=POST [12:05:28]POST find Content-Length [12:05:28]Host: 172.17.62.67:8080 [12:05:28]Content-Length: 675 [12:05:28]Content-Type: application/json [12:05:28] [12:05:28]POST finish read [12:05:28]Found Content-Length = 675 [12:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:28]execute_script... [12:05:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 31.300, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:28]POST & json_proto [12:05:28]process_json_proto [12:05:28]json parsed OK: [12:05:28]protocol is kg_v1.0 [12:05:28]action value=close_receipt [12:05:28]process_action close_receipt [12:05:28]cmd_close_receipt [12:05:28]MH_GetDate [12:05:28]Write to MH i2c: F0 00 00 08 78 6F [12:05:28]Write i2c OK [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: F0 [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: F0 05 00 [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: F0 05 00 08 78 00 93 96 F1 65 F3 [12:05:28]GetLastDocTimeStamp 1710331441 [12:05:28]current date 1710331539 [12:05:28]FM_GetShiftState [12:05:28]SAM_PROTO_GetShiftState [12:05:28]wFMCommunicate request_size=4 [12:05:28]MH_SAM_APDU [12:05:28]CAPDU: 80 13 01 00 [12:05:28]Write to MH i2c: E2 08 00 09 78 80 13 01 00 00 00 00 00 FE [12:05:28]Write i2c OK [12:05:28]MH_I2C_Read... [12:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:28]Read from MH i2c: E2 [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: E2 0E 00 [12:05:28]MH_I2C_Read... [12:05:28]Read from MH i2c: E2 0E 00 09 78 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E3 [12:05:28]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:05:28]wFMCommunicate OK [12:05:28]SAM_PROTO_GetShiftState done [12:05:28]FM_GetShiftState done [12:05:28]opened in 1710288279 [12:05:28]opened+sec_in_day 1710374679 [12:05:28]quantity*price = 200007 [12:05:28]sum+1 = 200008 [12:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 89 13.03.2024 12:05 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95394 ФПД: 161778602766692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120539&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95394&fm=161778602766692&tin=02508201610067®Number=0000000000090555&sum=200000 [12:05:29]StoreToDocumentArchive [12:05:29]shift 328 fd 95394 [12:05:29]save to /storage/0328/doc_00095394 [12:05:29]save last doc name /storage/0328/doc_00095394 to /storage/kkm_last_doc_name [12:05:29]save OK [12:05:29]Clear old archive folders... [12:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:05:29]tlvbuf is 00051400 [12:05:29]SAM_PROTO_ClearQueue [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 09 00 00 [12:05:29]Write to MH i2c: E2 08 00 16 78 80 09 00 00 00 00 00 00 00 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 03 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 03 00 16 78 00 90 00 02 [12:05:29]RAPDU: 90 00 [12:05:29]wFMCommunicate OK [12:05:29]SAM_PROTO_ClearQueue done [12:05:29]KKMCreateOFDPacket [12:05:29]OFDProtocolAddRootSTLVToBuf [12:05:29]FM_MakeSignedData [12:05:29]FM_MakeSignedData [12:05:29]SAM_PROTO_SignData [12:05:29]wFMCommunicate request_size=4 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 0D 01 02 [12:05:29]Write to MH i2c: E2 08 00 17 78 80 0D 01 02 00 00 00 00 08 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:29]Read from MH i2c: E2 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 03 00 [12:05:29]MH_I2C_Read... [12:05:29]Read from MH i2c: E2 03 00 17 78 00 90 00 03 [12:05:29]RAPDU: 90 00 [12:05:29]wFMCommunicate OK [12:05:29]wFMCommunicate request_size=255 [12:05:29]MH_SAM_APDU [12:05:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 93 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 74 01 00 35 04 06 00 [12:05:29]Write to MH i2c: E2 02 01 18 78 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 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 93 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 74 01 00 35 04 06 00 00 00 E0 [12:05:29]Write i2c OK [12:05:29]MH_I2C_Read... [12:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:30]Read from MH i2c: E2 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 03 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 03 00 18 78 00 90 00 04 [12:05:30]RAPDU: 90 00 [12:05:30]wFMCommunicate OK [12:05:30]wFMCommunicate request_size=11 [12:05:30]MH_SAM_APDU [12:05:30]CAPDU: 80 0D 02 02 06 93 23 04 26 71 64 [12:05:30]Write to MH i2c: E2 0E 00 19 78 80 0D 02 02 06 00 93 23 04 26 71 64 00 00 CC [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:30]Read from MH i2c: E2 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 03 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 03 00 19 78 00 90 00 05 [12:05:30]RAPDU: 90 00 [12:05:30]wFMCommunicate OK [12:05:30]wFMCommunicate request_size=4 [12:05:30]MH_SAM_APDU [12:05:30]CAPDU: 80 0D 03 02 [12:05:30]Write to MH i2c: E2 08 00 1A 78 80 0D 03 02 00 00 00 00 0D [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:30]Read from MH i2c: E2 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 0B 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 0B 00 1A 78 00 43 B1 CD 56 5C 1F 06 75 90 00 1B [12:05:30]RAPDU: 43 B1 CD 56 5C 1F 06 75 90 00 [12:05:30]wFMCommunicate OK [12:05:30]SAM_PROTO_SignData done [12:05:30]FM_MakeSignedData done [12:05:30]CreateOFDProtocolMessage [12:05:30]wFMCommunicate request_size=4 [12:05:30]MH_SAM_APDU [12:05:30]CAPDU: 80 11 00 00 [12:05:30]Write to MH i2c: E2 08 00 1B 78 80 11 00 00 00 00 00 00 0D [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:30]Read from MH i2c: E2 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 17 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: E2 17 00 1B 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5D [12:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:05:30]wFMCommunicate OK [12:05:30]CreateOFDProtocolMessage done [12:05:30]OFDSenderStorePacket 95394 [12:05:30]StoreOFDPacket docnum=95394 [12:05:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 6A 70 08 01 A2 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 93 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 74 01 00 35 04 06 00 93 23 04 26 71 64 43 B1 CD 56 5C 1F 06 75 [12:05:30]CheckFolder [12:05:30]dirname=/storage/ofd_packets [12:05:30]CheckFolder done [12:05:30]ProducePacketName [12:05:30]name=ofd_packets/00095394 [12:05:30]NVStorageSaveData ofd_packets/00095394 [12:05:30]File name is /storage/ofd_packets/00095394 [12:05:30]Write 302 bytes [12:05:30]NVStorageSaveData done [12:05:30]OFDSenderStorePacket done [12:05:30]KKMCreateOFDPacket done [12:05:30]NVStorageSaveData kkm_last_timestamp [12:05:30]File name is /storage/kkm_last_timestamp [12:05:30]Write 4 bytes [12:05:30]NVStorageSaveData done [12:05:30]ExternCall_PrintAddStr [12:05:30]wPrintStart [12:05:30]Write to MH i2c: 01 00 00 1C 78 94 [12:05:30]Write i2c OK [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: 01 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: 01 07 00 [12:05:30]MH_I2C_Read... [12:05:30]Read from MH i2c: 01 07 00 1C 78 00 80 00 00 00 FF 0F 29 [12:05:30]RasterBufferAndPrint [12:05:30]line Счет N : (1)196382 [12:05:30]line ИНН: 02508201610067 [12:05:30]line Контрольно-Кассовый Чек [12:05:30]line ПРОДАЖА [12:05:30]line ТРК (МРК, ГНК) : 33 [12:05:30]line Товар: 2710124130 [12:05:30]line SUPER 92-К-5 [12:05:30]line 31.300 * 63.90 [12:05:30]line = 2000.07 [12:05:30]line НДС 12% НСП 1% [12:05:30]line > о реализуемом товаре [12:05:30]line ОКРУГЛЕНИЕ: -0.07 [12:05:30]line ИТОГО: 2000.00 [12:05:30]line Внесено: 2000.00 [12:05:30]line СДАЧА: 0.00 [12:05:30]line НСП 1% : 17.70 [12:05:30]line НДС 12% : 212.40 [12:05:30]line Наличными: 2000.00 [12:05:30]line Безнал.: 0.00 [12:05:30]line Место: АЗС № 6 "Партнер Нефть" [12:05:30]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:05:30]line СНО: Общий режим [12:05:30]line Чек 89 13.03.2024 12:05 [12:05:30]line Смена: 328 ФФД: 1.0 [12:05:30]line ЗНМ: 0300000009 [12:05:30]line РНМ: 0000000000090555 [12:05:30]line Версия ККМ: 001 [12:05:30]line ФМ: 0000000000874811 [12:05:30]line ФД: 95394 [12:05:30]line ФПД: 161778602766692 [12:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120539&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95394&fm=161778602766692&tin=02508201610067®Number=0000000000090555&sum=200000 [12:05:30]OFD Sender: Processing packet 95394 [packets to send 30, broken 29] [12:05:30]ProducePacketName [12:05:30]name=ofd_packets/00095394 [12:05:30]OFD Sender: To server: pG, [12:05:30]CommunicateWithHost lk.salyk.kg:30040 [12:05:30]ConnectInit lk.salyk.kg [12:05:30]written 0, free lines is 4095 [12:05:30]Connected sock=10 [12:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 6A 70 08 01 A2 61 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 44 7A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 93 96 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 74 01 00 35 04 06 00 93 23 04 26 71 64 43 B1 CD 56 5C 1F 06 75 [12:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 87 44 47 00 C8 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A2 74 01 00 F4 03 04 00 E6 41 F1 65 B6 04 01 00 00 F2 22 2F 43 D4 2B 27 19 [12:05:30]CommunicateWithHost err = 0 [12:05:30]CheckOFDResponse [12:05:30]1017 (14) - 77093643461234 [12:05:30]1041 (16) - 0000000000874811 [12:05:30]1040 (4) - 95394 [12:05:30]1012 (4) - 13.03.2024 06:04 [12:05:30]1206 (1) - 0 [12:05:30]OFD Sender: Remove packet 95394 [12:05:30]ProducePacketName [12:05:30]name=ofd_packets/00095394 [12:05:30]NVStorageDeleteData [12:05:31]Write to MH i2c: 01 00 00 47 78 BF [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: 01 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: 01 07 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: 01 07 00 47 78 00 80 00 00 00 50 0D A3 [12:05:31]RasterBufferAndPrint [12:05:31]line [12:05:31]line [12:05:31]line [12:05:31]line [12:05:31]line [12:05:31]written 0, free lines is 3414 [12:05:31]process_action close_receipt done [12:05:31]requested_data is exist [12:05:31]produce_requested_data [12:05:31]requested_item fm.sn is exist - process it [12:05:31]wFMCommunicate request_size=4 [12:05:31]MH_SAM_APDU [12:05:31]CAPDU: 80 11 00 00 [12:05:31]Write to MH i2c: E2 08 00 4E 78 80 11 00 00 00 00 00 00 40 [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:31]Read from MH i2c: E2 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 17 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 17 00 4E 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 90 [12:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:05:31]wFMCommunicate OK [12:05:31]requested_item fd.num is exist - process it [12:05:31]SAM_PROTO_GetFieldsCounters [12:05:31]wFMCommunicate request_size=4 [12:05:31]MH_SAM_APDU [12:05:31]CAPDU: 80 13 00 00 [12:05:31]Write to MH i2c: E2 08 00 4F 78 80 13 00 00 00 00 00 00 43 [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:31]Read from MH i2c: E2 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 62 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 62 00 4F 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A2 74 01 00 0E 04 04 00 48 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 CB [12:05:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A2 74 01 00 0E 04 04 00 48 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 [12:05:31]wFMCommunicate OK [12:05:31]SAM_PROTO_GetFieldsCounters done [12:05:31]requested_item shift.num is exist - process it [12:05:31]requested_item shift.opened is exist - process it [12:05:31]req_shift_opened [12:05:31]FM_GetShiftState [12:05:31]SAM_PROTO_GetShiftState [12:05:31]wFMCommunicate request_size=4 [12:05:31]MH_SAM_APDU [12:05:31]CAPDU: 80 13 01 00 [12:05:31]Write to MH i2c: E2 08 00 50 78 80 13 01 00 00 00 00 00 45 [12:05:31]Write i2c OK [12:05:31]MH_I2C_Read... [12:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:31]Read from MH i2c: E2 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 0E 00 [12:05:31]MH_I2C_Read... [12:05:31]Read from MH i2c: E2 0E 00 50 78 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2A [12:05:31]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:05:31]wFMCommunicate OK [12:05:31]SAM_PROTO_GetShiftState done [12:05:31]FM_GetShiftState done [12:05:31]req_shift_opened done [12:05:31]requested_item shift.open_date is exist - process it [12:05:31]req_shift_open_date [12:05:31]req_shift_open_date done [12:05:31]produce_requested_data done [12:05:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95394,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:05:31]process_action_free close_receipt [12:05:31]json_value_free [12:05:31]json_value_free done [12:05:31]process_json_proto returns [12:05:31]Send response to host [12:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95394,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:05:31]free response buf [12:05:31]execute_script done [12:05:31]execute_script returns [12:05:31]free content buf [12:05:31]Sock 8.Close socket [12:05:31]Sock 8.Thread stoped [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]accept exits with 9 [12:07:56]New connection [12:07:56]New thread 3066813796 created [12:07:56]Thread 3066957156 joined [12:07:56]Waiting for new connection... [12:07:56] Sock 9.Parse request [12:07:56]Sock 9.Check first char [12:07:56]Sock 9.First char is OK [12:07:56]request: POST /json_proto HTTP/1.0 [12:07:56]Method: POST [12:07:56]URL: /json_proto [12:07:56]Method is POST - this is cgi request [12:07:56]url: /json_proto [12:07:56]query_string will be loaded in cgi processing [12:07:56]execute_cgi json_proto POST (null) [12:07:56]execute_cgi path=json_proto method=POST [12:07:56]POST find Content-Length [12:07:56]Host: 172.17.62.67:8080 [12:07:56]Content-Length: 677 [12:07:56]Content-Type: application/json [12:07:56] [12:07:56]POST finish read [12:07:56]Found Content-Length = 677 [12:07:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196384", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:56]execute_script... [12: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 : (1)196384", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:56]POST & json_proto [12:07:56]process_json_proto [12:07:56]json parsed OK: [12:07:56]protocol is kg_v1.0 [12:07:56]action value=close_receipt [12:07:56]process_action close_receipt [12:07:56]cmd_close_receipt [12:07:56]MH_GetDate [12:07:56]Write to MH i2c: F0 00 00 51 78 B8 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 05 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 05 00 51 78 00 27 97 F1 65 D1 [12:07:56]GetLastDocTimeStamp 1710331539 [12:07:56]current date 1710331687 [12:07:56]FM_GetShiftState [12:07:56]SAM_PROTO_GetShiftState [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 13 01 00 [12:07:56]Write to MH i2c: E2 08 00 52 78 80 13 01 00 00 00 00 00 47 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 52 78 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2C [12:07:56]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_GetShiftState done [12:07:56]FM_GetShiftState done [12:07:56]opened in 1710288279 [12:07:56]opened+sec_in_day 1710374679 [12:07:56]quantity*price = 50005 [12:07:56]sum+1 = 50007 [12:07:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 90 13.03.2024 12:08 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95395 ФПД: 87437204060262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120807&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95395&fm=87437204060262&tin=02508201610067®Number=0000000000090555&sum=50000 [12:07:57]StoreToDocumentArchive [12:07:57]shift 328 fd 95395 [12:07:57]save to /storage/0328/doc_00095395 [12:07:57]save last doc name /storage/0328/doc_00095395 to /storage/kkm_last_doc_name [12:07:57]save OK [12:07:57]Clear old archive folders... [12:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:57]tlvbuf is 01A46380 [12:07:57]SAM_PROTO_ClearQueue [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 09 00 00 [12:07:57]Write to MH i2c: E2 08 00 5F 78 80 09 00 00 00 00 00 00 49 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 5F 78 00 90 00 4B [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_ClearQueue done [12:07:57]KKMCreateOFDPacket [12:07:57]OFDProtocolAddRootSTLVToBuf [12:07:57]FM_MakeSignedData [12:07:57]FM_MakeSignedData [12:07:57]SAM_PROTO_SignData [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 01 02 [12:07:57]Write to MH i2c: E2 08 00 60 78 80 0D 01 02 00 00 00 00 51 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 60 78 00 90 00 4C [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]wFMCommunicate request_size=255 [12:07:57]MH_SAM_APDU [12:07: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 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5A 00 00 00 F4 03 04 00 27 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 74 01 00 35 04 06 00 4F [12:07:57]Write to MH i2c: E2 02 01 61 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5A 00 00 00 F4 03 04 00 27 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 74 01 00 35 04 06 00 4F 00 00 18 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 61 78 00 90 00 4D [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]wFMCommunicate request_size=10 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 02 02 05 86 0F 7C F8 66 [12:07:57]Write to MH i2c: E2 0D 00 62 78 80 0D 02 02 05 00 86 0F 7C F8 66 00 00 CD [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 62 78 00 90 00 4E [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 03 02 [12:07:58]Write to MH i2c: E2 08 00 63 78 80 0D 03 02 00 00 00 00 56 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0B 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0B 00 63 78 00 83 07 E4 E6 C0 36 A3 11 90 00 55 [12:07:58]RAPDU: 83 07 E4 E6 C0 36 A3 11 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_SignData done [12:07:58]FM_MakeSignedData done [12:07:58]CreateOFDProtocolMessage [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 11 00 00 [12:07:58]Write to MH i2c: E2 08 00 64 78 80 11 00 00 00 00 00 00 56 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 17 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 17 00 64 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A6 [12:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:07:58]wFMCommunicate OK [12:07:58]CreateOFDProtocolMessage done [12:07:58]OFDSenderStorePacket 95395 [12:07:58]StoreOFDPacket docnum=95395 [12:07:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 E6 6B 07 01 B6 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5A 00 00 00 F4 03 04 00 27 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 74 01 00 35 04 06 00 4F 86 0F 7C F8 66 83 07 E4 E6 C0 36 A3 11 [12:07:58]CheckFolder [12:07:58]dirname=/storage/ofd_packets [12:07:58]CheckFolder done [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00095395 [12:07:58]NVStorageSaveData ofd_packets/00095395 [12:07:58]File name is /storage/ofd_packets/00095395 [12:07:58]Write 301 bytes [12:07:58]NVStorageSaveData done [12:07:58]OFDSenderStorePacket done [12:07:58]KKMCreateOFDPacket done [12:07:58]NVStorageSaveData kkm_last_timestamp [12:07:58]File name is /storage/kkm_last_timestamp [12:07:58]Write 4 bytes [12:07:58]NVStorageSaveData done [12:07:58]ExternCall_PrintAddStr [12:07:58]wPrintStart [12:07:58]Write to MH i2c: 01 00 00 65 78 DD [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 65 78 00 80 00 00 00 FF 0F 72 [12:07:58]RasterBufferAndPrint [12:07:58]line Счет N : (1)196384 [12:07:58]line ИНН: 02508201610067 [12:07:58]line Контрольно-Кассовый Чек [12:07:58]line ПРОДАЖА [12:07:58]line ТРК (МРК, ГНК) : 12 [12:07:58]line Товар: 2710124130 [12:07:58]line Аи-92-К-5 [12:07:58]line 7.950 * 62.90 [12:07:58]line = 500.06 [12:07:58]line НДС 12% НСП 1% [12:07:58]line > о реализуемом товаре [12:07:58]line ОКРУГЛЕНИЕ: -0.06 [12:07:58]line ИТОГО: 500.00 [12:07:58]line Внесено: 500.00 [12:07:58]line СДАЧА: 0.00 [12:07:58]line НСП 1% : 4.42 [12:07:58]line НДС 12% : 53.10 [12:07:58]line Наличными: 500.00 [12:07:58]line Безнал.: 0.00 [12:07:58]line Место: АЗС № 6 "Партнер Нефть" [12:07:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:07:58]line СНО: Общий режим [12:07:58]line Чек 90 13.03.2024 12:08 [12:07:58]line Смена: 328 ФФД: 1.0 [12:07:58]line ЗНМ: 0300000009 [12:07:58]line РНМ: 0000000000090555 [12:07:58]line Версия ККМ: 001 [12:07:58]line ФМ: 0000000000874811 [12:07:58]line ФД: 95395 [12:07:58]line ФПД: 87437204060262 [12:07:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120807&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95395&fm=87437204060262&tin=02508201610067®Number=0000000000090555&sum=50000 [12:07:58]OFD Sender: Processing packet 95395 [packets to send 30, broken 29] [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00095395 [12:07:58]OFD Sender: To server: pG, [12:07:58]CommunicateWithHost lk.salyk.kg:30040 [12:07:58]ConnectInit lk.salyk.kg [12:07:58]written 0, free lines is 4095 [12:07:58]Connected sock=10 [12: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 34 38 31 31 0F 01 00 00 E6 6B 07 01 B6 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5A 00 00 00 F4 03 04 00 27 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 74 01 00 35 04 06 00 4F 86 0F 7C F8 66 83 07 E4 E6 C0 36 A3 11 [12:07:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 75 7F 47 00 83 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A3 74 01 00 F4 03 04 00 7A 42 F1 65 B6 04 01 00 00 9F 84 BA C2 8D 4C D6 68 [12:07:58]CommunicateWithHost err = 0 [12:07:58]CheckOFDResponse [12:07:58]1017 (14) - 77093643461234 [12:07:58]1041 (16) - 0000000000874811 [12:07:58]1040 (4) - 95395 [12:07:58]1012 (4) - 13.03.2024 06:06 [12:07:58]1206 (1) - 0 [12:07:58]OFD Sender: Remove packet 95395 [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00095395 [12:07:58]NVStorageDeleteData [12:07:58]Write to MH i2c: 01 00 00 90 78 08 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 90 78 00 80 00 00 00 49 0D E5 [12:07:58]RasterBufferAndPrint [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]line [12:07:58]written 0, free lines is 3407 [12:07:58]process_action close_receipt done [12:07:58]requested_data is exist [12:07:58]produce_requested_data [12:07:58]requested_item fm.sn is exist - process it [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 11 00 00 [12:07:58]Write to MH i2c: E2 08 00 97 78 80 11 00 00 00 00 00 00 89 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:59]Read from MH i2c: E2 17 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 97 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D9 [12:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:07:59]wFMCommunicate OK [12:07:59]requested_item fd.num is exist - process it [12:07:59]SAM_PROTO_GetFieldsCounters [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 13 00 00 [12:07:59]Write to MH i2c: E2 08 00 98 78 80 13 00 00 00 00 00 00 8C [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 62 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 62 00 98 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A3 74 01 00 0E 04 04 00 48 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 18 [12:07:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A3 74 01 00 0E 04 04 00 48 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 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_GetFieldsCounters done [12:07:59]requested_item shift.num is exist - process it [12:07:59]requested_item shift.opened is exist - process it [12:07:59]req_shift_opened [12:07:59]FM_GetShiftState [12:07:59]SAM_PROTO_GetShiftState [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 13 01 00 [12:07:59]Write to MH i2c: E2 08 00 99 78 80 13 01 00 00 00 00 00 8E [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]OFD Sender: No OFD packet to send [12:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0E 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0E 00 99 78 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 73 [12:07:59]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_GetShiftState done [12:07:59]FM_GetShiftState done [12:07:59]req_shift_opened done [12:07:59]requested_item shift.open_date is exist - process it [12:07:59]req_shift_open_date [12:07:59]req_shift_open_date done [12:07:59]produce_requested_data done [12:07:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95395,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:07:59]process_action_free close_receipt [12:07:59]json_value_free [12:07:59]json_value_free done [12:07:59]process_json_proto returns [12:07:59]Send response to host [12:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95395,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:07:59]free response buf [12:07:59]execute_script done [12:07:59]execute_script returns [12:07:59]free content buf [12:07:59]Sock 9.Close socket [12:07:59]Sock 9.Thread stoped [12:08:04]accept exits with 8 [12:08:04]New connection [12:08:04]New thread 3066957156 created [12:08:04]Thread 3066813796 joined [12:08:04]Waiting for new connection... [12:08:04] Sock 8.Parse request [12:08:04]Sock 8.Check first char [12:08:04]Sock 8.First char is OK [12:08:04]request: POST /json_proto HTTP/1.0 [12:08:04]Method: POST [12:08:04]URL: /json_proto [12:08:04]Method is POST - this is cgi request [12:08:04]url: /json_proto [12:08:04]query_string will be loaded in cgi processing [12:08:04]execute_cgi json_proto POST (null) [12:08:04]execute_cgi path=json_proto method=POST [12:08:04]POST find Content-Length [12:08:04]Host: 172.17.62.67:8080 [12:08:04]Content-Length: 682 [12:08:04]Content-Type: application/json [12:08:04] [12:08:04]POST finish read [12:08:04]Found Content-Length = 682 [12:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:08:04]execute_script... [12:08:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:08:04]POST & json_proto [12:08:04]process_json_proto [12:08:04]json parsed OK: [12:08:04]protocol is kg_v1.0 [12:08:04]action value=close_receipt [12:08:04]process_action close_receipt [12:08:04]cmd_close_receipt [12:08:04]MH_GetDate [12:08:04]Write to MH i2c: F0 00 00 9A 78 01 [12:08:04]Write i2c OK [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: F0 [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: F0 05 00 [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: F0 05 00 9A 78 00 2E 97 F1 65 21 [12:08:04]GetLastDocTimeStamp 1710331687 [12:08:04]current date 1710331694 [12:08:04]FM_GetShiftState [12:08:04]SAM_PROTO_GetShiftState [12:08:04]wFMCommunicate request_size=4 [12:08:04]MH_SAM_APDU [12:08:04]CAPDU: 80 13 01 00 [12:08:04]Write to MH i2c: E2 08 00 9B 78 80 13 01 00 00 00 00 00 90 [12:08:04]Write i2c OK [12:08:04]MH_I2C_Read... [12:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:04]Read from MH i2c: E2 [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: E2 0E 00 [12:08:04]MH_I2C_Read... [12:08:04]Read from MH i2c: E2 0E 00 9B 78 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 75 [12:08:04]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:08:04]wFMCommunicate OK [12:08:04]SAM_PROTO_GetShiftState done [12:08:04]FM_GetShiftState done [12:08:04]opened in 1710288279 [12:08:04]opened+sec_in_day 1710374679 [12:08:04]quantity*price = 100010 [12:08:04]sum+1 = 100012 [12:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 91 13.03.2024 12:08 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95396 ФПД: 139218862351234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120814&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95396&fm=139218862351234&tin=02508201610067®Number=0000000000090555&sum=100000 [12:08:05]StoreToDocumentArchive [12:08:05]shift 328 fd 95396 [12:08:05]save to /storage/0328/doc_00095396 [12:08:05]save last doc name /storage/0328/doc_00095396 to /storage/kkm_last_doc_name [12:08:05]save OK [12:08:05]Clear old archive folders... [12:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:05]tlvbuf is 01A4ED10 [12:08:05]SAM_PROTO_ClearQueue [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 09 00 00 [12:08:05]Write to MH i2c: E2 08 00 A8 78 80 09 00 00 00 00 00 00 92 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 A8 78 00 90 00 94 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]SAM_PROTO_ClearQueue done [12:08:05]KKMCreateOFDPacket [12:08:05]OFDProtocolAddRootSTLVToBuf [12:08:05]FM_MakeSignedData [12:08:05]FM_MakeSignedData [12:08:05]SAM_PROTO_SignData [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 01 02 [12:08:05]Write to MH i2c: E2 08 00 A9 78 80 0D 01 02 00 00 00 00 9A [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 A9 78 00 90 00 95 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=255 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B 00 00 00 F4 03 04 00 2E 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 74 01 00 35 04 06 00 7E [12:08:05]Write to MH i2c: E2 02 01 AA 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B 00 00 00 F4 03 04 00 2E 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 74 01 00 35 04 06 00 7E 00 00 47 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 AA 78 00 90 00 96 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=10 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 02 02 05 9E 6A D6 23 82 [12:08:05]Write to MH i2c: E2 0D 00 AB 78 80 0D 02 02 05 00 9E 6A D6 23 82 00 00 2A [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 03 00 AB 78 00 90 00 97 [12:08:05]RAPDU: 90 00 [12:08:05]wFMCommunicate OK [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 0D 03 02 [12:08:05]Write to MH i2c: E2 08 00 AC 78 80 0D 03 02 00 00 00 00 9F [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 0B 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 0B 00 AC 78 00 58 56 FC 88 71 5D 04 80 90 00 24 [12:08:05]RAPDU: 58 56 FC 88 71 5D 04 80 90 00 [12:08:05]wFMCommunicate OK [12:08:05]SAM_PROTO_SignData done [12:08:05]FM_MakeSignedData done [12:08:05]CreateOFDProtocolMessage [12:08:05]wFMCommunicate request_size=4 [12:08:05]MH_SAM_APDU [12:08:05]CAPDU: 80 11 00 00 [12:08:05]Write to MH i2c: E2 08 00 AD 78 80 11 00 00 00 00 00 00 9F [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:05]Read from MH i2c: E2 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 17 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: E2 17 00 AD 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EF [12:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:08:05]wFMCommunicate OK [12:08:05]CreateOFDProtocolMessage done [12:08:05]OFDSenderStorePacket 95396 [12:08:05]StoreOFDPacket docnum=95396 [12:08:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0F AA 07 01 58 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B 00 00 00 F4 03 04 00 2E 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 74 01 00 35 04 06 00 7E 9E 6A D6 23 82 58 56 FC 88 71 5D 04 80 [12:08:05]CheckFolder [12:08:05]dirname=/storage/ofd_packets [12:08:05]CheckFolder done [12:08:05]ProducePacketName [12:08:05]name=ofd_packets/00095396 [12:08:05]NVStorageSaveData ofd_packets/00095396 [12:08:05]File name is /storage/ofd_packets/00095396 [12:08:05]Write 301 bytes [12:08:05]NVStorageSaveData done [12:08:05]OFDSenderStorePacket done [12:08:05]KKMCreateOFDPacket done [12:08:05]NVStorageSaveData kkm_last_timestamp [12:08:05]File name is /storage/kkm_last_timestamp [12:08:05]Write 4 bytes [12:08:05]NVStorageSaveData done [12:08:05]ExternCall_PrintAddStr [12:08:05]wPrintStart [12:08:05]Write to MH i2c: 01 00 00 AE 78 26 [12:08:05]Write i2c OK [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 07 00 [12:08:05]MH_I2C_Read... [12:08:05]Read from MH i2c: 01 07 00 AE 78 00 80 00 00 00 FF 0F BB [12:08:05]RasterBufferAndPrint [12:08:05]line Счет N : (1)196385 [12:08:05]line ИНН: 02508201610067 [12:08:05]line Контрольно-Кассовый Чек [12:08:05]line ПРОДАЖА [12:08:05]line ТРК (МРК, ГНК) : 31 [12:08:05]line Товар: 2710124500 [12:08:05]line Аи-95-К-5 [12:08:05]line 14.390 * 69.50 [12:08:05]line = 1000.11 [12:08:05]line НДС 12% НСП 1% [12:08:05]line > о реализуемом товаре [12:08:05]line ОКРУГЛЕНИЕ: -0.11 [12:08:05]line ИТОГО: 1000.00 [12:08:05]line Внесено: 1000.00 [12:08:05]line СДАЧА: 0.00 [12:08:05]line НСП 1% : 8.85 [12:08:05]line НДС 12% : 106.21 [12:08:05]line Наличными: 1000.00 [12:08:05]line Безнал.: 0.00 [12:08:05]line Место: АЗС № 6 "Партнер Нефть" [12:08:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:08:05]line СНО: Общий режим [12:08:05]line Чек 91 13.03.2024 12:08 [12:08:05]line Смена: 328 ФФД: 1.0 [12:08:05]line ЗНМ: 0300000009 [12:08:05]line РНМ: 0000000000090555 [12:08:05]line Версия ККМ: 001 [12:08:05]line ФМ: 0000000000874811 [12:08:05]line ФД: 95396 [12:08:05]line ФПД: 139218862351234 [12:08:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120814&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95396&fm=139218862351234&tin=02508201610067®Number=0000000000090555&sum=100000 [12:08:05]written 0, free lines is 4095 [12:08:05]OFD Sender: Processing packet 95396 [packets to send 30, broken 29] [12:08:05]ProducePacketName [12:08:05]name=ofd_packets/00095396 [12:08:05]OFD Sender: To server: pG, [12:08:05]CommunicateWithHost lk.salyk.kg:30040 [12:08:05]ConnectInit lk.salyk.kg [12:08:06]Connected sock=10 [12:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 0F AA 07 01 58 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5B 00 00 00 F4 03 04 00 2E 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 74 01 00 35 04 06 00 7E 9E 6A D6 23 82 58 56 FC 88 71 5D 04 80 [12:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E1 5C 47 00 4D F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A4 74 01 00 F4 03 04 00 81 42 F1 65 B6 04 01 00 00 35 85 E0 92 9E 75 EB EC [12:08:06]CommunicateWithHost err = 0 [12:08:06]CheckOFDResponse [12:08:06]1017 (14) - 77093643461234 [12:08:06]1041 (16) - 0000000000874811 [12:08:06]1040 (4) - 95396 [12:08:06]1012 (4) - 13.03.2024 06:06 [12:08:06]1206 (1) - 0 [12:08:06]OFD Sender: Remove packet 95396 [12:08:06]ProducePacketName [12:08:06]name=ofd_packets/00095396 [12:08:06]NVStorageDeleteData [12:08:06]Write to MH i2c: 01 00 00 D9 78 51 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 07 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: 01 07 00 D9 78 00 80 00 00 00 4F 0D 34 [12:08:06]RasterBufferAndPrint [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]line [12:08:06]written 0, free lines is 3419 [12:08:06]process_action close_receipt done [12:08:06]requested_data is exist [12:08:06]produce_requested_data [12:08:06]requested_item fm.sn is exist - process it [12:08:06]wFMCommunicate request_size=4 [12:08:06]MH_SAM_APDU [12:08:06]CAPDU: 80 11 00 00 [12:08:06]Write to MH i2c: E2 08 00 E0 78 80 11 00 00 00 00 00 00 D2 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:06]Read from MH i2c: E2 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 17 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 17 00 E0 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 22 [12:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:08:06]wFMCommunicate OK [12:08:06]requested_item fd.num is exist - process it [12:08:06]SAM_PROTO_GetFieldsCounters [12:08:06]wFMCommunicate request_size=4 [12:08:06]MH_SAM_APDU [12:08:06]CAPDU: 80 13 00 00 [12:08:06]Write to MH i2c: E2 08 00 E1 78 80 13 00 00 00 00 00 00 D5 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:06]Read from MH i2c: E2 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 62 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 62 00 E1 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A4 74 01 00 0E 04 04 00 48 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 65 [12:08: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A4 74 01 00 0E 04 04 00 48 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 [12:08:06]wFMCommunicate OK [12:08:06]SAM_PROTO_GetFieldsCounters done [12:08:06]requested_item shift.num is exist - process it [12:08:06]requested_item shift.opened is exist - process it [12:08:06]req_shift_opened [12:08:06]FM_GetShiftState [12:08:06]SAM_PROTO_GetShiftState [12:08:06]wFMCommunicate request_size=4 [12:08:06]MH_SAM_APDU [12:08:06]CAPDU: 80 13 01 00 [12:08:06]Write to MH i2c: E2 08 00 E2 78 80 13 01 00 00 00 00 00 D7 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]OFD Sender: No OFD packet to send [12:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:06]Read from MH i2c: E2 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 0E 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 0E 00 E2 78 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 BC [12:08:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:08:06]wFMCommunicate OK [12:08:06]SAM_PROTO_GetShiftState done [12:08:06]FM_GetShiftState done [12:08:06]req_shift_opened done [12:08:06]requested_item shift.open_date is exist - process it [12:08:06]req_shift_open_date [12:08:06]req_shift_open_date done [12:08:06]produce_requested_data done [12:08:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95396,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:08:06]process_action_free close_receipt [12:08:06]json_value_free [12:08:06]json_value_free done [12:08:06]process_json_proto returns [12:08:06]Send response to host [12:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95396,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:08:06]free response buf [12:08:06]execute_script done [12:08:06]execute_script returns [12:08:06]free content buf [12:08:06]Sock 8.Close socket [12:08:06]Sock 8.Thread stoped [12:08:11]OFD Sender: No OFD packet to send [12:08:16]accept exits with 9 [12:08:16]New connection [12:08:16]New thread 3066813796 created [12:08:16]Thread 3066957156 joined [12:08:16]Waiting for new connection... [12:08:16] Sock 9.Parse request [12:08:16]Sock 9.Check first char [12:08:16]Sock 9.First char is OK [12:08:16]request: POST /json_proto HTTP/1.0 [12:08:16]Method: POST [12:08:16]URL: /json_proto [12:08:16]Method is POST - this is cgi request [12:08:16]url: /json_proto [12:08:16]query_string will be loaded in cgi processing [12:08:16]execute_cgi json_proto POST (null) [12:08:16]execute_cgi path=json_proto method=POST [12:08:16]POST find Content-Length [12:08:16]Host: 172.17.62.67:8080 [12:08:16]Content-Length: 1200 [12:08:16]Content-Type: application/json [12:08:16] [12:08:16]POST finish read [12:08:16]Found Content-Length = 1200 [12:08:16]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196383\u000A13.03.2024 12:02\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 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A81812\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:16]execute_script... [12:08:16]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196383\u000A13.03.2024 12:02\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 10.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 629.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\u000A81812\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:16]POST & json_proto [12:08:16]process_json_proto [12:08:16]json parsed OK: [12:08:16]protocol is kg_v1.0 [12:08:16]action value=print_text [12:08:16]process_action print_text [12:08:16]cmd_print_text [12:08:16]ExternCall_PrintAddStr [12:08:16]wPrintStart [12:08:16]Write to MH i2c: 01 00 00 E3 78 5B [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 07 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 07 00 E3 78 00 80 00 00 00 FF 0F F0 [12:08:16]RasterBufferAndPrint [12:08:16]line *****ТОВАРНЫЙ ЧЕК***** [12:08:16]line АЗС 6 [12:08:16]line Партнер нефть [12:08:16]line 02508201610067 [12:08:16]line Кассир : Сабырбек у. М. [12:08:16]line Счет N : (1)196383 [12:08:16]line 13.03.2024 12:02 [12:08:16]line ПРОДАЖА [12:08:16]line ТРК (МРК, ГНК): 42 [12:08:16]line Вид ГСМ : 2710124130 [12:08:16]line Аи-92-К-5 [12:08:16]line 10.000 x 62.90 [12:08:16]line ИТОГ: 629.00 [12:08:16]line Тип оплаты: Талоны: Топливная Карта [12:08:16]line 81812 [12:08:16]line ______________________ [12:08:16]line (подпись) [12:08:16]written 0, free lines is 4095 [12:08:16]OFD Sender: No OFD packet to send [12:08:16]Write to MH i2c: 01 00 00 F7 78 6F [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 07 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: 01 07 00 F7 78 00 80 00 00 00 66 0E 6A [12:08:16]RasterBufferAndPrint [12:08:16]line [12:08:16]line [12:08:16]line [12:08:16]line [12:08:16]line [12:08:16]written 0, free lines is 3693 [12:08:16]process_action print_text done [12:08:16]requested_data is exist [12:08:16]produce_requested_data [12:08:16]requested_item fm.sn is exist - process it [12:08:16]wFMCommunicate request_size=4 [12:08:16]MH_SAM_APDU [12:08:16]CAPDU: 80 11 00 00 [12:08:16]Write to MH i2c: E2 08 00 FE 78 80 11 00 00 00 00 00 00 F0 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:16]Read from MH i2c: E2 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 17 00 [12:08:16]MH_I2C_Read... [12:08:16]Read from MH i2c: E2 17 00 FE 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [12:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:08:16]wFMCommunicate OK [12:08:16]requested_item fd.num is exist - process it [12:08:16]SAM_PROTO_GetFieldsCounters [12:08:16]wFMCommunicate request_size=4 [12:08:16]MH_SAM_APDU [12:08:16]CAPDU: 80 13 00 00 [12:08:16]Write to MH i2c: E2 08 00 FF 78 80 13 00 00 00 00 00 00 F3 [12:08:16]Write i2c OK [12:08:16]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 62 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 62 00 FF 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A4 74 01 00 0E 04 04 00 48 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 83 [12:08:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A4 74 01 00 0E 04 04 00 48 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 [12:08:17]wFMCommunicate OK [12:08:17]SAM_PROTO_GetFieldsCounters done [12:08:17]requested_item shift.num is exist - process it [12:08:17]requested_item shift.opened is exist - process it [12:08:17]req_shift_opened [12:08:17]FM_GetShiftState [12:08:17]SAM_PROTO_GetShiftState [12:08:17]wFMCommunicate request_size=4 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 13 01 00 [12:08:17]Write to MH i2c: E2 08 00 00 79 80 13 01 00 00 00 00 00 F6 [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0E 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0E 00 00 79 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 DB [12:08:17]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:08:17]wFMCommunicate OK [12:08:17]SAM_PROTO_GetShiftState done [12:08:17]FM_GetShiftState done [12:08:17]req_shift_opened done [12:08:17]requested_item shift.open_date is exist - process it [12:08:17]req_shift_open_date [12:08:17]req_shift_open_date done [12:08:17]produce_requested_data done [12:08:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95396,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:08:17]process_action_free print_text [12:08:17]json_value_free [12:08:17]json_value_free done [12:08:17]process_json_proto returns [12:08:17]Send response to host [12:08:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95396,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:08:17]free response buf [12:08:17]execute_script done [12:08:17]execute_script returns [12:08:17]free content buf [12:08:17]Sock 9.Close socket [12:08:17]Sock 9.Thread stoped [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:44]accept exits with 8 [12:09:44]New connection [12:09:44]New thread 3066957156 created [12:09:44]Thread 3066813796 joined [12:09:44]Waiting for new connection... [12:09:44] Sock 8.Parse request [12:09:44]Sock 8.Check first char [12:09:44]Sock 8.First char is OK [12:09:44]request: POST /json_proto HTTP/1.0 [12:09:44]Method: POST [12:09:44]URL: /json_proto [12:09:44]Method is POST - this is cgi request [12:09:44]url: /json_proto [12:09:44]query_string will be loaded in cgi processing [12:09:44]execute_cgi json_proto POST (null) [12:09:44]execute_cgi path=json_proto method=POST [12:09:44]POST find Content-Length [12:09:44]Host: 172.17.62.67:8080 [12:09:44]Content-Length: 682 [12:09:44]Content-Type: application/json [12:09:44] [12:09:44]POST finish read [12:09:44]Found Content-Length = 682 [12:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196386", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:09:44]execute_script... [12:09:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196386", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:09:44]POST & json_proto [12:09:44]process_json_proto [12:09:44]json parsed OK: [12:09:44]protocol is kg_v1.0 [12:09:44]action value=close_receipt [12:09:44]process_action close_receipt [12:09:44]cmd_close_receipt [12:09:44]MH_GetDate [12:09:44]Write to MH i2c: F0 00 00 01 79 69 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: F0 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: F0 05 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: F0 05 00 01 79 00 92 97 F1 65 ED [12:09:44]GetLastDocTimeStamp 1710331694 [12:09:44]current date 1710331794 [12:09:44]FM_GetShiftState [12:09:44]SAM_PROTO_GetShiftState [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 13 01 00 [12:09:44]Write to MH i2c: E2 08 00 02 79 80 13 01 00 00 00 00 00 F8 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0E 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0E 00 02 79 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 DD [12:09:44]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_GetShiftState done [12:09:44]FM_GetShiftState done [12:09:44]opened in 1710288279 [12:09:44]opened+sec_in_day 1710374679 [12:09:44]quantity*price = 100011 [12:09:44]sum+1 = 100012 [12:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 92 13.03.2024 12:09 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95397 ФПД: 232241593560012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120954&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95397&fm=232241593560012&tin=02508201610067®Number=0000000000090555&sum=100000 [12:09:45]StoreToDocumentArchive [12:09:45]shift 328 fd 95397 [12:09:45]save to /storage/0328/doc_00095397 [12:09:45]save last doc name /storage/0328/doc_00095397 to /storage/kkm_last_doc_name [12:09:45]save OK [12:09:45]Clear old archive folders... [12:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:45]tlvbuf is 01A9AFE0 [12:09:45]SAM_PROTO_ClearQueue [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 09 00 00 [12:09:45]Write to MH i2c: E2 08 00 0F 79 80 09 00 00 00 00 00 00 FA [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 0F 79 00 90 00 FC [12:09:45]RAPDU: 90 00 [12:09:45]wFMCommunicate OK [12:09:45]SAM_PROTO_ClearQueue done [12:09:45]KKMCreateOFDPacket [12:09:45]OFDProtocolAddRootSTLVToBuf [12:09:45]FM_MakeSignedData [12:09:45]FM_MakeSignedData [12:09:45]SAM_PROTO_SignData [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 0D 01 02 [12:09:45]Write to MH i2c: E2 08 00 10 79 80 0D 01 02 00 00 00 00 02 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 10 79 00 90 00 FD [12:09:45]RAPDU: 90 00 [12:09:45]wFMCommunicate OK [12:09:45]wFMCommunicate request_size=255 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 92 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 74 01 00 35 04 06 00 D3 [12:09:45]Write to MH i2c: E2 02 01 11 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 92 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 74 01 00 35 04 06 00 D3 00 00 BB [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 11 79 00 90 00 FE [12:09:45]RAPDU: 90 00 [12:09:45]wFMCommunicate OK [12:09:45]wFMCommunicate request_size=10 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 0D 02 02 05 38 F5 AF AB CC [12:09:45]Write to MH i2c: E2 0D 00 12 79 80 0D 02 02 05 00 38 F5 AF AB CC 00 00 62 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 12 79 00 90 00 FF [12:09:45]RAPDU: 90 00 [12:09:45]wFMCommunicate OK [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 0D 03 02 [12:09:45]Write to MH i2c: E2 08 00 13 79 80 0D 03 02 00 00 00 00 07 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 0B 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 0B 00 13 79 00 2A 50 A4 4D 62 29 62 30 90 00 90 [12:09:45]RAPDU: 2A 50 A4 4D 62 29 62 30 90 00 [12:09:45]wFMCommunicate OK [12:09:45]SAM_PROTO_SignData done [12:09:45]FM_MakeSignedData done [12:09:45]CreateOFDProtocolMessage [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 11 00 00 [12:09:45]Write to MH i2c: E2 08 00 14 79 80 11 00 00 00 00 00 00 07 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 17 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 17 00 14 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [12:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:09:45]wFMCommunicate OK [12:09:45]CreateOFDProtocolMessage done [12:09:45]OFDSenderStorePacket 95397 [12:09:45]StoreOFDPacket docnum=95397 [12:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1D 4D 07 01 09 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 92 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 74 01 00 35 04 06 00 D3 38 F5 AF AB CC 2A 50 A4 4D 62 29 62 30 [12:09:45]CheckFolder [12:09:45]dirname=/storage/ofd_packets [12:09:45]CheckFolder done [12:09:45]ProducePacketName [12:09:45]name=ofd_packets/00095397 [12:09:45]NVStorageSaveData ofd_packets/00095397 [12:09:45]File name is /storage/ofd_packets/00095397 [12:09:45]Write 301 bytes [12:09:45]NVStorageSaveData done [12:09:45]OFDSenderStorePacket done [12:09:45]KKMCreateOFDPacket done [12:09:45]NVStorageSaveData kkm_last_timestamp [12:09:45]File name is /storage/kkm_last_timestamp [12:09:45]Write 4 bytes [12:09:45]NVStorageSaveData done [12:09:45]ExternCall_PrintAddStr [12:09:45]wPrintStart [12:09:45]Write to MH i2c: 01 00 00 15 79 8E [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 15 79 00 80 00 00 00 FF 0F 23 [12:09:45]RasterBufferAndPrint [12:09:45]line Счет N : (1)196386 [12:09:45]line ИНН: 02508201610067 [12:09:45]line Контрольно-Кассовый Чек [12:09:45]line ПРОДАЖА [12:09:45]line ТРК (МРК, ГНК) : 22 [12:09:45]line Товар: 2710124130 [12:09:45]line Аи-92-К-5 [12:09:45]line 15.900 * 62.90 [12:09:45]line = 1000.11 [12:09:45]line НДС 12% НСП 1% [12:09:45]line > о реализуемом товаре [12:09:45]line ОКРУГЛЕНИЕ: -0.11 [12:09:45]line ИТОГО: 1000.00 [12:09:45]line Внесено: 1000.00 [12:09:45]line СДАЧА: 0.00 [12:09:45]line НСП 1% : 8.85 [12:09:45]line НДС 12% : 106.21 [12:09:45]line Наличными: 1000.00 [12:09:45]line Безнал.: 0.00 [12:09:45]line Место: АЗС № 6 "Партнер Нефть" [12:09:45]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:09:45]line СНО: Общий режим [12:09:45]line Чек 92 13.03.2024 12:09 [12:09:45]line Смена: 328 ФФД: 1.0 [12:09:45]line ЗНМ: 0300000009 [12:09:45]line РНМ: 0000000000090555 [12:09:45]line Версия ККМ: 001 [12:09:45]line ФМ: 0000000000874811 [12:09:45]line ФД: 95397 [12:09:45]line ФПД: 232241593560012 [12:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T120954&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95397&fm=232241593560012&tin=02508201610067®Number=0000000000090555&sum=100000 [12:09:46]OFD Sender: Processing packet 95397 [packets to send 30, broken 29] [12:09:46]ProducePacketName [12:09:46]name=ofd_packets/00095397 [12:09:46]OFD Sender: To server: pG, [12:09:46]CommunicateWithHost lk.salyk.kg:30040 [12:09:46]ConnectInit lk.salyk.kg [12:09:46]written 0, free lines is 4095 [12:09:46]Connected sock=10 [12:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1D 4D 07 01 09 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 92 97 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 74 01 00 35 04 06 00 D3 38 F5 AF AB CC 2A 50 A4 4D 62 29 62 30 [12:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F3 E2 47 00 AE E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A5 74 01 00 F4 03 04 00 E5 42 F1 65 B6 04 01 00 00 D3 6B DC 51 28 4C 85 79 [12:09:46]CommunicateWithHost err = 0 [12:09:46]CheckOFDResponse [12:09:46]1017 (14) - 77093643461234 [12:09:46]1041 (16) - 0000000000874811 [12:09:46]1040 (4) - 95397 [12:09:46]1012 (4) - 13.03.2024 06:08 [12:09:46]1206 (1) - 0 [12:09:46]OFD Sender: Remove packet 95397 [12:09:46]ProducePacketName [12:09:46]name=ofd_packets/00095397 [12:09:46]NVStorageDeleteData [12:09:46]Write to MH i2c: 01 00 00 40 79 B9 [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 07 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 07 00 40 79 00 80 00 00 00 51 0D 9E [12:09:46]RasterBufferAndPrint [12:09:46]line [12:09:46]line [12:09:46]line [12:09:46]line [12:09:46]line [12:09:46]written 0, free lines is 3417 [12:09:46]process_action close_receipt done [12:09:46]requested_data is exist [12:09:46]produce_requested_data [12:09:46]requested_item fm.sn is exist - process it [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 11 00 00 [12:09:46]Write to MH i2c: E2 08 00 47 79 80 11 00 00 00 00 00 00 3A [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 17 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 17 00 47 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8A [12:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:09:46]wFMCommunicate OK [12:09:46]requested_item fd.num is exist - process it [12:09:46]SAM_PROTO_GetFieldsCounters [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 13 00 00 [12:09:46]Write to MH i2c: E2 08 00 48 79 80 13 00 00 00 00 00 00 3D [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 62 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 62 00 48 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A5 74 01 00 0E 04 04 00 48 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 D1 [12:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A5 74 01 00 0E 04 04 00 48 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 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_GetFieldsCounters done [12:09:46]requested_item shift.num is exist - process it [12:09:46]requested_item shift.opened is exist - process it [12:09:46]req_shift_opened [12:09:46]FM_GetShiftState [12:09:46]SAM_PROTO_GetShiftState [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 13 01 00 [12:09:46]Write to MH i2c: E2 08 00 49 79 80 13 01 00 00 00 00 00 3F [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0E 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0E 00 49 79 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 24 [12:09:46]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_GetShiftState done [12:09:46]FM_GetShiftState done [12:09:46]req_shift_opened done [12:09:46]requested_item shift.open_date is exist - process it [12:09:46]req_shift_open_date [12:09:46]req_shift_open_date done [12:09:46]produce_requested_data done [12:09:46]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95397,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:09:46]process_action_free close_receipt [12:09:46]json_value_free [12:09:46]json_value_free done [12:09:46]process_json_proto returns [12:09:46]Send response to host [12:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95397,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:09:46]free response buf [12:09:46]execute_script done [12:09:46]execute_script returns [12:09:46]free content buf [12:09:46]Sock 8.Close socket [12:09:46]Sock 8.Thread stoped [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:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:32]accept exits with 9 [12:14:32]New connection [12:14:32]New thread 3066813796 created [12:14:32]Thread 3066957156 joined [12:14:32]Waiting for new connection... [12:14:32] Sock 9.Parse request [12:14:32]Sock 9.Check first char [12:14:32]Sock 9.First char is OK [12:14:32]request: POST /json_proto HTTP/1.0 [12:14:32]Method: POST [12:14:32]URL: /json_proto [12:14:32]Method is POST - this is cgi request [12:14:32]url: /json_proto [12:14:32]query_string will be loaded in cgi processing [12:14:32]execute_cgi json_proto POST (null) [12:14:32]execute_cgi path=json_proto method=POST [12:14:32]POST find Content-Length [12:14:32]Host: 172.17.62.67:8080 [12:14:32]Content-Length: 682 [12:14:32]Content-Type: application/json [12:14:32] [12:14:32]POST finish read [12:14:32]Found Content-Length = 682 [12:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196387", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:14:32]execute_script... [12:14:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196387", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:14:32]POST & json_proto [12:14:32]process_json_proto [12:14:32]json parsed OK: [12:14:32]protocol is kg_v1.0 [12:14:32]action value=close_receipt [12:14:32]process_action close_receipt [12:14:32]cmd_close_receipt [12:14:32]MH_GetDate [12:14:32]Write to MH i2c: F0 00 00 4A 79 B2 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: F0 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: F0 05 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: F0 05 00 4A 79 00 B3 98 F1 65 58 [12:14:32]GetLastDocTimeStamp 1710331794 [12:14:32]current date 1710332083 [12:14:32]FM_GetShiftState [12:14:32]SAM_PROTO_GetShiftState [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 13 01 00 [12:14:32]Write to MH i2c: E2 08 00 4B 79 80 13 01 00 00 00 00 00 41 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 0E 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 0E 00 4B 79 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 26 [12:14:32]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:14:32]wFMCommunicate OK [12:14:32]SAM_PROTO_GetShiftState done [12:14:32]FM_GetShiftState done [12:14:32]opened in 1710288279 [12:14:32]opened+sec_in_day 1710374679 [12:14:32]quantity*price = 100011 [12:14:32]sum+1 = 100012 [12:14:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 93 13.03.2024 12:14 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95398 ФПД: 210610112836513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T121443&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95398&fm=210610112836513&tin=02508201610067®Number=0000000000090555&sum=100000 [12:14:33]StoreToDocumentArchive [12:14:33]shift 328 fd 95398 [12:14:33]save to /storage/0328/doc_00095398 [12:14:33]save last doc name /storage/0328/doc_00095398 to /storage/kkm_last_doc_name [12:14:33]save OK [12:14:33]Clear old archive folders... [12:14:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:33]tlvbuf is 01B6D9F0 [12:14:33]SAM_PROTO_ClearQueue [12:14:33]wFMCommunicate request_size=4 [12:14:33]MH_SAM_APDU [12:14:33]CAPDU: 80 09 00 00 [12:14:33]Write to MH i2c: E2 08 00 58 79 80 09 00 00 00 00 00 00 43 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 [12:14:33]MH_I2C_Read... [12:14:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:33]Read from MH i2c: E2 03 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 03 00 58 79 00 90 00 45 [12:14:33]RAPDU: 90 00 [12:14:33]wFMCommunicate OK [12:14:33]SAM_PROTO_ClearQueue done [12:14:33]KKMCreateOFDPacket [12:14:33]OFDProtocolAddRootSTLVToBuf [12:14:33]FM_MakeSignedData [12:14:33]FM_MakeSignedData [12:14:33]SAM_PROTO_SignData [12:14:33]wFMCommunicate request_size=4 [12:14:33]MH_SAM_APDU [12:14:33]CAPDU: 80 0D 01 02 [12:14:33]Write to MH i2c: E2 08 00 59 79 80 0D 01 02 00 00 00 00 4B [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:33]Read from MH i2c: E2 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 03 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: E2 03 00 59 79 00 90 00 46 [12:14:33]RAPDU: 90 00 [12:14:33]wFMCommunicate OK [12:14:33]wFMCommunicate request_size=255 [12:14:33]MH_SAM_APDU [12:14:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 00 00 00 F4 03 04 00 B3 98 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 74 01 00 35 04 06 00 BF [12:14:33]Write to MH i2c: E2 02 01 5A 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 00 00 00 F4 03 04 00 B3 98 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 74 01 00 35 04 06 00 BF 00 00 14 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 5A 79 00 90 00 47 [12:14:34]RAPDU: 90 00 [12:14:34]wFMCommunicate OK [12:14:34]wFMCommunicate request_size=10 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 0D 02 02 05 8C 7C F6 33 A1 [12:14:34]Write to MH i2c: E2 0D 00 5B 79 80 0D 02 02 05 00 8C 7C F6 33 A1 00 00 2A [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 5B 79 00 90 00 48 [12:14:34]RAPDU: 90 00 [12:14:34]wFMCommunicate OK [12:14:34]wFMCommunicate request_size=4 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 0D 03 02 [12:14:34]Write to MH i2c: E2 08 00 5C 79 80 0D 03 02 00 00 00 00 50 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 0B 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 0B 00 5C 79 00 A7 96 77 50 9E 9E 5C 58 90 00 45 [12:14:34]RAPDU: A7 96 77 50 9E 9E 5C 58 90 00 [12:14:34]wFMCommunicate OK [12:14:34]SAM_PROTO_SignData done [12:14:34]FM_MakeSignedData done [12:14:34]CreateOFDProtocolMessage [12:14:34]wFMCommunicate request_size=4 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 11 00 00 [12:14:34]Write to MH i2c: E2 08 00 5D 79 80 11 00 00 00 00 00 00 50 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 17 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 17 00 5D 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A0 [12:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:14:34]wFMCommunicate OK [12:14:34]CreateOFDProtocolMessage done [12:14:34]OFDSenderStorePacket 95398 [12:14:34]StoreOFDPacket docnum=95398 [12:14:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 47 59 07 01 1C 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 00 00 00 F4 03 04 00 B3 98 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 74 01 00 35 04 06 00 BF 8C 7C F6 33 A1 A7 96 77 50 9E 9E 5C 58 [12:14:34]CheckFolder [12:14:34]dirname=/storage/ofd_packets [12:14:34]CheckFolder done [12:14:34]ProducePacketName [12:14:34]name=ofd_packets/00095398 [12:14:34]NVStorageSaveData ofd_packets/00095398 [12:14:34]File name is /storage/ofd_packets/00095398 [12:14:34]Write 301 bytes [12:14:34]NVStorageSaveData done [12:14:34]OFDSenderStorePacket done [12:14:34]KKMCreateOFDPacket done [12:14:34]NVStorageSaveData kkm_last_timestamp [12:14:34]File name is /storage/kkm_last_timestamp [12:14:34]Write 4 bytes [12:14:34]NVStorageSaveData done [12:14:34]ExternCall_PrintAddStr [12:14:34]wPrintStart [12:14:34]Write to MH i2c: 01 00 00 5E 79 D7 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: 01 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: 01 07 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: 01 07 00 5E 79 00 80 00 00 00 FF 0F 6C [12:14:34]RasterBufferAndPrint [12:14:34]line Счет N : (1)196387 [12:14:34]line ИНН: 02508201610067 [12:14:34]line Контрольно-Кассовый Чек [12:14:34]line ПРОДАЖА [12:14:34]line ТРК (МРК, ГНК) : 22 [12:14:34]line Товар: 2710124130 [12:14:34]line Аи-92-К-5 [12:14:34]line 15.900 * 62.90 [12:14:34]line = 1000.11 [12:14:34]line НДС 12% НСП 1% [12:14:34]line > о реализуемом товаре [12:14:34]line ОКРУГЛЕНИЕ: -0.11 [12:14:34]line ИТОГО: 1000.00 [12:14:34]line Внесено: 1000.00 [12:14:34]line СДАЧА: 0.00 [12:14:34]line НСП 1% : 8.85 [12:14:34]line НДС 12% : 106.21 [12:14:34]line Наличными: 1000.00 [12:14:34]line Безнал.: 0.00 [12:14:34]line Место: АЗС № 6 "Партнер Нефть" [12:14:34]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:14:34]line СНО: Общий режим [12:14:34]line Чек 93 13.03.2024 12:14 [12:14:34]line Смена: 328 ФФД: 1.0 [12:14:34]line ЗНМ: 0300000009 [12:14:34]line РНМ: 0000000000090555 [12:14:34]line Версия ККМ: 001 [12:14:34]line ФМ: 0000000000874811 [12:14:34]line ФД: 95398 [12:14:34]line ФПД: 210610112836513 [12:14:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T121443&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95398&fm=210610112836513&tin=02508201610067®Number=0000000000090555&sum=100000 [12:14:34]written 0, free lines is 4095 [12:14:34]OFD Sender: Processing packet 95398 [packets to send 30, broken 29] [12:14:34]ProducePacketName [12:14:34]name=ofd_packets/00095398 [12:14:34]OFD Sender: To server: pG, [12:14:34]CommunicateWithHost lk.salyk.kg:30040 [12:14:34]ConnectInit lk.salyk.kg [12:14:34]Connected sock=10 [12:14:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 47 59 07 01 1C 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5D 00 00 00 F4 03 04 00 B3 98 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 74 01 00 35 04 06 00 BF 8C 7C F6 33 A1 A7 96 77 50 9E 9E 5C 58 [12:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 27 55 47 00 1C 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A6 74 01 00 F4 03 04 00 06 44 F1 65 B6 04 01 00 00 31 D1 E4 9A 7E 0E 4B 38 [12:14:34]CommunicateWithHost err = 0 [12:14:34]CheckOFDResponse [12:14:34]1017 (14) - 77093643461234 [12:14:34]1041 (16) - 0000000000874811 [12:14:34]1040 (4) - 95398 [12:14:34]1012 (4) - 13.03.2024 06:13 [12:14:34]1206 (1) - 0 [12:14:34]OFD Sender: Remove packet 95398 [12:14:34]ProducePacketName [12:14:34]name=ofd_packets/00095398 [12:14:34]NVStorageDeleteData [12:14:35]Write to MH i2c: 01 00 00 89 79 02 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: 01 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: 01 07 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: 01 07 00 89 79 00 80 00 00 00 4A 0D E0 [12:14:35]RasterBufferAndPrint [12:14:35]line [12:14:35]line [12:14:35]line [12:14:35]line [12:14:35]line [12:14:35]written 0, free lines is 3408 [12:14:35]process_action close_receipt done [12:14:35]requested_data is exist [12:14:35]produce_requested_data [12:14:35]requested_item fm.sn is exist - process it [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 11 00 00 [12:14:35]Write to MH i2c: E2 08 00 90 79 80 11 00 00 00 00 00 00 83 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 17 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 17 00 90 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D3 [12:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:14:35]wFMCommunicate OK [12:14:35]requested_item fd.num is exist - process it [12:14:35]SAM_PROTO_GetFieldsCounters [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 13 00 00 [12:14:35]Write to MH i2c: E2 08 00 91 79 80 13 00 00 00 00 00 00 86 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 62 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 62 00 91 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A6 74 01 00 0E 04 04 00 48 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 1E [12:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A6 74 01 00 0E 04 04 00 48 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 [12:14:35]wFMCommunicate OK [12:14:35]SAM_PROTO_GetFieldsCounters done [12:14:35]requested_item shift.num is exist - process it [12:14:35]requested_item shift.opened is exist - process it [12:14:35]req_shift_opened [12:14:35]FM_GetShiftState [12:14:35]SAM_PROTO_GetShiftState [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 13 01 00 [12:14:35]Write to MH i2c: E2 08 00 92 79 80 13 01 00 00 00 00 00 88 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 0E 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 0E 00 92 79 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 6D [12:14:35]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:14:35]wFMCommunicate OK [12:14:35]SAM_PROTO_GetShiftState done [12:14:35]FM_GetShiftState done [12:14:35]req_shift_opened done [12:14:35]requested_item shift.open_date is exist - process it [12:14:35]req_shift_open_date [12:14:35]req_shift_open_date done [12:14:35]produce_requested_data done [12:14:35]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95398,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:14:35]process_action_free close_receipt [12:14:35]json_value_free [12:14:35]json_value_free done [12:14:35]process_json_proto returns [12:14:35]Send response to host [12:14:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95398,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:14:35]free response buf [12:14:35]execute_script done [12:14:35]execute_script returns [12:14:35]free content buf [12:14:35]Sock 9.Close socket [12:14:35]Sock 9.Thread stoped [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]accept exits with 8 [12:15:25]New connection [12:15:25]New thread 3066957156 created [12:15:25]Thread 3066813796 joined [12:15:25]Waiting for new connection... [12:15:25] Sock 8.Parse request [12:15:25]Sock 8.Check first char [12:15:25]Sock 8.First char is OK [12:15:25]request: POST /json_proto HTTP/1.0 [12:15:25]Method: POST [12:15:25]URL: /json_proto [12:15:25]Method is POST - this is cgi request [12:15:25]url: /json_proto [12:15:25]query_string will be loaded in cgi processing [12:15:25]execute_cgi json_proto POST (null) [12:15:25]execute_cgi path=json_proto method=POST [12:15:25]POST find Content-Length [12:15:25]Host: 172.17.62.67:8080 [12:15:25]Content-Length: 677 [12:15:25]Content-Type: application/json [12:15:25] [12:15:25]POST finish read [12:15:25]Found Content-Length = 677 [12:15:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196388", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:25]execute_script... [12:15:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196388", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:25]POST & json_proto [12:15:25]process_json_proto [12:15:25]json parsed OK: [12:15:25]protocol is kg_v1.0 [12:15:25]action value=close_receipt [12:15:25]process_action close_receipt [12:15:25]cmd_close_receipt [12:15:25]MH_GetDate [12:15:25]Write to MH i2c: F0 00 00 93 79 FB [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: F0 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: F0 05 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: F0 05 00 93 79 00 E7 98 F1 65 D5 [12:15:25]GetLastDocTimeStamp 1710332083 [12:15:25]current date 1710332135 [12:15:25]FM_GetShiftState [12:15:25]SAM_PROTO_GetShiftState [12:15:25]wFMCommunicate request_size=4 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 13 01 00 [12:15:25]Write to MH i2c: E2 08 00 94 79 80 13 01 00 00 00 00 00 8A [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 0E 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 0E 00 94 79 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 6F [12:15:25]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:15:25]wFMCommunicate OK [12:15:25]SAM_PROTO_GetShiftState done [12:15:25]FM_GetShiftState done [12:15:25]opened in 1710288279 [12:15:25]opened+sec_in_day 1710374679 [12:15:25]quantity*price = 50005 [12:15:25]sum+1 = 50007 [12:15:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 94 13.03.2024 12:15 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95399 ФПД: 66220998604706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T121535&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95399&fm=66220998604706&tin=02508201610067®Number=0000000000090555&sum=50000 [12:15:26]StoreToDocumentArchive [12:15:26]shift 328 fd 95399 [12:15:26]save to /storage/0328/doc_00095399 [12:15:26]save last doc name /storage/0328/doc_00095399 to /storage/kkm_last_doc_name [12:15:26]save OK [12:15:26]Clear old archive folders... [12:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:26]tlvbuf is 01A9B3B0 [12:15:26]SAM_PROTO_ClearQueue [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 09 00 00 [12:15:26]Write to MH i2c: E2 08 00 A1 79 80 09 00 00 00 00 00 00 8C [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 A1 79 00 90 00 8E [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]SAM_PROTO_ClearQueue done [12:15:26]KKMCreateOFDPacket [12:15:26]OFDProtocolAddRootSTLVToBuf [12:15:26]FM_MakeSignedData [12:15:26]FM_MakeSignedData [12:15:26]SAM_PROTO_SignData [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 0D 01 02 [12:15:26]Write to MH i2c: E2 08 00 A2 79 80 0D 01 02 00 00 00 00 94 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 A2 79 00 90 00 8F [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]wFMCommunicate request_size=255 [12:15:26]MH_SAM_APDU [12:15: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 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5E 00 00 00 F4 03 04 00 E7 98 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 74 01 00 35 04 06 00 3C [12:15:26]Write to MH i2c: E2 02 01 A3 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5E 00 00 00 F4 03 04 00 E7 98 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 74 01 00 35 04 06 00 3C 00 00 11 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 A3 79 00 90 00 90 [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]wFMCommunicate request_size=10 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 0D 02 02 05 3A 47 19 37 A2 [12:15:26]Write to MH i2c: E2 0D 00 A4 79 80 0D 02 02 05 00 3A 47 19 37 A2 00 00 14 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 A4 79 00 90 00 91 [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 0D 03 02 [12:15:26]Write to MH i2c: E2 08 00 A5 79 80 0D 03 02 00 00 00 00 99 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 0B 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 0B 00 A5 79 00 D1 6F F7 FA 5F 40 0D AB 90 00 22 [12:15:26]RAPDU: D1 6F F7 FA 5F 40 0D AB 90 00 [12:15:26]wFMCommunicate OK [12:15:26]SAM_PROTO_SignData done [12:15:26]FM_MakeSignedData done [12:15:26]CreateOFDProtocolMessage [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 11 00 00 [12:15:26]Write to MH i2c: E2 08 00 A6 79 80 11 00 00 00 00 00 00 99 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 17 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 17 00 A6 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E9 [12:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:15:26]wFMCommunicate OK [12:15:26]CreateOFDProtocolMessage done [12:15:26]OFDSenderStorePacket 95399 [12:15:26]StoreOFDPacket docnum=95399 [12:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2C F8 07 01 73 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5E 00 00 00 F4 03 04 00 E7 98 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 74 01 00 35 04 06 00 3C 3A 47 19 37 A2 D1 6F F7 FA 5F 40 0D AB [12:15:26]CheckFolder [12:15:26]dirname=/storage/ofd_packets [12:15:26]CheckFolder done [12:15:26]ProducePacketName [12:15:26]name=ofd_packets/00095399 [12:15:26]NVStorageSaveData ofd_packets/00095399 [12:15:26]File name is /storage/ofd_packets/00095399 [12:15:26]Write 301 bytes [12:15:26]NVStorageSaveData done [12:15:26]OFDSenderStorePacket done [12:15:26]KKMCreateOFDPacket done [12:15:26]NVStorageSaveData kkm_last_timestamp [12:15:26]File name is /storage/kkm_last_timestamp [12:15:26]Write 4 bytes [12:15:26]NVStorageSaveData done [12:15:26]ExternCall_PrintAddStr [12:15:26]wPrintStart [12:15:26]Write to MH i2c: 01 00 00 A7 79 20 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 07 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 07 00 A7 79 00 80 00 00 00 FF 0F B5 [12:15:26]RasterBufferAndPrint [12:15:26]line Счет N : (1)196388 [12:15:26]line ИНН: 02508201610067 [12:15:26]line Контрольно-Кассовый Чек [12:15:26]line ПРОДАЖА [12:15:26]line ТРК (МРК, ГНК) : 12 [12:15:26]line Товар: 2710124130 [12:15:26]line Аи-92-К-5 [12:15:26]line 7.950 * 62.90 [12:15:26]line = 500.06 [12:15:26]line НДС 12% НСП 1% [12:15:26]line > о реализуемом товаре [12:15:26]line ОКРУГЛЕНИЕ: -0.06 [12:15:26]line ИТОГО: 500.00 [12:15:26]line Внесено: 500.00 [12:15:26]line СДАЧА: 0.00 [12:15:26]line НСП 1% : 4.42 [12:15:26]line НДС 12% : 53.10 [12:15:26]line Наличными: 500.00 [12:15:26]line Безнал.: 0.00 [12:15:26]line Место: АЗС № 6 "Партнер Нефть" [12:15:26]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:15:26]line СНО: Общий режим [12:15:26]line Чек 94 13.03.2024 12:15 [12:15:26]line Смена: 328 ФФД: 1.0 [12:15:26]line ЗНМ: 0300000009 [12:15:26]line РНМ: 0000000000090555 [12:15:26]line Версия ККМ: 001 [12:15:26]line ФМ: 0000000000874811 [12:15:26]line ФД: 95399 [12:15:26]line ФПД: 66220998604706 [12:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T121535&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95399&fm=66220998604706&tin=02508201610067®Number=0000000000090555&sum=50000 [12:15:27]OFD Sender: Processing packet 95399 [packets to send 30, broken 29] [12:15:27]ProducePacketName [12:15:27]name=ofd_packets/00095399 [12:15:27]OFD Sender: To server: pG, [12:15:27]CommunicateWithHost lk.salyk.kg:30040 [12:15:27]ConnectInit lk.salyk.kg [12:15:27]written 0, free lines is 4095 [12:15:27]Connected sock=10 [12:15:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2C F8 07 01 73 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 5E 00 00 00 F4 03 04 00 E7 98 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 74 01 00 35 04 06 00 3C 3A 47 19 37 A2 D1 6F F7 FA 5F 40 0D AB [12:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 11 21 47 00 FF FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A7 74 01 00 F4 03 04 00 3A 44 F1 65 B6 04 01 00 00 0D 01 74 14 C0 B9 EF 11 [12:15:27]CommunicateWithHost err = 0 [12:15:27]CheckOFDResponse [12:15:27]1017 (14) - 77093643461234 [12:15:27]1041 (16) - 0000000000874811 [12:15:27]1040 (4) - 95399 [12:15:27]1012 (4) - 13.03.2024 06:14 [12:15:27]1206 (1) - 0 [12:15:27]OFD Sender: Remove packet 95399 [12:15:27]ProducePacketName [12:15:27]name=ofd_packets/00095399 [12:15:27]NVStorageDeleteData [12:15:27]Write to MH i2c: 01 00 00 D2 79 4B [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 D2 79 00 80 00 00 00 4A 0D 29 [12:15:27]RasterBufferAndPrint [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]written 0, free lines is 3408 [12:15:27]process_action close_receipt done [12:15:27]requested_data is exist [12:15:27]produce_requested_data [12:15:27]requested_item fm.sn is exist - process it [12:15:27]wFMCommunicate request_size=4 [12:15:27]MH_SAM_APDU [12:15:27]CAPDU: 80 11 00 00 [12:15:27]Write to MH i2c: E2 08 00 D9 79 80 11 00 00 00 00 00 00 CC [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:27]Read from MH i2c: E2 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 17 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 17 00 D9 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1C [12:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:15:27]wFMCommunicate OK [12:15:27]requested_item fd.num is exist - process it [12:15:27]SAM_PROTO_GetFieldsCounters [12:15:27]wFMCommunicate request_size=4 [12:15:27]MH_SAM_APDU [12:15:27]CAPDU: 80 13 00 00 [12:15:27]Write to MH i2c: E2 08 00 DA 79 80 13 00 00 00 00 00 00 CF [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:27]Read from MH i2c: E2 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 62 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 62 00 DA 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A7 74 01 00 0E 04 04 00 48 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 6B [12:15:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A7 74 01 00 0E 04 04 00 48 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 [12:15:27]wFMCommunicate OK [12:15:27]SAM_PROTO_GetFieldsCounters done [12:15:27]requested_item shift.num is exist - process it [12:15:27]requested_item shift.opened is exist - process it [12:15:27]req_shift_opened [12:15:27]FM_GetShiftState [12:15:27]SAM_PROTO_GetShiftState [12:15:27]wFMCommunicate request_size=4 [12:15:27]MH_SAM_APDU [12:15:27]CAPDU: 80 13 01 00 [12:15:27]Write to MH i2c: E2 08 00 DB 79 80 13 01 00 00 00 00 00 D1 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:27]Read from MH i2c: E2 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 0E 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: E2 0E 00 DB 79 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B6 [12:15:27]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:15:27]wFMCommunicate OK [12:15:27]SAM_PROTO_GetShiftState done [12:15:27]FM_GetShiftState done [12:15:27]req_shift_opened done [12:15:27]requested_item shift.open_date is exist - process it [12:15:27]req_shift_open_date [12:15:27]req_shift_open_date done [12:15:27]produce_requested_data done [12:15:27]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95399,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:15:27]process_action_free close_receipt [12:15:27]json_value_free [12:15:27]json_value_free done [12:15:27]process_json_proto returns [12:15:27]Send response to host [12:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95399,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:15:27]free response buf [12:15:27]execute_script done [12:15:27]execute_script returns [12:15:27]free content buf [12:15:27]Sock 8.Close socket [12:15:27]Sock 8.Thread stoped [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]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:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:38]accept exits with 9 [12:18:38]New connection [12:18:38]New thread 3066813796 created [12:18:38]Thread 3066957156 joined [12:18:38]Waiting for new connection... [12:18:38] Sock 9.Parse request [12:18:38]Sock 9.Check first char [12:18:38]Sock 9.First char is OK [12:18:38]request: POST /json_proto HTTP/1.0 [12:18:38]Method: POST [12:18:38]URL: /json_proto [12:18:38]Method is POST - this is cgi request [12:18:38]url: /json_proto [12:18:38]query_string will be loaded in cgi processing [12:18:38]execute_cgi json_proto POST (null) [12:18:38]execute_cgi path=json_proto method=POST [12:18:38]POST find Content-Length [12:18:38]Host: 172.17.62.67:8080 [12:18:38]Content-Length: 640 [12:18:38]Content-Type: application/json [12:18:38] [12:18:38]POST finish read [12:18:38]Found Content-Length = 640 [12:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.000, "sum" : 695.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 695.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:38]execute_script... [12:18:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.000, "sum" : 695.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 695.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:38]POST & json_proto [12:18:38]process_json_proto [12:18:38]json parsed OK: [12:18:38]protocol is kg_v1.0 [12:18:38]action value=close_receipt [12:18:38]process_action close_receipt [12:18:38]cmd_close_receipt [12:18:38]MH_GetDate [12:18:38]Write to MH i2c: F0 00 00 DC 79 44 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: F0 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: F0 05 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: F0 05 00 DC 79 00 A9 99 F1 65 E1 [12:18:38]GetLastDocTimeStamp 1710332135 [12:18:38]current date 1710332329 [12:18:38]FM_GetShiftState [12:18:38]SAM_PROTO_GetShiftState [12:18:38]wFMCommunicate request_size=4 [12:18:38]MH_SAM_APDU [12:18:38]CAPDU: 80 13 01 00 [12:18:38]Write to MH i2c: E2 08 00 DD 79 80 13 01 00 00 00 00 00 D3 [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 0E 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 0E 00 DD 79 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 B8 [12:18:38]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:18:38]wFMCommunicate OK [12:18:38]SAM_PROTO_GetShiftState done [12:18:38]FM_GetShiftState done [12:18:38]opened in 1710288279 [12:18:38]opened+sec_in_day 1710374679 [12:18:38]quantity*price = 69500 [12:18:38]sum+1 = 69501 [12:18:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 695.00 НСП 1% : 6.15 НДС 12% : 73.80 Наличными: 695.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 95 13.03.2024 12:18 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95400 ФПД: 72644623403797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T121849&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95400&fm=72644623403797&tin=02508201610067®Number=0000000000090555&sum=69500 [12:18:39]StoreToDocumentArchive [12:18:39]shift 328 fd 95400 [12:18:39]save to /storage/0328/doc_00095400 [12:18:39]save last doc name /storage/0328/doc_00095400 to /storage/kkm_last_doc_name [12:18:39]save OK [12:18:39]Clear old archive folders... [12:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:39]tlvbuf is 01A4C800 [12:18:39]SAM_PROTO_ClearQueue [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 09 00 00 [12:18:39]Write to MH i2c: E2 08 00 EA 79 80 09 00 00 00 00 00 00 D5 [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 EA 79 00 90 00 D7 [12:18:39]RAPDU: 90 00 [12:18:39]wFMCommunicate OK [12:18:39]SAM_PROTO_ClearQueue done [12:18:39]KKMCreateOFDPacket [12:18:39]OFDProtocolAddRootSTLVToBuf [12:18:39]FM_MakeSignedData [12:18:39]FM_MakeSignedData [12:18:39]SAM_PROTO_SignData [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 0D 01 02 [12:18:39]Write to MH i2c: E2 08 00 EB 79 80 0D 01 02 00 00 00 00 DD [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 EB 79 00 90 00 D8 [12:18:39]RAPDU: 90 00 [12:18:39]wFMCommunicate OK [12:18:39]wFMCommunicate request_size=255 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 7C 0F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 1C 00 00 00 00 07 04 06 00 7C 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A9 99 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 74 01 00 35 04 06 00 42 [12:18:40]Write to MH i2c: E2 02 01 EC 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 7C 0F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 1C 00 00 00 00 07 04 06 00 7C 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A9 99 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 74 01 00 35 04 06 00 42 00 00 FB [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 03 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 03 00 EC 79 00 90 00 D9 [12:18:40]RAPDU: 90 00 [12:18:40]wFMCommunicate OK [12:18:40]wFMCommunicate request_size=10 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 0D 02 02 05 11 E4 F9 0B 15 [12:18:40]Write to MH i2c: E2 0D 00 ED 79 80 0D 02 02 05 00 11 E4 F9 0B 15 00 00 F8 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 03 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 03 00 ED 79 00 90 00 DA [12:18:40]RAPDU: 90 00 [12:18:40]wFMCommunicate OK [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 0D 03 02 [12:18:40]Write to MH i2c: E2 08 00 EE 79 80 0D 03 02 00 00 00 00 E2 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0B 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0B 00 EE 79 00 EA 82 48 E8 28 D2 F3 94 90 00 00 [12:18:40]RAPDU: EA 82 48 E8 28 D2 F3 94 90 00 [12:18:40]wFMCommunicate OK [12:18:40]SAM_PROTO_SignData done [12:18:40]FM_MakeSignedData done [12:18:40]CreateOFDProtocolMessage [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 11 00 00 [12:18:40]Write to MH i2c: E2 08 00 EF 79 80 11 00 00 00 00 00 00 E2 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 17 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 17 00 EF 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 32 [12:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:18:40]wFMCommunicate OK [12:18:40]CreateOFDProtocolMessage done [12:18:40]OFDSenderStorePacket 95400 [12:18:40]StoreOFDPacket docnum=95400 [12:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 ED 2D 07 01 55 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 7C 0F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 1C 00 00 00 00 07 04 06 00 7C 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A9 99 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 74 01 00 35 04 06 00 42 11 E4 F9 0B 15 EA 82 48 E8 28 D2 F3 94 [12:18:40]CheckFolder [12:18:40]dirname=/storage/ofd_packets [12:18:40]CheckFolder done [12:18:40]ProducePacketName [12:18:40]name=ofd_packets/00095400 [12:18:40]NVStorageSaveData ofd_packets/00095400 [12:18:40]File name is /storage/ofd_packets/00095400 [12:18:40]Write 301 bytes [12:18:40]NVStorageSaveData done [12:18:40]OFDSenderStorePacket done [12:18:40]KKMCreateOFDPacket done [12:18:40]NVStorageSaveData kkm_last_timestamp [12:18:40]File name is /storage/kkm_last_timestamp [12:18:40]Write 4 bytes [12:18:40]NVStorageSaveData done [12:18:40]ExternCall_PrintAddStr [12:18:40]wPrintStart [12:18:40]Write to MH i2c: 01 00 00 F0 79 69 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 07 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 07 00 F0 79 00 80 00 00 00 FF 0F FE [12:18:40]RasterBufferAndPrint [12:18:40]line Счет N : (1)196389 [12:18:40]line ИНН: 02508201610067 [12:18:40]line Контрольно-Кассовый Чек [12:18:40]line ПРОДАЖА [12:18:40]line ТРК (МРК, ГНК) : 31 [12:18:40]line Товар: 2710124500 [12:18:40]line Аи-95-К-5 [12:18:40]line 10.000 * 69.50 [12:18:40]line = 695.00 [12:18:40]line НДС 12% НСП 1% [12:18:40]line > о реализуемом товаре [12:18:40]line ИТОГО: 695.00 [12:18:40]line НСП 1% : 6.15 [12:18:40]line НДС 12% : 73.80 [12:18:40]line Наличными: 695.00 [12:18:40]line Безнал.: 0.00 [12:18:40]line Место: АЗС № 6 "Партнер Нефть" [12:18:40]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:18:40]line СНО: Общий режим [12:18:40]line Чек 95 13.03.2024 12:18 [12:18:40]line Смена: 328 ФФД: 1.0 [12:18:40]line ЗНМ: 0300000009 [12:18:40]line РНМ: 0000000000090555 [12:18:40]line Версия ККМ: 001 [12:18:40]line ФМ: 0000000000874811 [12:18:40]line ФД: 95400 [12:18:40]line ФПД: 72644623403797 [12:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T121849&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95400&fm=72644623403797&tin=02508201610067®Number=0000000000090555&sum=69500 [12:18:40]OFD Sender: Processing packet 95400 [packets to send 30, broken 29] [12:18:40]ProducePacketName [12:18:40]name=ofd_packets/00095400 [12:18:40]OFD Sender: To server: pG, [12:18:40]CommunicateWithHost lk.salyk.kg:30040 [12:18:40]ConnectInit lk.salyk.kg [12:18:40]written 0, free lines is 4095 [12:18:40]Connected sock=10 [12:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 ED 2D 07 01 55 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 7C 0F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 1C 00 00 00 00 07 04 06 00 7C 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 A9 99 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 74 01 00 35 04 06 00 42 11 E4 F9 0B 15 EA 82 48 E8 28 D2 F3 94 [12:18:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6C 66 47 00 09 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A8 74 01 00 F4 03 04 00 FC 44 F1 65 B6 04 01 00 00 F5 13 73 D2 20 AE C6 1C [12:18:41]CommunicateWithHost err = 0 [12:18:41]CheckOFDResponse [12:18:41]1017 (14) - 77093643461234 [12:18:41]1041 (16) - 0000000000874811 [12:18:41]1040 (4) - 95400 [12:18:41]1012 (4) - 13.03.2024 06:17 [12:18:41]1206 (1) - 0 [12:18:41]OFD Sender: Remove packet 95400 [12:18:41]ProducePacketName [12:18:41]name=ofd_packets/00095400 [12:18:41]NVStorageDeleteData [12:18:41]Write to MH i2c: 01 00 00 18 7A 92 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 07 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: 01 07 00 18 7A 00 80 00 00 00 82 0D A8 [12:18:41]RasterBufferAndPrint [12:18:41]line [12:18:41]line [12:18:41]line [12:18:41]line [12:18:41]line [12:18:41]written 0, free lines is 3466 [12:18:41]process_action close_receipt done [12:18:41]requested_data is exist [12:18:41]produce_requested_data [12:18:41]requested_item fm.sn is exist - process it [12:18:41]wFMCommunicate request_size=4 [12:18:41]MH_SAM_APDU [12:18:41]CAPDU: 80 11 00 00 [12:18:41]Write to MH i2c: E2 08 00 1F 7A 80 11 00 00 00 00 00 00 13 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:41]Read from MH i2c: E2 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 17 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 17 00 1F 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 63 [12:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:18:41]wFMCommunicate OK [12:18:41]requested_item fd.num is exist - process it [12:18:41]SAM_PROTO_GetFieldsCounters [12:18:41]wFMCommunicate request_size=4 [12:18:41]MH_SAM_APDU [12:18:41]CAPDU: 80 13 00 00 [12:18:41]Write to MH i2c: E2 08 00 20 7A 80 13 00 00 00 00 00 00 16 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:41]Read from MH i2c: E2 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 62 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 62 00 20 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A8 74 01 00 0E 04 04 00 48 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 B6 [12:18:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A8 74 01 00 0E 04 04 00 48 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 [12:18:41]wFMCommunicate OK [12:18:41]SAM_PROTO_GetFieldsCounters done [12:18:41]requested_item shift.num is exist - process it [12:18:41]requested_item shift.opened is exist - process it [12:18:41]req_shift_opened [12:18:41]FM_GetShiftState [12:18:41]SAM_PROTO_GetShiftState [12:18:41]wFMCommunicate request_size=4 [12:18:41]MH_SAM_APDU [12:18:41]CAPDU: 80 13 01 00 [12:18:41]Write to MH i2c: E2 08 00 21 7A 80 13 01 00 00 00 00 00 18 [12:18:41]Write i2c OK [12:18:41]MH_I2C_Read... [12:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:41]Read from MH i2c: E2 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 0E 00 [12:18:41]MH_I2C_Read... [12:18:41]Read from MH i2c: E2 0E 00 21 7A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 FD [12:18:41]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:18:41]wFMCommunicate OK [12:18:41]SAM_PROTO_GetShiftState done [12:18:41]FM_GetShiftState done [12:18:41]req_shift_opened done [12:18:41]requested_item shift.open_date is exist - process it [12:18:41]req_shift_open_date [12:18:41]req_shift_open_date done [12:18:41]produce_requested_data done [12:18:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95400,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:18:41]process_action_free close_receipt [12:18:41]json_value_free [12:18:41]json_value_free done [12:18:41]process_json_proto returns [12:18:41]Send response to host [12:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95400,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:18:41]free response buf [12:18:41]execute_script done [12:18:41]execute_script returns [12:18:41]free content buf [12:18:41]Sock 9.Close socket [12:18:41]Sock 9.Thread stoped [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:49]accept exits with 8 [12:20:49]New connection [12:20:49]New thread 3066957156 created [12:20:49]Thread 3066813796 joined [12:20:49]Waiting for new connection... [12:20:49] Sock 8.Parse request [12:20:49]Sock 8.Check first char [12:20:49]Sock 8.First char is OK [12:20:49]request: POST /json_proto HTTP/1.0 [12:20:49]Method: POST [12:20:49]URL: /json_proto [12:20:49]Method is POST - this is cgi request [12:20:49]url: /json_proto [12:20:49]query_string will be loaded in cgi processing [12:20:49]execute_cgi json_proto POST (null) [12:20:49]execute_cgi path=json_proto method=POST [12:20:49]POST find Content-Length [12:20:49]Host: 172.17.62.67:8080 [12:20:49]Content-Length: 608 [12:20:49]Content-Type: application/json [12:20:49] [12:20:49]POST finish read [12:20:49]Found Content-Length = 608 [12:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11541", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 101.00, "quantity" : 1.000, "sum" : 101.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 101.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:49]execute_script... [12:20: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)11541", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 101.00, "quantity" : 1.000, "sum" : 101.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 101.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:49]POST & json_proto [12:20:49]process_json_proto [12:20:49]json parsed OK: [12:20:49]protocol is kg_v1.0 [12:20:49]action value=close_receipt [12:20:49]process_action close_receipt [12:20:49]cmd_close_receipt [12:20:49]MH_GetDate [12:20:49]Write to MH i2c: F0 00 00 22 7A 8B [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: F0 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: F0 05 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: F0 05 00 22 7A 00 2B 9A F1 65 AB [12:20:49]GetLastDocTimeStamp 1710332329 [12:20:49]current date 1710332459 [12:20:49]FM_GetShiftState [12:20:49]SAM_PROTO_GetShiftState [12:20:49]wFMCommunicate request_size=4 [12:20:49]MH_SAM_APDU [12:20:49]CAPDU: 80 13 01 00 [12:20:49]Write to MH i2c: E2 08 00 23 7A 80 13 01 00 00 00 00 00 1A [12:20:49]Write i2c OK [12:20:49]MH_I2C_Read... [12:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:49]Read from MH i2c: E2 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 0E 00 [12:20:49]MH_I2C_Read... [12:20:49]Read from MH i2c: E2 0E 00 23 7A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 FF [12:20:49]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:20:49]wFMCommunicate OK [12:20:49]SAM_PROTO_GetShiftState done [12:20:49]FM_GetShiftState done [12:20:49]opened in 1710288279 [12:20:49]opened+sec_in_day 1710374679 [12:20:49]quantity*price = 10100 [12:20:49]sum+1 = 10101 [12:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 101.00 НСП 1% : 0.89 НДС 12% : 10.73 Наличными: 101.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 96 13.03.2024 12:20 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95401 ФПД: 62878132948269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T122059&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95401&fm=62878132948269&tin=02508201610067®Number=0000000000090555&sum=10100 0 [12:20:50]StoreToDocumentArchive [12:20:50]shift 328 fd 95401 [12:20:50]save to /storage/0328/doc_00095401 [12:20:50]save last doc name /storage/0328/doc_00095401 to /storage/kkm_last_doc_name [12:20:50]save OK [12:20:50]Clear old archive folders... [12:20:50]ProcessDocumentItem done err = 0, tmpTLVsize=261 [12:20:50]tlvbuf is 01AF9F30 [12:20:50]SAM_PROTO_ClearQueue [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 09 00 00 [12:20:50]Write to MH i2c: E2 08 00 30 7A 80 09 00 00 00 00 00 00 1C [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 30 7A 00 90 00 1E [12:20:50]RAPDU: 90 00 [12:20:50]wFMCommunicate OK [12:20:50]SAM_PROTO_ClearQueue done [12:20:50]KKMCreateOFDPacket [12:20:50]OFDProtocolAddRootSTLVToBuf [12:20:50]FM_MakeSignedData [12:20:50]FM_MakeSignedData [12:20:50]SAM_PROTO_SignData [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 0D 01 02 [12:20:50]Write to MH i2c: E2 08 00 31 7A 80 0D 01 02 00 00 00 00 24 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 31 7A 00 90 00 1F [12:20:50]RAPDU: 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=255 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 27 00 00 00 00 13 04 06 00 74 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 04 00 00 00 00 07 04 06 00 74 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2B 9A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 [12:20:50]Write to MH i2c: E2 02 01 32 7A 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 27 00 00 00 00 13 04 06 00 74 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 04 00 00 00 00 07 04 06 00 74 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2B 9A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 00 C2 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 32 7A 00 90 00 20 [12:20:50]RAPDU: 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=20 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 0D 02 02 0F 00 A9 74 01 00 35 04 06 00 39 2F F4 C7 4D 2D [12:20:50]Write to MH i2c: E2 17 00 33 7A 80 0D 02 02 0F 00 00 A9 74 01 00 35 04 06 00 39 2F F4 C7 4D 2D 00 00 3F [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 03 00 33 7A 00 90 00 21 [12:20:50]RAPDU: 90 00 [12:20:50]wFMCommunicate OK [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 0D 03 02 [12:20:50]Write to MH i2c: E2 08 00 34 7A 80 0D 03 02 00 00 00 00 29 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 0B 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 0B 00 34 7A 00 F5 03 3D 25 8E D6 07 AD 90 00 9C [12:20:50]RAPDU: F5 03 3D 25 8E D6 07 AD 90 00 [12:20:50]wFMCommunicate OK [12:20:50]SAM_PROTO_SignData done [12:20:50]FM_MakeSignedData done [12:20:50]CreateOFDProtocolMessage [12:20:50]wFMCommunicate request_size=4 [12:20:50]MH_SAM_APDU [12:20:50]CAPDU: 80 11 00 00 [12:20:50]Write to MH i2c: E2 08 00 35 7A 80 11 00 00 00 00 00 00 29 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:50]Read from MH i2c: E2 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 17 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: E2 17 00 35 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 79 [12:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:20:50]wFMCommunicate OK [12:20:50]CreateOFDProtocolMessage done [12:20:50]OFDSenderStorePacket 95401 [12:20:50]StoreOFDPacket docnum=95401 [12:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 19 01 00 00 94 47 11 01 5A AB 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 27 00 00 00 00 13 04 06 00 74 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 04 00 00 00 00 07 04 06 00 74 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2B 9A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 74 01 00 35 04 06 00 39 2F F4 C7 4D 2D F5 03 3D 25 8E D6 07 AD [12:20:50]CheckFolder [12:20:50]dirname=/storage/ofd_packets [12:20:50]CheckFolder done [12:20:50]ProducePacketName [12:20:50]name=ofd_packets/00095401 [12:20:50]NVStorageSaveData ofd_packets/00095401 [12:20:50]File name is /storage/ofd_packets/00095401 [12:20:50]Write 311 bytes [12:20:50]NVStorageSaveData done [12:20:50]OFDSenderStorePacket done [12:20:50]KKMCreateOFDPacket done [12:20:50]NVStorageSaveData kkm_last_timestamp [12:20:50]File name is /storage/kkm_last_timestamp [12:20:50]Write 4 bytes [12:20:50]NVStorageSaveData done [12:20:50]ExternCall_PrintAddStr [12:20:50]wPrintStart [12:20:50]Write to MH i2c: 01 00 00 36 7A B0 [12:20:50]Write i2c OK [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 07 00 [12:20:50]MH_I2C_Read... [12:20:50]Read from MH i2c: 01 07 00 36 7A 00 80 00 00 00 FF 0F 45 [12:20:50]RasterBufferAndPrint [12:20:50]line Счет N : (3)11541 [12:20:50]line ИНН: 02508201610067 [12:20:50]line Контрольно-Кассовый Чек [12:20:50]line ПРОДАЖА [12:20:50]line Товар: 48741156 [12:20:50]line Сигареты LD Blue [12:20:50]line 1.000 * 101.00 [12:20:50]line = 101.00 [12:20:50]line НДС 12% НСП 1% [12:20:50]line > о реализуемом товаре [12:20:50]line ИТОГО: 101.00 [12:20:50]line НСП 1% : 0.89 [12:20:50]line НДС 12% : 10.73 [12:20:50]line Наличными: 101.00 [12:20:50]line Безнал.: 0.00 [12:20:50]line Место: АЗС № 6 "Партнер Нефть" [12:20:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:20:50]line СНО: Общий режим [12:20:50]line Чек 96 13.03.2024 12:20 [12:20:50]line Смена: 328 ФФД: 1.0 [12:20:50]line ЗНМ: 0300000009 [12:20:50]line РНМ: 0000000000090555 [12:20:50]line Версия ККМ: 001 [12:20:50]line ФМ: 0000000000874811 [12:20:50]line ФД: 95401 [12:20:50]line ФПД: 62878132948269 [12:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T122059&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95401&fm=62878132948269&tin=02508201610067®Number=0000000000090555&sum=10100 [12:20:51]line 0 [12:20:51]OFD Sender: Processing packet 95401 [packets to send 30, broken 29] [12:20:51]ProducePacketName [12:20:51]name=ofd_packets/00095401 [12:20:51]OFD Sender: To server: pG, [12:20:51]CommunicateWithHost lk.salyk.kg:30040 [12:20:51]ConnectInit lk.salyk.kg [12:20:51]written 0, free lines is 4095 [12:20:51]Connected sock=10 [12:20:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 19 01 00 00 94 47 11 01 5A AB 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 27 00 00 00 00 13 04 06 00 74 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 04 00 00 00 00 07 04 06 00 74 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2B 9A F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 74 01 00 35 04 06 00 39 2F F4 C7 4D 2D F5 03 3D 25 8E D6 07 AD [12:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 66 55 47 00 6B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 A9 74 01 00 F4 03 04 00 7E 45 F1 65 B6 04 01 00 00 1A 8B 61 6E 57 4B F6 C6 [12:20:51]CommunicateWithHost err = 0 [12:20:51]CheckOFDResponse [12:20:51]1017 (14) - 77093643461234 [12:20:51]1041 (16) - 0000000000874811 [12:20:51]1040 (4) - 95401 [12:20:51]1012 (4) - 13.03.2024 06:19 [12:20:51]1206 (1) - 0 [12:20:51]OFD Sender: Remove packet 95401 [12:20:51]ProducePacketName [12:20:51]name=ofd_packets/00095401 [12:20:51]NVStorageDeleteData [12:20:51]Write to MH i2c: 01 00 00 5E 7A D8 [12:20:51]Write i2c OK [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: 01 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: 01 07 00 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: 01 07 00 5E 7A 00 80 00 00 00 68 0D D4 [12:20:51]RasterBufferAndPrint [12:20:51]line [12:20:51]line [12:20:51]line [12:20:51]line [12:20:51]line [12:20:51]written 0, free lines is 3439 [12:20:51]process_action close_receipt done [12:20:51]requested_data is exist [12:20:51]produce_requested_data [12:20:51]requested_item fm.sn is exist - process it [12:20:51]wFMCommunicate request_size=4 [12:20:51]MH_SAM_APDU [12:20:51]CAPDU: 80 11 00 00 [12:20:51]Write to MH i2c: E2 08 00 65 7A 80 11 00 00 00 00 00 00 59 [12:20:51]Write i2c OK [12:20:51]MH_I2C_Read... [12:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:51]Read from MH i2c: E2 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 17 00 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 17 00 65 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A9 [12:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:20:51]wFMCommunicate OK [12:20:51]requested_item fd.num is exist - process it [12:20:51]SAM_PROTO_GetFieldsCounters [12:20:51]wFMCommunicate request_size=4 [12:20:51]MH_SAM_APDU [12:20:51]CAPDU: 80 13 00 00 [12:20:51]Write to MH i2c: E2 08 00 66 7A 80 13 00 00 00 00 00 00 5C [12:20:51]Write i2c OK [12:20:51]MH_I2C_Read... [12:20:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:51]Read from MH i2c: E2 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 62 00 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 62 00 66 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 74 01 00 0E 04 04 00 48 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 00 [12:20:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 74 01 00 0E 04 04 00 48 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 [12:20:51]wFMCommunicate OK [12:20:51]SAM_PROTO_GetFieldsCounters done [12:20:51]requested_item shift.num is exist - process it [12:20:51]requested_item shift.opened is exist - process it [12:20:51]req_shift_opened [12:20:51]FM_GetShiftState [12:20:51]SAM_PROTO_GetShiftState [12:20:51]wFMCommunicate request_size=4 [12:20:51]MH_SAM_APDU [12:20:51]CAPDU: 80 13 01 00 [12:20:51]Write to MH i2c: E2 08 00 67 7A 80 13 01 00 00 00 00 00 5E [12:20:51]Write i2c OK [12:20:51]MH_I2C_Read... [12:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:51]Read from MH i2c: E2 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 0E 00 [12:20:51]MH_I2C_Read... [12:20:51]Read from MH i2c: E2 0E 00 67 7A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 43 [12:20:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:20:51]wFMCommunicate OK [12:20:51]SAM_PROTO_GetShiftState done [12:20:51]FM_GetShiftState done [12:20:51]req_shift_opened done [12:20:51]requested_item shift.open_date is exist - process it [12:20:51]req_shift_open_date [12:20:51]req_shift_open_date done [12:20:51]produce_requested_data done [12:20:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95401,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:20:51]process_action_free close_receipt [12:20:51]json_value_free [12:20:51]json_value_free done [12:20:51]process_json_proto returns [12:20:51]Send response to host [12:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95401,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:20:51]free response buf [12:20:51]execute_script done [12:20:51]execute_script returns [12:20:51]free content buf [12:20:51]Sock 8.Close socket [12:20:51]Sock 8.Thread stoped [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:20:57]accept exits with 9 [12:20:57]New connection [12:20:57]New thread 3066813796 created [12:20:57]Thread 3066957156 joined [12:20:57]Waiting for new connection... [12:20:57] Sock 9.Parse request [12:20:57]Sock 9.Check first char [12:20:57]Sock 9.First char is OK [12:20:57]request: POST /json_proto HTTP/1.0 [12:20:57]Method: POST [12:20:57]URL: /json_proto [12:20:57]Method is POST - this is cgi request [12:20:57]url: /json_proto [12:20:57]query_string will be loaded in cgi processing [12:20:57]execute_cgi json_proto POST (null) [12:20:57]execute_cgi path=json_proto method=POST [12:20:57]POST find Content-Length [12:20:57]Host: 172.17.62.67:8080 [12:20:57]Content-Length: 1201 [12:20:57]Content-Type: application/json [12:20:57] [12:20:57]POST finish read [12:20:57]Found Content-Length = 1201 [12:20:57]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196390\u000A13.03.2024 12:15\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 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A65738\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:57]execute_script... [12:20:57]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196390\u000A13.03.2024 12:15\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 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A65738\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:57]POST & json_proto [12:20:57]process_json_proto [12:20:57]json parsed OK: [12:20:57]protocol is kg_v1.0 [12:20:57]action value=print_text [12:20:57]process_action print_text [12:20:57]cmd_print_text [12:20:57]ExternCall_PrintAddStr [12:20:57]wPrintStart [12:20:57]Write to MH i2c: 01 00 00 68 7A E2 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 07 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 07 00 68 7A 00 80 00 00 00 FF 0F 77 [12:20:57]RasterBufferAndPrint [12:20:57]line *****ТОВАРНЫЙ ЧЕК***** [12:20:57]line АЗС 6 [12:20:57]line Партнер нефть [12:20:57]line 02508201610067 [12:20:57]line Кассир : Сабырбек у. М. [12:20:57]line Счет N : (1)196390 [12:20:57]line 13.03.2024 12:15 [12:20:57]line ПРОДАЖА [12:20:57]line ТРК (МРК, ГНК): 42 [12:20:57]line Вид ГСМ : 2710124130 [12:20:57]line Аи-92-К-5 [12:20:57]line 20.000 x 62.90 [12:20:57]line ИТОГ: 1258.00 [12:20:57]line Тип оплаты: Талоны: Топливная Карта [12:20:57]line 65738 [12:20:57]line ______________________ [12:20:57]line (подпись) [12:20:57]written 0, free lines is 4095 [12:20:57]Write to MH i2c: 01 00 00 7C 7A F6 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 07 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: 01 07 00 7C 7A 00 80 00 00 00 66 0E F1 [12:20:57]RasterBufferAndPrint [12:20:57]line [12:20:57]line [12:20:57]line [12:20:57]line [12:20:57]line [12:20:57]written 0, free lines is 3694 [12:20:57]process_action print_text done [12:20:57]requested_data is exist [12:20:57]produce_requested_data [12:20:57]requested_item fm.sn is exist - process it [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 11 00 00 [12:20:57]Write to MH i2c: E2 08 00 83 7A 80 11 00 00 00 00 00 00 77 [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 17 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 17 00 83 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C7 [12:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:20:57]wFMCommunicate OK [12:20:57]requested_item fd.num is exist - process it [12:20:57]SAM_PROTO_GetFieldsCounters [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 13 00 00 [12:20:57]Write to MH i2c: E2 08 00 84 7A 80 13 00 00 00 00 00 00 7A [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 62 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 62 00 84 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 74 01 00 0E 04 04 00 48 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 1E [12: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 A9 74 01 00 0E 04 04 00 48 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 [12:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_GetFieldsCounters done [12:20:57]requested_item shift.num is exist - process it [12:20:57]requested_item shift.opened is exist - process it [12:20:57]req_shift_opened [12:20:57]FM_GetShiftState [12:20:57]SAM_PROTO_GetShiftState [12:20:57]wFMCommunicate request_size=4 [12:20:57]MH_SAM_APDU [12:20:57]CAPDU: 80 13 01 00 [12:20:57]Write to MH i2c: E2 08 00 85 7A 80 13 01 00 00 00 00 00 7C [12:20:57]Write i2c OK [12:20:57]MH_I2C_Read... [12:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:57]Read from MH i2c: E2 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0E 00 [12:20:57]MH_I2C_Read... [12:20:57]Read from MH i2c: E2 0E 00 85 7A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 61 [12:20:57]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:20:57]wFMCommunicate OK [12:20:57]SAM_PROTO_GetShiftState done [12:20:57]FM_GetShiftState done [12:20:57]req_shift_opened done [12:20:57]requested_item shift.open_date is exist - process it [12:20:57]req_shift_open_date [12:20:57]req_shift_open_date done [12:20:57]produce_requested_data done [12:20:57]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95401,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:20:57]process_action_free print_text [12:20:57]json_value_free [12:20:57]json_value_free done [12:20:57]process_json_proto returns [12:20:57]Send response to host [12:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95401,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:20:57]free response buf [12:20:57]execute_script done [12:20:57]execute_script returns [12:20:57]free content buf [12:20:57]Sock 9.Close socket [12:20:57]Sock 9.Thread stoped [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:01]accept exits with 8 [12:28:01]New connection [12:28:01]New thread 3066957156 created [12:28:01]Thread 3066813796 joined [12:28:01]Waiting for new connection... [12:28:01] Sock 8.Parse request [12:28:01]Sock 8.Check first char [12:28:01]Sock 8.First char is OK [12:28:01]request: POST /json_proto HTTP/1.0 [12:28:01]Method: POST [12:28:01]URL: /json_proto [12:28:01]Method is POST - this is cgi request [12:28:01]url: /json_proto [12:28:01]query_string will be loaded in cgi processing [12:28:01]execute_cgi json_proto POST (null) [12:28:01]execute_cgi path=json_proto method=POST [12:28:01]POST find Content-Length [12:28:01]Host: 172.17.62.67:8080 [12:28:01]Content-Length: 677 [12:28:01]Content-Type: application/json [12:28:01] [12:28:01]POST finish read [12:28:01]Found Content-Length = 677 [12:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196391", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:01]execute_script... [12:28: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)196391", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:01]POST & json_proto [12:28:01]process_json_proto [12:28:01]json parsed OK: [12:28:01]protocol is kg_v1.0 [12:28:01]action value=close_receipt [12:28:01]process_action close_receipt [12:28:01]cmd_close_receipt [12:28:01]MH_GetDate [12:28:01]Write to MH i2c: F0 00 00 86 7A EF [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: F0 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: F0 05 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: F0 05 00 86 7A 00 DC 9B F1 65 C1 [12:28:01]GetLastDocTimeStamp 1710332459 [12:28:01]current date 1710332892 [12:28:01]FM_GetShiftState [12:28:01]SAM_PROTO_GetShiftState [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 13 01 00 [12:28:01]Write to MH i2c: E2 08 00 87 7A 80 13 01 00 00 00 00 00 7E [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 0E 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 0E 00 87 7A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 63 [12:28:01]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:28:01]wFMCommunicate OK [12:28:01]SAM_PROTO_GetShiftState done [12:28:01]FM_GetShiftState done [12:28:01]opened in 1710288279 [12:28:01]opened+sec_in_day 1710374679 [12:28:01]quantity*price = 60006 [12:28:01]sum+1 = 60008 [12:28:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 97 13.03.2024 12:28 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95402 ФПД: 31799489992224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T122812&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95402&fm=31799489992224&tin=02508201610067®Number=0000000000090555&sum=60000 [12:28:02]StoreToDocumentArchive [12:28:02]shift 328 fd 95402 [12:28:02]save to /storage/0328/doc_00095402 [12:28:02]save last doc name /storage/0328/doc_00095402 to /storage/kkm_last_doc_name [12:28:02]save OK [12:28:02]Clear old archive folders... [12:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:02]tlvbuf is 01C1D070 [12:28:02]SAM_PROTO_ClearQueue [12:28:02]wFMCommunicate request_size=4 [12:28:02]MH_SAM_APDU [12:28:02]CAPDU: 80 09 00 00 [12:28:02]Write to MH i2c: E2 08 00 94 7A 80 09 00 00 00 00 00 00 80 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:02]Read from MH i2c: E2 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 03 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 03 00 94 7A 00 90 00 82 [12:28:02]RAPDU: 90 00 [12:28:02]wFMCommunicate OK [12:28:02]SAM_PROTO_ClearQueue done [12:28:02]KKMCreateOFDPacket [12:28:02]OFDProtocolAddRootSTLVToBuf [12:28:02]FM_MakeSignedData [12:28:02]FM_MakeSignedData [12:28:02]SAM_PROTO_SignData [12:28:02]wFMCommunicate request_size=4 [12:28:02]MH_SAM_APDU [12:28:02]CAPDU: 80 0D 01 02 [12:28:02]Write to MH i2c: E2 08 00 95 7A 80 0D 01 02 00 00 00 00 88 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:02]Read from MH i2c: E2 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 03 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 03 00 95 7A 00 90 00 83 [12:28:02]RAPDU: 90 00 [12:28:02]wFMCommunicate OK [12:28:02]wFMCommunicate request_size=255 [12:28:02]MH_SAM_APDU [12:28:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 DC 9B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 74 01 00 35 04 06 00 1C [12:28:02]Write to MH i2c: E2 02 01 96 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 DC 9B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 74 01 00 35 04 06 00 1C 00 00 49 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:02]Read from MH i2c: E2 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 03 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 03 00 96 7A 00 90 00 84 [12:28:02]RAPDU: 90 00 [12:28:02]wFMCommunicate OK [12:28:02]wFMCommunicate request_size=10 [12:28:02]MH_SAM_APDU [12:28:02]CAPDU: 80 0D 02 02 05 EB E5 4E 16 20 [12:28:02]Write to MH i2c: E2 0D 00 97 7A 80 0D 02 02 05 00 EB E5 4E 16 20 00 00 E9 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 03 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 03 00 97 7A 00 90 00 85 [12:28:03]RAPDU: 90 00 [12:28:03]wFMCommunicate OK [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 0D 03 02 [12:28:03]Write to MH i2c: E2 08 00 98 7A 80 0D 03 02 00 00 00 00 8D [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 0B 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 0B 00 98 7A 00 58 6A A6 D0 8A BD BE E0 90 00 AB [12:28:03]RAPDU: 58 6A A6 D0 8A BD BE E0 90 00 [12:28:03]wFMCommunicate OK [12:28:03]SAM_PROTO_SignData done [12:28:03]FM_MakeSignedData done [12:28:03]CreateOFDProtocolMessage [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 11 00 00 [12:28:03]Write to MH i2c: E2 08 00 99 7A 80 11 00 00 00 00 00 00 8D [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 17 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 17 00 99 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DD [12:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:28:03]wFMCommunicate OK [12:28:03]CreateOFDProtocolMessage done [12:28:03]OFDSenderStorePacket 95402 [12:28:03]StoreOFDPacket docnum=95402 [12:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A8 F4 07 01 96 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 DC 9B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 74 01 00 35 04 06 00 1C EB E5 4E 16 20 58 6A A6 D0 8A BD BE E0 [12:28:03]CheckFolder [12:28:03]dirname=/storage/ofd_packets [12:28:03]CheckFolder done [12:28:03]ProducePacketName [12:28:03]name=ofd_packets/00095402 [12:28:03]NVStorageSaveData ofd_packets/00095402 [12:28:03]File name is /storage/ofd_packets/00095402 [12:28:03]Write 301 bytes [12:28:03]NVStorageSaveData done [12:28:03]OFDSenderStorePacket done [12:28:03]KKMCreateOFDPacket done [12:28:03]NVStorageSaveData kkm_last_timestamp [12:28:03]File name is /storage/kkm_last_timestamp [12:28:03]Write 4 bytes [12:28:03]NVStorageSaveData done [12:28:03]ExternCall_PrintAddStr [12:28:03]wPrintStart [12:28:03]Write to MH i2c: 01 00 00 9A 7A 14 [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: 01 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: 01 07 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: 01 07 00 9A 7A 00 80 00 00 00 FF 0F A9 [12:28:03]RasterBufferAndPrint [12:28:03]line Счет N : (1)196391 [12:28:03]line ИНН: 02508201610067 [12:28:03]line Контрольно-Кассовый Чек [12:28:03]line ПРОДАЖА [12:28:03]line ТРК (МРК, ГНК) : 22 [12:28:03]line Товар: 2710124130 [12:28:03]line Аи-92-К-5 [12:28:03]line 9.540 * 62.90 [12:28:03]line = 600.07 [12:28:03]line НДС 12% НСП 1% [12:28:03]line > о реализуемом товаре [12:28:03]line ОКРУГЛЕНИЕ: -0.07 [12:28:03]line ИТОГО: 600.00 [12:28:03]line Внесено: 600.00 [12:28:03]line СДАЧА: 0.00 [12:28:03]line НСП 1% : 5.31 [12:28:03]line НДС 12% : 63.72 [12:28:03]line Наличными: 600.00 [12:28:03]line Безнал.: 0.00 [12:28:03]line Место: АЗС № 6 "Партнер Нефть" [12:28:03]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:28:03]line СНО: Общий режим [12:28:03]line Чек 97 13.03.2024 12:28 [12:28:03]line Смена: 328 ФФД: 1.0 [12:28:03]line ЗНМ: 0300000009 [12:28:03]line РНМ: 0000000000090555 [12:28:03]line Версия ККМ: 001 [12:28:03]line ФМ: 0000000000874811 [12:28:03]line ФД: 95402 [12:28:03]line ФПД: 31799489992224 [12:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T122812&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95402&fm=31799489992224&tin=02508201610067®Number=0000000000090555&sum=60000 [12:28:03]OFD Sender: Processing packet 95402 [packets to send 30, broken 29] [12:28:03]ProducePacketName [12:28:03]name=ofd_packets/00095402 [12:28:03]OFD Sender: To server: pG, [12:28:03]CommunicateWithHost lk.salyk.kg:30040 [12:28:03]ConnectInit lk.salyk.kg [12:28:03]written 0, free lines is 4095 [12:28:03]Connected sock=10 [12:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A8 F4 07 01 96 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 DC 9B F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 74 01 00 35 04 06 00 1C EB E5 4E 16 20 58 6A A6 D0 8A BD BE E0 [12:28:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 16 5D 47 00 10 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AA 74 01 00 F4 03 04 00 2F 47 F1 65 B6 04 01 00 00 8D 9E 2F 42 87 24 59 8F [12:28:03]CommunicateWithHost err = 0 [12:28:03]CheckOFDResponse [12:28:03]1017 (14) - 77093643461234 [12:28:03]1041 (16) - 0000000000874811 [12:28:03]1040 (4) - 95402 [12:28:03]1012 (4) - 13.03.2024 06:26 [12:28:03]1206 (1) - 0 [12:28:03]OFD Sender: Remove packet 95402 [12:28:03]ProducePacketName [12:28:03]name=ofd_packets/00095402 [12:28:03]NVStorageDeleteData [12:28:03]Write to MH i2c: 01 00 00 C5 7A 3F [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: 01 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: 01 07 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: 01 07 00 C5 7A 00 80 00 00 00 49 0D 1C [12:28:03]RasterBufferAndPrint [12:28:03]line [12:28:03]line [12:28:03]line [12:28:03]line [12:28:03]line [12:28:03]written 0, free lines is 3407 [12:28:03]process_action close_receipt done [12:28:03]requested_data is exist [12:28:03]produce_requested_data [12:28:03]requested_item fm.sn is exist - process it [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 11 00 00 [12:28:03]Write to MH i2c: E2 08 00 CC 7A 80 11 00 00 00 00 00 00 C0 [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:04]Read from MH i2c: E2 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 17 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 17 00 CC 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 10 [12:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:28:04]wFMCommunicate OK [12:28:04]requested_item fd.num is exist - process it [12:28:04]SAM_PROTO_GetFieldsCounters [12:28:04]wFMCommunicate request_size=4 [12:28:04]MH_SAM_APDU [12:28:04]CAPDU: 80 13 00 00 [12:28:04]Write to MH i2c: E2 08 00 CD 7A 80 13 00 00 00 00 00 00 C3 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:04]Read from MH i2c: E2 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 62 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 62 00 CD 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AA 74 01 00 0E 04 04 00 48 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 6B [12:28:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AA 74 01 00 0E 04 04 00 48 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 [12:28:04]wFMCommunicate OK [12:28:04]SAM_PROTO_GetFieldsCounters done [12:28:04]requested_item shift.num is exist - process it [12:28:04]requested_item shift.opened is exist - process it [12:28:04]req_shift_opened [12:28:04]FM_GetShiftState [12:28:04]SAM_PROTO_GetShiftState [12:28:04]wFMCommunicate request_size=4 [12:28:04]MH_SAM_APDU [12:28:04]CAPDU: 80 13 01 00 [12:28:04]Write to MH i2c: E2 08 00 CE 7A 80 13 01 00 00 00 00 00 C5 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:04]Read from MH i2c: E2 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 0E 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 0E 00 CE 7A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 AA [12:28:04]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:28:04]wFMCommunicate OK [12:28:04]SAM_PROTO_GetShiftState done [12:28:04]FM_GetShiftState done [12:28:04]req_shift_opened done [12:28:04]requested_item shift.open_date is exist - process it [12:28:04]req_shift_open_date [12:28:04]req_shift_open_date done [12:28:04]produce_requested_data done [12:28:04]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95402,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:28:04]process_action_free close_receipt [12:28:04]json_value_free [12:28:04]json_value_free done [12:28:04]process_json_proto returns [12:28:04]Send response to host [12:28:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95402,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:28:04]free response buf [12:28:04]execute_script done [12:28:04]execute_script returns [12:28:04]free content buf [12:28:04]Sock 8.Close socket [12:28:04]Sock 8.Thread stoped [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:23]accept exits with 9 [12:31:23]New connection [12:31:23]New thread 3066813796 created [12:31:23]Thread 3066957156 joined [12:31:23]Waiting for new connection... [12:31:23] Sock 9.Parse request [12:31:23]Sock 9.Check first char [12:31:23]Sock 9.First char is OK [12:31:23]request: POST /json_proto HTTP/1.0 [12:31:23]Method: POST [12:31:23]URL: /json_proto [12:31:23]Method is POST - this is cgi request [12:31:23]url: /json_proto [12:31:23]query_string will be loaded in cgi processing [12:31:23]execute_cgi json_proto POST (null) [12:31:23]execute_cgi path=json_proto method=POST [12:31:23]POST find Content-Length [12:31:23]Host: 172.17.62.67:8080 [12:31:23]Content-Length: 816 [12:31:23]Content-Type: application/json [12:31:23] [12:31:23]POST finish read [12:31:23]Found Content-Length = 816 [12:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196392", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:23]execute_script... [12:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196392", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:23]POST & json_proto [12:31:23]process_json_proto [12:31:23]json parsed OK: [12:31:23]protocol is kg_v1.0 [12:31:23]action value=close_receipt [12:31:23]process_action close_receipt [12:31:23]cmd_close_receipt [12:31:23]MH_GetDate [12:31:23]Write to MH i2c: F0 00 00 CF 7A 38 [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 05 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: F0 05 00 CF 7A 00 A6 9C F1 65 D5 [12:31:23]GetLastDocTimeStamp 1710332892 [12:31:23]current date 1710333094 [12:31:23]FM_GetShiftState [12:31:23]SAM_PROTO_GetShiftState [12:31:23]wFMCommunicate request_size=4 [12:31:23]MH_SAM_APDU [12:31:23]CAPDU: 80 13 01 00 [12:31:23]Write to MH i2c: E2 08 00 D0 7A 80 13 01 00 00 00 00 00 C7 [12:31:23]Write i2c OK [12:31:23]MH_I2C_Read... [12:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:23]Read from MH i2c: E2 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0E 00 [12:31:23]MH_I2C_Read... [12:31:23]Read from MH i2c: E2 0E 00 D0 7A 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 AC [12:31:23]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:31:23]wFMCommunicate OK [12:31:23]SAM_PROTO_GetShiftState done [12:31:23]FM_GetShiftState done [12:31:23]opened in 1710288279 [12:31:23]opened+sec_in_day 1710374679 [12:31:23]quantity*price = 60006 [12:31:23]sum+1 = 60008 [12:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 98 13.03.2024 12:31 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95403 ФПД: 261043799896326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T123134&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95403&fm=261043799896326&tin=02508201610067®Number=0000000000090555&sum=60007 [12:31:24]StoreToDocumentArchive [12:31:24]shift 328 fd 95403 [12:31:24]save to /storage/0328/doc_00095403 [12:31:24]save last doc name /storage/0328/doc_00095403 to /storage/kkm_last_doc_name [12:31:24]save OK [12:31:24]Clear old archive folders... [12:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:24]tlvbuf is 01AF9D30 [12:31:24]SAM_PROTO_ClearQueue [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 09 00 00 [12:31:24]Write to MH i2c: E2 08 00 DD 7A 80 09 00 00 00 00 00 00 C9 [12:31:24]OFD Sender: No OFD packet to send [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 DD 7A 00 90 00 CB [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]SAM_PROTO_ClearQueue done [12:31:24]KKMCreateOFDPacket [12:31:24]OFDProtocolAddRootSTLVToBuf [12:31:24]FM_MakeSignedData [12:31:24]FM_MakeSignedData [12:31:24]SAM_PROTO_SignData [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 0D 01 02 [12:31:24]Write to MH i2c: E2 08 00 DE 7A 80 0D 01 02 00 00 00 00 D1 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 DE 7A 00 90 00 CC [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=255 [12:31:24]MH_SAM_APDU [12:31: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 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A6 9C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 74 01 00 35 04 06 00 ED [12:31:24]Write to MH i2c: E2 02 01 DF 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A6 9C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 74 01 00 35 04 06 00 ED 00 00 3E [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 DF 7A 00 90 00 CD [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=10 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 0D 02 02 05 6A FE F6 B1 06 [12:31:24]Write to MH i2c: E2 0D 00 E0 7A 80 0D 02 02 05 00 6A FE F6 B1 06 00 00 F3 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 03 00 E0 7A 00 90 00 CE [12:31:24]RAPDU: 90 00 [12:31:24]wFMCommunicate OK [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 0D 03 02 [12:31:24]Write to MH i2c: E2 08 00 E1 7A 80 0D 03 02 00 00 00 00 D6 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 0B 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 0B 00 E1 7A 00 13 9E E5 98 F1 D9 40 CB 90 00 DA [12:31:24]RAPDU: 13 9E E5 98 F1 D9 40 CB 90 00 [12:31:24]wFMCommunicate OK [12:31:24]SAM_PROTO_SignData done [12:31:24]FM_MakeSignedData done [12:31:24]CreateOFDProtocolMessage [12:31:24]wFMCommunicate request_size=4 [12:31:24]MH_SAM_APDU [12:31:24]CAPDU: 80 11 00 00 [12:31:24]Write to MH i2c: E2 08 00 E2 7A 80 11 00 00 00 00 00 00 D6 [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:24]Read from MH i2c: E2 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: E2 17 00 E2 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 26 [12:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:31:24]wFMCommunicate OK [12:31:24]CreateOFDProtocolMessage done [12:31:24]OFDSenderStorePacket 95403 [12:31:24]StoreOFDPacket docnum=95403 [12:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 54 07 01 FF 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A6 9C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 74 01 00 35 04 06 00 ED 6A FE F6 B1 06 13 9E E5 98 F1 D9 40 CB [12:31:24]CheckFolder [12:31:24]dirname=/storage/ofd_packets [12:31:24]CheckFolder done [12:31:24]ProducePacketName [12:31:24]name=ofd_packets/00095403 [12:31:24]NVStorageSaveData ofd_packets/00095403 [12:31:24]File name is /storage/ofd_packets/00095403 [12:31:24]Write 301 bytes [12:31:24]NVStorageSaveData done [12:31:24]OFDSenderStorePacket done [12:31:24]KKMCreateOFDPacket done [12:31:24]NVStorageSaveData kkm_last_timestamp [12:31:24]File name is /storage/kkm_last_timestamp [12:31:24]Write 4 bytes [12:31:24]NVStorageSaveData done [12:31:24]ExternCall_PrintAddStr [12:31:24]wPrintStart [12:31:24]Write to MH i2c: 01 00 00 E3 7A 5D [12:31:24]Write i2c OK [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 [12:31:24]MH_I2C_Read... [12:31:24]Read from MH i2c: 01 07 00 E3 7A 00 80 00 00 00 FF 0F F2 [12:31:24]RasterBufferAndPrint [12:31:24]line Счет N : (1)196392 [12:31:24]line ИНН: 02508201610067 [12:31:24]line Контрольно-Кассовый Чек [12:31:24]line ПРОДАЖА [12:31:24]line ТРК (МРК, ГНК) : 22 [12:31:24]line Товар: 2710124130 [12:31:24]line Аи-92-К-5 [12:31:24]line 9.540 * 62.90 [12:31:24]line = 600.07 [12:31:24]line НДС 12% НСП 1% [12:31:24]line > о реализуемом товаре [12:31:24]line ИТОГО: 600.07 [12:31:24]line НСП 1% : 5.31 [12:31:24]line НДС 12% : 63.72 [12:31:24]line Наличными: 0.00 [12:31:24]line Безнал.: 600.07 [12:31:24]line Место: АЗС № 6 "Партнер Нефть" [12:31:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:31:24]line СНО: Общий режим [12:31:24]line Чек 98 13.03.2024 12:31 [12:31:24]line Смена: 328 ФФД: 1.0 [12:31:24]line ЗНМ: 0300000009 [12:31:24]line РНМ: 0000000000090555 [12:31:24]line Версия ККМ: 001 [12:31:24]line Платежная система: Бакай Банк [12:31:24]line ФМ: 0000000000874811 [12:31:24]line ФД: 95403 [12:31:24]line ФПД: 261043799896326 [12:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T123134&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95403&fm=261043799896326&tin=02508201610067®Number=0000000000090555&sum=60007 [12:31:25]written 0, free lines is 4095 [12:31:25]OFD Sender: Processing packet 95403 [packets to send 30, broken 29] [12:31:25]ProducePacketName [12:31:25]name=ofd_packets/00095403 [12:31:25]OFD Sender: To server: pG, [12:31:25]CommunicateWithHost lk.salyk.kg:30040 [12:31:25]ConnectInit lk.salyk.kg [12:31:25]Connected sock=10 [12:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 58 54 07 01 FF 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 A6 9C F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 74 01 00 35 04 06 00 ED 6A FE F6 B1 06 13 9E E5 98 F1 D9 40 CB [12:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 0D 9B 47 00 26 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AB 74 01 00 F4 03 04 00 F8 47 F1 65 B6 04 01 00 00 EA 11 BB 69 7F 27 78 98 [12:31:25]CommunicateWithHost err = 0 [12:31:25]CheckOFDResponse [12:31:25]1017 (14) - 77093643461234 [12:31:25]1041 (16) - 0000000000874811 [12:31:25]1040 (4) - 95403 [12:31:25]1012 (4) - 13.03.2024 06:30 [12:31:25]1206 (1) - 0 [12:31:25]OFD Sender: Remove packet 95403 [12:31:25]ProducePacketName [12:31:25]name=ofd_packets/00095403 [12:31:25]NVStorageDeleteData [12:31:25]Write to MH i2c: 01 00 00 0D 7B 88 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: 01 07 00 0D 7B 00 80 00 00 00 60 0D 7C [12:31:25]RasterBufferAndPrint [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]line [12:31:25]written 0, free lines is 3430 [12:31:25]process_action close_receipt done [12:31:25]requested_data is exist [12:31:25]produce_requested_data [12:31:25]requested_item fm.sn is exist - process it [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 11 00 00 [12:31:25]Write to MH i2c: E2 08 00 14 7B 80 11 00 00 00 00 00 00 09 [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 17 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 17 00 14 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 59 [12:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:31:25]wFMCommunicate OK [12:31:25]requested_item fd.num is exist - process it [12:31:25]SAM_PROTO_GetFieldsCounters [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 13 00 00 [12:31:25]Write to MH i2c: E2 08 00 15 7B 80 13 00 00 00 00 00 00 0C [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:25]Read from MH i2c: E2 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 62 00 [12:31:25]MH_I2C_Read... [12:31:25]Read from MH i2c: E2 62 00 15 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AB 74 01 00 0E 04 04 00 48 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 B8 [12:31:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AB 74 01 00 0E 04 04 00 48 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 [12:31:25]wFMCommunicate OK [12:31:25]SAM_PROTO_GetFieldsCounters done [12:31:25]requested_item shift.num is exist - process it [12:31:25]requested_item shift.opened is exist - process it [12:31:25]req_shift_opened [12:31:25]FM_GetShiftState [12:31:25]SAM_PROTO_GetShiftState [12:31:25]wFMCommunicate request_size=4 [12:31:25]MH_SAM_APDU [12:31:25]CAPDU: 80 13 01 00 [12:31:25]Write to MH i2c: E2 08 00 16 7B 80 13 01 00 00 00 00 00 0E [12:31:25]Write i2c OK [12:31:25]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 0E 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 0E 00 16 7B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F3 [12:31:26]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:31:26]wFMCommunicate OK [12:31:26]SAM_PROTO_GetShiftState done [12:31:26]FM_GetShiftState done [12:31:26]req_shift_opened done [12:31:26]requested_item shift.open_date is exist - process it [12:31:26]req_shift_open_date [12:31:26]req_shift_open_date done [12:31:26]produce_requested_data done [12:31:26]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95403,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:31:26]process_action_free close_receipt [12:31:26]json_value_free [12:31:26]json_value_free done [12:31:26]process_json_proto returns [12:31:26]Send response to host [12:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95403,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:31:26]free response buf [12:31:26]execute_script done [12:31:26]execute_script returns [12:31:26]free content buf [12:31:26]Sock 9.Close socket [12:31:26]Sock 9.Thread stoped [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:41]accept exits with 8 [12:35:41]New connection [12:35:41]New thread 3066957156 created [12:35:41]Thread 3066813796 joined [12:35:41]Waiting for new connection... [12:35:41] Sock 8.Parse request [12:35:41]Sock 8.Check first char [12:35:41]Sock 8.First char is OK [12:35:41]request: POST /json_proto HTTP/1.0 [12:35:41]Method: POST [12:35:41]URL: /json_proto [12:35:41]Method is POST - this is cgi request [12:35:41]url: /json_proto [12:35:41]query_string will be loaded in cgi processing [12:35:41]execute_cgi json_proto POST (null) [12:35:41]execute_cgi path=json_proto method=POST [12:35:41]POST find Content-Length [12:35:41]Host: 172.17.62.67:8080 [12:35:41]Content-Length: 817 [12:35:41]Content-Type: application/json [12:35:41] [12:35:41]POST finish read [12:35:41]Found Content-Length = 817 [12:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196393", "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" : 62.90, "quantity" : 10.000, "sum" : 629.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" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:41]execute_script... [12:35:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196393", "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" : 62.90, "quantity" : 10.000, "sum" : 629.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" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:41]POST & json_proto [12:35:41]process_json_proto [12:35:41]json parsed OK: [12:35:41]protocol is kg_v1.0 [12:35:41]action value=close_receipt [12:35:41]process_action close_receipt [12:35:41]cmd_close_receipt [12:35:41]MH_GetDate [12:35:41]Write to MH i2c: F0 00 00 17 7B 81 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: F0 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: F0 05 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: F0 05 00 17 7B 00 A8 9D F1 65 21 [12:35:41]GetLastDocTimeStamp 1710333094 [12:35:41]current date 1710333352 [12:35:41]FM_GetShiftState [12:35:41]SAM_PROTO_GetShiftState [12:35:41]wFMCommunicate request_size=4 [12:35:41]MH_SAM_APDU [12:35:41]CAPDU: 80 13 01 00 [12:35:41]Write to MH i2c: E2 08 00 18 7B 80 13 01 00 00 00 00 00 10 [12:35:41]Write i2c OK [12:35:41]MH_I2C_Read... [12:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:41]Read from MH i2c: E2 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 0E 00 [12:35:41]MH_I2C_Read... [12:35:41]Read from MH i2c: E2 0E 00 18 7B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F5 [12:35:41]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:35:41]wFMCommunicate OK [12:35:41]SAM_PROTO_GetShiftState done [12:35:41]FM_GetShiftState done [12:35:41]opened in 1710288279 [12:35:41]opened+sec_in_day 1710374679 [12:35:41]quantity*price = 62900 [12:35:41]sum+1 = 62901 [12:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 99 13.03.2024 12:35 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95404 ФПД: 182200784385772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T123552&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95404&fm=182200784385772&tin=02508201610067®Number=0000000000090555&sum=62900 [12:35:42]StoreToDocumentArchive [12:35:42]shift 328 fd 95404 [12:35:42]save to /storage/0328/doc_00095404 [12:35:42]save last doc name /storage/0328/doc_00095404 to /storage/kkm_last_doc_name [12:35:42]save OK [12:35:42]Clear old archive folders... [12:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:42]tlvbuf is 01AECAE0 [12:35:42]SAM_PROTO_ClearQueue [12:35:42]wFMCommunicate request_size=4 [12:35:42]MH_SAM_APDU [12:35:42]CAPDU: 80 09 00 00 [12:35:42]Write to MH i2c: E2 08 00 25 7B 80 09 00 00 00 00 00 00 12 [12:35:42]Write i2c OK [12:35:42]MH_I2C_Read... [12:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:42]Read from MH i2c: E2 [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: E2 03 00 [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: E2 03 00 25 7B 00 90 00 14 [12:35:42]RAPDU: 90 00 [12:35:42]wFMCommunicate OK [12:35:42]SAM_PROTO_ClearQueue done [12:35:42]KKMCreateOFDPacket [12:35:42]OFDProtocolAddRootSTLVToBuf [12:35:42]FM_MakeSignedData [12:35:42]FM_MakeSignedData [12:35:42]SAM_PROTO_SignData [12:35:42]wFMCommunicate request_size=4 [12:35:42]MH_SAM_APDU [12:35:42]CAPDU: 80 0D 01 02 [12:35:42]Write to MH i2c: E2 08 00 26 7B 80 0D 01 02 00 00 00 00 1A [12:35:42]Write i2c OK [12:35:42]MH_I2C_Read... [12:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:42]Read from MH i2c: E2 [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: E2 03 00 [12:35:42]MH_I2C_Read... [12:35:42]Read from MH i2c: E2 03 00 26 7B 00 90 00 15 [12:35:42]RAPDU: 90 00 [12:35:42]wFMCommunicate OK [12:35:42]wFMCommunicate request_size=255 [12:35:42]MH_SAM_APDU [12:35:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A8 9D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 74 01 00 35 04 06 00 A5 [12:35:42]Write to MH i2c: E2 02 01 27 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A8 9D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 74 01 00 35 04 06 00 A5 00 00 6A [12:35:42]Write i2c OK [12:35:42]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 03 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 03 00 27 7B 00 90 00 16 [12:35:43]RAPDU: 90 00 [12:35:43]wFMCommunicate OK [12:35:43]wFMCommunicate request_size=10 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 0D 02 02 05 B5 ED 07 F6 EC [12:35:43]Write to MH i2c: E2 0D 00 28 7B 80 0D 02 02 05 00 B5 ED 07 F6 EC 00 00 B2 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 03 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 03 00 28 7B 00 90 00 17 [12:35:43]RAPDU: 90 00 [12:35:43]wFMCommunicate OK [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 0D 03 02 [12:35:43]Write to MH i2c: E2 08 00 29 7B 80 0D 03 02 00 00 00 00 1F [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 0B 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 0B 00 29 7B 00 06 D7 30 6E C1 BF 7B 73 90 00 09 [12:35:43]RAPDU: 06 D7 30 6E C1 BF 7B 73 90 00 [12:35:43]wFMCommunicate OK [12:35:43]SAM_PROTO_SignData done [12:35:43]FM_MakeSignedData done [12:35:43]CreateOFDProtocolMessage [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 11 00 00 [12:35:43]Write to MH i2c: E2 08 00 2A 7B 80 11 00 00 00 00 00 00 1F [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 17 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 17 00 2A 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6F [12:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:35:43]wFMCommunicate OK [12:35:43]CreateOFDProtocolMessage done [12:35:43]OFDSenderStorePacket 95404 [12:35:43]StoreOFDPacket docnum=95404 [12:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A9 36 07 01 00 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A8 9D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 74 01 00 35 04 06 00 A5 B5 ED 07 F6 EC 06 D7 30 6E C1 BF 7B 73 [12:35:43]CheckFolder [12:35:43]dirname=/storage/ofd_packets [12:35:43]CheckFolder done [12:35:43]ProducePacketName [12:35:43]name=ofd_packets/00095404 [12:35:43]NVStorageSaveData ofd_packets/00095404 [12:35:43]File name is /storage/ofd_packets/00095404 [12:35:43]Write 301 bytes [12:35:43]NVStorageSaveData done [12:35:43]OFDSenderStorePacket done [12:35:43]KKMCreateOFDPacket done [12:35:43]NVStorageSaveData kkm_last_timestamp [12:35:43]File name is /storage/kkm_last_timestamp [12:35:43]Write 4 bytes [12:35:43]NVStorageSaveData done [12:35:43]ExternCall_PrintAddStr [12:35:43]wPrintStart [12:35:43]Write to MH i2c: 01 00 00 2B 7B A6 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: 01 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: 01 07 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: 01 07 00 2B 7B 00 80 00 00 00 FF 0F 3B [12:35:43]RasterBufferAndPrint [12:35:43]line Счет N : (1)196393 [12:35:43]line ИНН: 02508201610067 [12:35:43]line Контрольно-Кассовый Чек [12:35:43]line ПРОДАЖА [12:35:43]line ТРК (МРК, ГНК) : 12 [12:35:43]line Товар: 2710124130 [12:35:43]line Аи-92-К-5 [12:35:43]line 10.000 * 62.90 [12:35:43]line = 629.00 [12:35:43]line НДС 12% НСП 1% [12:35:43]line > о реализуемом товаре [12:35:43]line ИТОГО: 629.00 [12:35:43]line НСП 1% : 5.57 [12:35:43]line НДС 12% : 66.80 [12:35:43]line Наличными: 0.00 [12:35:43]line Безнал.: 629.00 [12:35:43]line Место: АЗС № 6 "Партнер Нефть" [12:35:43]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:35:43]line СНО: Общий режим [12:35:43]line Чек 99 13.03.2024 12:35 [12:35:43]line Смена: 328 ФФД: 1.0 [12:35:43]line ЗНМ: 0300000009 [12:35:43]line РНМ: 0000000000090555 [12:35:43]line Версия ККМ: 001 [12:35:43]line Платежная система: Бакай Банк [12:35:43]line ФМ: 0000000000874811 [12:35:43]line ФД: 95404 [12:35:43]line ФПД: 182200784385772 [12:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T123552&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95404&fm=182200784385772&tin=02508201610067®Number=0000000000090555&sum=62900 [12:35:43]written 0, free lines is 4095 [12:35:43]OFD Sender: Processing packet 95404 [packets to send 30, broken 29] [12:35:43]ProducePacketName [12:35:43]name=ofd_packets/00095404 [12:35:43]OFD Sender: To server: pG, [12:35:43]CommunicateWithHost lk.salyk.kg:30040 [12:35:43]ConnectInit lk.salyk.kg [12:35:43]Write to MH i2c: 01 00 00 55 7B D0 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: 01 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: 01 07 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: 01 07 00 55 7B 00 80 00 00 00 5B 0D BF [12:35:43]RasterBufferAndPrint [12:35:43]line [12:35:43]line [12:35:43]line [12:35:43]line [12:35:43]line [12:35:43]written 0, free lines is 3425 [12:35:43]process_action close_receipt done [12:35:43]requested_data is exist [12:35:43]produce_requested_data [12:35:43]requested_item fm.sn is exist - process it [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 11 00 00 [12:35:43]Write to MH i2c: E2 08 00 5C 7B 80 11 00 00 00 00 00 00 51 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 17 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 17 00 5C 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A1 [12:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:35:43]wFMCommunicate OK [12:35:43]requested_item fd.num is exist - process it [12:35:43]SAM_PROTO_GetFieldsCounters [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 13 00 00 [12:35:43]Write to MH i2c: E2 08 00 5D 7B 80 13 00 00 00 00 00 00 54 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 62 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 62 00 5D 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AC 74 01 00 0E 04 04 00 48 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 04 [12:35:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AC 74 01 00 0E 04 04 00 48 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 [12:35:43]wFMCommunicate OK [12:35:43]SAM_PROTO_GetFieldsCounters done [12:35:43]requested_item shift.num is exist - process it [12:35:43]requested_item shift.opened is exist - process it [12:35:43]req_shift_opened [12:35:43]FM_GetShiftState [12:35:43]SAM_PROTO_GetShiftState [12:35:43]wFMCommunicate request_size=4 [12:35:43]MH_SAM_APDU [12:35:43]CAPDU: 80 13 01 00 [12:35:43]Write to MH i2c: E2 08 00 5E 7B 80 13 01 00 00 00 00 00 56 [12:35:43]Write i2c OK [12:35:43]MH_I2C_Read... [12:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:43]Read from MH i2c: E2 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 0E 00 [12:35:43]MH_I2C_Read... [12:35:43]Read from MH i2c: E2 0E 00 5E 7B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3B [12:35:43]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:35:43]wFMCommunicate OK [12:35:43]SAM_PROTO_GetShiftState done [12:35:43]FM_GetShiftState done [12:35:43]req_shift_opened done [12:35:43]requested_item shift.open_date is exist - process it [12:35:43]req_shift_open_date [12:35:43]req_shift_open_date done [12:35:43]produce_requested_data done [12:35:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95404,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:35:43]process_action_free close_receipt [12:35:43]json_value_free [12:35:43]json_value_free done [12:35:43]process_json_proto returns [12:35:43]Send response to host [12:35:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95404,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:35:43]free response buf [12:35:43]execute_script done [12:35:43]execute_script returns [12:35:43]free content buf [12:35:43]Sock 8.Close socket [12:35:43]Sock 8.Thread stoped [12:35:44]Connected sock=10 [12:35:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A9 36 07 01 00 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 A8 9D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 74 01 00 35 04 06 00 A5 B5 ED 07 F6 EC 06 D7 30 6E C1 BF 7B 73 [12:35:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E3 8C 47 00 1E 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AC 74 01 00 F4 03 04 00 FB 48 F1 65 B6 04 01 00 00 0F AE 5C 65 D0 46 A8 BF [12:35:44]CommunicateWithHost err = 0 [12:35:44]CheckOFDResponse [12:35:44]1017 (14) - 77093643461234 [12:35:44]1041 (16) - 0000000000874811 [12:35:44]1040 (4) - 95404 [12:35:44]1012 (4) - 13.03.2024 06:34 [12:35:44]1206 (1) - 0 [12:35:44]OFD Sender: Remove packet 95404 [12:35:44]ProducePacketName [12:35:44]name=ofd_packets/00095404 [12:35:44]NVStorageDeleteData [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:51]accept exits with 9 [12:36:51]New connection [12:36:51]New thread 3066813796 created [12:36:51]Thread 3066957156 joined [12:36:51]Waiting for new connection... [12:36:51] Sock 9.Parse request [12:36:51]Sock 9.Check first char [12:36:51]Sock 9.First char is OK [12:36:51]request: POST /json_proto HTTP/1.0 [12:36:51]Method: POST [12:36:51]URL: /json_proto [12:36:51]Method is POST - this is cgi request [12:36:51]url: /json_proto [12:36:51]query_string will be loaded in cgi processing [12:36:51]execute_cgi json_proto POST (null) [12:36:51]execute_cgi path=json_proto method=POST [12:36:51]POST find Content-Length [12:36:51]Host: 172.17.62.67:8080 [12:36:51]Content-Length: 682 [12:36:51]Content-Type: application/json [12:36:51] [12:36:51]POST finish read [12:36:51]Found Content-Length = 682 [12:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196394", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:36:51]execute_script... [12: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 : (1)196394", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:36:51]POST & json_proto [12:36:51]process_json_proto [12:36:51]json parsed OK: [12:36:51]protocol is kg_v1.0 [12:36:51]action value=close_receipt [12:36:51]process_action close_receipt [12:36:51]cmd_close_receipt [12:36:51]MH_GetDate [12:36:51]Write to MH i2c: F0 00 00 5F 7B C9 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: F0 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: F0 05 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: F0 05 00 5F 7B 00 EE 9D F1 65 AF [12:36:51]GetLastDocTimeStamp 1710333352 [12:36:51]current date 1710333422 [12:36:51]FM_GetShiftState [12:36:51]SAM_PROTO_GetShiftState [12:36:51]wFMCommunicate request_size=4 [12:36:51]MH_SAM_APDU [12:36:51]CAPDU: 80 13 01 00 [12:36:51]Write to MH i2c: E2 08 00 60 7B 80 13 01 00 00 00 00 00 58 [12:36:51]Write i2c OK [12:36:51]MH_I2C_Read... [12:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:51]Read from MH i2c: E2 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 0E 00 [12:36:51]MH_I2C_Read... [12:36:51]Read from MH i2c: E2 0E 00 60 7B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3D [12:36:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:36:51]wFMCommunicate OK [12:36:51]SAM_PROTO_GetShiftState done [12:36:51]FM_GetShiftState done [12:36:51]opened in 1710288279 [12:36:51]opened+sec_in_day 1710374679 [12:36:51]quantity*price = 100011 [12:36:51]sum+1 = 100012 [12:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 100 13.03.2024 12:37 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95405 ФПД: 241263622381129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T123702&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95405&fm=241263622381129&tin=02508201610067®Number=0000000000090555&sum=100000 [12:36:53]StoreToDocumentArchive [12:36:53]shift 328 fd 95405 [12:36:53]save to /storage/0328/doc_00095405 [12:36:53]save last doc name /storage/0328/doc_00095405 to /storage/kkm_last_doc_name [12:36:53]save OK [12:36:53]Clear old archive folders... [12:36:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:53]tlvbuf is 01A70FC0 [12:36:53]SAM_PROTO_ClearQueue [12:36:53]wFMCommunicate request_size=4 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 09 00 00 [12:36:53]Write to MH i2c: E2 08 00 6D 7B 80 09 00 00 00 00 00 00 5A [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:53]Read from MH i2c: E2 03 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 03 00 6D 7B 00 90 00 5C [12:36:53]RAPDU: 90 00 [12:36:53]wFMCommunicate OK [12:36:53]SAM_PROTO_ClearQueue done [12:36:53]KKMCreateOFDPacket [12:36:53]OFDProtocolAddRootSTLVToBuf [12:36:53]FM_MakeSignedData [12:36:53]FM_MakeSignedData [12:36:53]SAM_PROTO_SignData [12:36:53]wFMCommunicate request_size=4 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 0D 01 02 [12:36:53]Write to MH i2c: E2 08 00 6E 7B 80 0D 01 02 00 00 00 00 62 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:53]Read from MH i2c: E2 03 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 03 00 6E 7B 00 90 00 5D [12:36:53]RAPDU: 90 00 [12:36:53]wFMCommunicate OK [12:36:53]wFMCommunicate request_size=255 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 EE 9D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 74 01 00 35 04 06 00 DB [12:36:53]Write to MH i2c: E2 02 01 6F 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 EE 9D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 74 01 00 35 04 06 00 DB 00 00 95 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 03 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 03 00 6F 7B 00 90 00 5E [12:36:53]RAPDU: 90 00 [12:36:53]wFMCommunicate OK [12:36:53]wFMCommunicate request_size=10 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 0D 02 02 05 6D 90 82 5E 49 [12:36:53]Write to MH i2c: E2 0D 00 70 7B 80 0D 02 02 05 00 6D 90 82 5E 49 00 00 95 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 03 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 03 00 70 7B 00 90 00 5F [12:36:53]RAPDU: 90 00 [12:36:53]wFMCommunicate OK [12:36:53]wFMCommunicate request_size=4 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 0D 03 02 [12:36:53]Write to MH i2c: E2 08 00 71 7B 80 0D 03 02 00 00 00 00 67 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 0B 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 0B 00 71 7B 00 EF 16 92 EB 09 FA 84 88 90 00 F9 [12:36:53]RAPDU: EF 16 92 EB 09 FA 84 88 90 00 [12:36:53]wFMCommunicate OK [12:36:53]SAM_PROTO_SignData done [12:36:53]FM_MakeSignedData done [12:36:53]CreateOFDProtocolMessage [12:36:53]wFMCommunicate request_size=4 [12:36:53]MH_SAM_APDU [12:36:53]CAPDU: 80 11 00 00 [12:36:53]Write to MH i2c: E2 08 00 72 7B 80 11 00 00 00 00 00 00 67 [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:53]Read from MH i2c: E2 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 17 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: E2 17 00 72 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B7 [12:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:36:53]wFMCommunicate OK [12:36:53]CreateOFDProtocolMessage done [12:36:53]OFDSenderStorePacket 95405 [12:36:53]StoreOFDPacket docnum=95405 [12:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DC 64 07 01 BB 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 EE 9D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 74 01 00 35 04 06 00 DB 6D 90 82 5E 49 EF 16 92 EB 09 FA 84 88 [12:36:53]CheckFolder [12:36:53]dirname=/storage/ofd_packets [12:36:53]CheckFolder done [12:36:53]ProducePacketName [12:36:53]name=ofd_packets/00095405 [12:36:53]NVStorageSaveData ofd_packets/00095405 [12:36:53]File name is /storage/ofd_packets/00095405 [12:36:53]Write 301 bytes [12:36:53]NVStorageSaveData done [12:36:53]OFDSenderStorePacket done [12:36:53]KKMCreateOFDPacket done [12:36:53]NVStorageSaveData kkm_last_timestamp [12:36:53]File name is /storage/kkm_last_timestamp [12:36:53]Write 4 bytes [12:36:53]NVStorageSaveData done [12:36:53]ExternCall_PrintAddStr [12:36:53]wPrintStart [12:36:53]Write to MH i2c: 01 00 00 73 7B EE [12:36:53]Write i2c OK [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: 01 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: 01 07 00 [12:36:53]MH_I2C_Read... [12:36:53]Read from MH i2c: 01 07 00 73 7B 00 80 00 00 00 FF 0F 83 [12:36:53]RasterBufferAndPrint [12:36:53]line Счет N : (1)196394 [12:36:53]line ИНН: 02508201610067 [12:36:53]line Контрольно-Кассовый Чек [12:36:53]line ПРОДАЖА [12:36:53]line ТРК (МРК, ГНК) : 32 [12:36:53]line Товар: 2710124130 [12:36:53]line Аи-92-К-5 [12:36:53]line 15.900 * 62.90 [12:36:53]line = 1000.11 [12:36:53]line НДС 12% НСП 1% [12:36:53]line > о реализуемом товаре [12:36:53]line ОКРУГЛЕНИЕ: -0.11 [12:36:53]line ИТОГО: 1000.00 [12:36:53]line Внесено: 1000.00 [12:36:53]line СДАЧА: 0.00 [12:36:53]line НСП 1% : 8.85 [12:36:53]line НДС 12% : 106.21 [12:36:53]line Наличными: 1000.00 [12:36:53]line Безнал.: 0.00 [12:36:53]line Место: АЗС № 6 "Партнер Нефть" [12:36:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:36:53]line СНО: Общий режим [12:36:53]line Чек 100 13.03.2024 12:37 [12:36:53]line Смена: 328 ФФД: 1.0 [12:36:53]line ЗНМ: 0300000009 [12:36:53]line РНМ: 0000000000090555 [12:36:53]line Версия ККМ: 001 [12:36:53]line ФМ: 0000000000874811 [12:36:53]line ФД: 95405 [12:36:53]line ФПД: 241263622381129 [12:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T123702&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95405&fm=241263622381129&tin=02508201610067®Number=0000000000090555&sum=100000 [12:36:53]written 0, free lines is 4095 [12:36:53]OFD Sender: Processing packet 95405 [packets to send 30, broken 29] [12:36:53]ProducePacketName [12:36:53]name=ofd_packets/00095405 [12:36:53]OFD Sender: To server: pG, [12:36:53]CommunicateWithHost lk.salyk.kg:30040 [12:36:53]ConnectInit lk.salyk.kg [12:36:54]Write to MH i2c: 01 00 00 9E 7B 19 [12:36:54]Write i2c OK [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: 01 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: 01 07 00 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: 01 07 00 9E 7B 00 80 00 00 00 4D 0D FA [12:36:54]RasterBufferAndPrint [12:36:54]line [12:36:54]line [12:36:54]line [12:36:54]line [12:36:54]line [12:36:54]written 0, free lines is 3411 [12:36:54]process_action close_receipt done [12:36:54]requested_data is exist [12:36:54]produce_requested_data [12:36:54]requested_item fm.sn is exist - process it [12:36:54]wFMCommunicate request_size=4 [12:36:54]MH_SAM_APDU [12:36:54]CAPDU: 80 11 00 00 [12:36:54]Write to MH i2c: E2 08 00 A5 7B 80 11 00 00 00 00 00 00 9A [12:36:54]Write i2c OK [12:36:54]MH_I2C_Read... [12:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:54]Read from MH i2c: E2 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: E2 17 00 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: E2 17 00 A5 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 EA [12:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:36:54]wFMCommunicate OK [12:36:54]requested_item fd.num is exist - process it [12:36:54]SAM_PROTO_GetFieldsCounters [12:36:54]wFMCommunicate request_size=4 [12:36:54]MH_SAM_APDU [12:36:54]CAPDU: 80 13 00 00 [12:36:54]Write to MH i2c: E2 08 00 A6 7B 80 13 00 00 00 00 00 00 9D [12:36:54]Write i2c OK [12:36:54]MH_I2C_Read... [12:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:54]Read from MH i2c: E2 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: E2 62 00 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: E2 62 00 A6 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AD 74 01 00 0E 04 04 00 48 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 51 [12:36:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AD 74 01 00 0E 04 04 00 48 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 [12:36:54]wFMCommunicate OK [12:36:54]SAM_PROTO_GetFieldsCounters done [12:36:54]requested_item shift.num is exist - process it [12:36:54]requested_item shift.opened is exist - process it [12:36:54]req_shift_opened [12:36:54]FM_GetShiftState [12:36:54]SAM_PROTO_GetShiftState [12:36:54]wFMCommunicate request_size=4 [12:36:54]MH_SAM_APDU [12:36:54]CAPDU: 80 13 01 00 [12:36:54]Write to MH i2c: E2 08 00 A7 7B 80 13 01 00 00 00 00 00 9F [12:36:54]Write i2c OK [12:36:54]MH_I2C_Read... [12:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:54]Read from MH i2c: E2 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: E2 0E 00 [12:36:54]MH_I2C_Read... [12:36:54]Read from MH i2c: E2 0E 00 A7 7B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 84 [12:36:54]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:36:54]wFMCommunicate OK [12:36:54]SAM_PROTO_GetShiftState done [12:36:54]FM_GetShiftState done [12:36:54]req_shift_opened done [12:36:54]requested_item shift.open_date is exist - process it [12:36:54]req_shift_open_date [12:36:54]req_shift_open_date done [12:36:54]produce_requested_data done [12:36:54]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95405,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:36:54]process_action_free close_receipt [12:36:54]json_value_free [12:36:54]json_value_free done [12:36:54]process_json_proto returns [12:36:54]Send response to host [12:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95405,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:36:54]free response buf [12:36:54]execute_script done [12:36:54]execute_script returns [12:36:54]free content buf [12:36:54]Sock 9.Close socket [12:36:54]Sock 9.Thread stoped [12:39:04]ConnectInit Can't connect to host [12:39:04]CommunicateWithHost connect error [12:39:04]CommunicateWithHost err = -1 [12:39:04]OFD Sender: Server communicate error [12:39:09]OFD Sender: Processing packet 95405 [packets to send 30, broken 29] [12:39:09]ProducePacketName [12:39:09]name=ofd_packets/00095405 [12:39:09]OFD Sender: To server: pG, [12:39:09]CommunicateWithHost lk.salyk.kg:30040 [12:39:09]ConnectInit lk.salyk.kg [12:39:09]Connected sock=9 [12:39:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 DC 64 07 01 BB 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 EE 9D F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 74 01 00 35 04 06 00 DB 6D 90 82 5E 49 EF 16 92 EB 09 FA 84 88 [12:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 15 E0 47 00 D5 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AD 74 01 00 F4 03 04 00 C9 49 F1 65 B6 04 01 00 00 1E F4 4D 3C C1 98 DD 9F [12:39:10]CommunicateWithHost err = 0 [12:39:10]CheckOFDResponse [12:39:10]1017 (14) - 77093643461234 [12:39:10]1041 (16) - 0000000000874811 [12:39:10]1040 (4) - 95405 [12:39:10]1012 (4) - 13.03.2024 06:38 [12:39:10]1206 (1) - 0 [12:39:10]OFD Sender: Remove packet 95405 [12:39:10]ProducePacketName [12:39:10]name=ofd_packets/00095405 [12:39:10]NVStorageDeleteData [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:02]accept exits with 8 [12:41:02]New connection [12:41:02]New thread 3066957156 created [12:41:02]Thread 3066813796 joined [12:41:02]Waiting for new connection... [12:41:02] Sock 8.Parse request [12:41:02]Sock 8.Check first char [12:41:02]Sock 8.First char is OK [12:41:02]request: POST /json_proto HTTP/1.0 [12:41:02]Method: POST [12:41:02]URL: /json_proto [12:41:02]Method is POST - this is cgi request [12:41:02]url: /json_proto [12:41:02]query_string will be loaded in cgi processing [12:41:02]execute_cgi json_proto POST (null) [12:41:02]execute_cgi path=json_proto method=POST [12:41:02]POST find Content-Length [12:41:02]Host: 172.17.62.67:8080 [12:41:02]Content-Length: 682 [12:41:02]Content-Type: application/json [12:41:02] [12:41:02]POST finish read [12:41:02]Found Content-Length = 682 [12:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:41:02]execute_script... [12:41: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)196395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "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:41:02]POST & json_proto [12:41:02]process_json_proto [12:41:02]json parsed OK: [12:41:02]protocol is kg_v1.0 [12:41:02]action value=close_receipt [12:41:02]process_action close_receipt [12:41:02]cmd_close_receipt [12:41:02]MH_GetDate [12:41:02]Write to MH i2c: F0 00 00 A8 7B 12 [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: F0 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: F0 05 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: F0 05 00 A8 7B 00 E9 9E F1 65 F4 [12:41:02]GetLastDocTimeStamp 1710333422 [12:41:02]current date 1710333673 [12:41:02]FM_GetShiftState [12:41:02]SAM_PROTO_GetShiftState [12:41:02]wFMCommunicate request_size=4 [12:41:02]MH_SAM_APDU [12:41:02]CAPDU: 80 13 01 00 [12:41:02]Write to MH i2c: E2 08 00 A9 7B 80 13 01 00 00 00 00 00 A1 [12:41:02]Write i2c OK [12:41:02]MH_I2C_Read... [12:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:02]Read from MH i2c: E2 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: E2 0E 00 [12:41:02]MH_I2C_Read... [12:41:02]Read from MH i2c: E2 0E 00 A9 7B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 86 [12:41:02]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:41:02]wFMCommunicate OK [12:41:02]SAM_PROTO_GetShiftState done [12:41:02]FM_GetShiftState done [12:41:02]opened in 1710288279 [12:41:02]opened+sec_in_day 1710374679 [12:41:02]quantity*price = 100010 [12:41:02]sum+1 = 100012 [12:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 101 13.03.2024 12:41 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95406 ФПД: 217711030094188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T124113&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95406&fm=217711030094188&tin=02508201610067®Number=0000000000090555&sum=100000 [12:41:03]StoreToDocumentArchive [12:41:03]shift 328 fd 95406 [12:41:03]save to /storage/0328/doc_00095406 [12:41:03]save last doc name /storage/0328/doc_00095406 to /storage/kkm_last_doc_name [12:41:03]save OK [12:41:03]Clear old archive folders... [12:41:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:03]tlvbuf is 01A8D800 [12:41:03]SAM_PROTO_ClearQueue [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 09 00 00 [12:41:03]Write to MH i2c: E2 08 00 B6 7B 80 09 00 00 00 00 00 00 A3 [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:03]Read from MH i2c: E2 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 03 00 [12:41:03]MH_I2C_Read... [12:41:03]Read from MH i2c: E2 03 00 B6 7B 00 90 00 A5 [12:41:03]RAPDU: 90 00 [12:41:03]wFMCommunicate OK [12:41:03]SAM_PROTO_ClearQueue done [12:41:03]KKMCreateOFDPacket [12:41:03]OFDProtocolAddRootSTLVToBuf [12:41:03]FM_MakeSignedData [12:41:03]FM_MakeSignedData [12:41:03]SAM_PROTO_SignData [12:41:03]wFMCommunicate request_size=4 [12:41:03]MH_SAM_APDU [12:41:03]CAPDU: 80 0D 01 02 [12:41:03]Write to MH i2c: E2 08 00 B7 7B 80 0D 01 02 00 00 00 00 AB [12:41:03]Write i2c OK [12:41:03]MH_I2C_Read... [12:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:04]Read from MH i2c: E2 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 B7 7B 00 90 00 A6 [12:41:04]RAPDU: 90 00 [12:41:04]wFMCommunicate OK [12:41:04]wFMCommunicate request_size=255 [12:41:04]MH_SAM_APDU [12:41:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E9 9E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 74 01 00 35 04 06 00 C6 [12:41:04]Write to MH i2c: E2 02 01 B8 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E9 9E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 74 01 00 35 04 06 00 C6 00 00 76 [12:41:04]Write i2c OK [12:41:04]MH_I2C_Read... [12:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:04]Read from MH i2c: E2 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 B8 7B 00 90 00 A7 [12:41:04]RAPDU: 90 00 [12:41:04]wFMCommunicate OK [12:41:04]wFMCommunicate request_size=10 [12:41:04]MH_SAM_APDU [12:41:04]CAPDU: 80 0D 02 02 05 01 CC 9C C9 6C [12:41:04]Write to MH i2c: E2 0D 00 B9 7B 80 0D 02 02 05 00 01 CC 9C C9 6C 00 00 56 [12:41:04]Write i2c OK [12:41:04]MH_I2C_Read... [12:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:04]Read from MH i2c: E2 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 03 00 B9 7B 00 90 00 A8 [12:41:04]RAPDU: 90 00 [12:41:04]wFMCommunicate OK [12:41:04]wFMCommunicate request_size=4 [12:41:04]MH_SAM_APDU [12:41:04]CAPDU: 80 0D 03 02 [12:41:04]Write to MH i2c: E2 08 00 BA 7B 80 0D 03 02 00 00 00 00 B0 [12:41:04]Write i2c OK [12:41:04]MH_I2C_Read... [12:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:04]Read from MH i2c: E2 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 0B 00 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 0B 00 BA 7B 00 FF 46 FB 2B 61 FD 6E EE 90 00 D6 [12:41:04]RAPDU: FF 46 FB 2B 61 FD 6E EE 90 00 [12:41:04]wFMCommunicate OK [12:41:04]SAM_PROTO_SignData done [12:41:04]FM_MakeSignedData done [12:41:04]CreateOFDProtocolMessage [12:41:04]wFMCommunicate request_size=4 [12:41:04]MH_SAM_APDU [12:41:04]CAPDU: 80 11 00 00 [12:41:04]Write to MH i2c: E2 08 00 BB 7B 80 11 00 00 00 00 00 00 B0 [12:41:04]Write i2c OK [12:41:04]MH_I2C_Read... [12:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:04]Read from MH i2c: E2 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 17 00 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: E2 17 00 BB 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 00 [12:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:41:04]wFMCommunicate OK [12:41:04]CreateOFDProtocolMessage done [12:41:04]OFDSenderStorePacket 95406 [12:41:04]StoreOFDPacket docnum=95406 [12:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5D B9 07 01 B6 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E9 9E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 74 01 00 35 04 06 00 C6 01 CC 9C C9 6C FF 46 FB 2B 61 FD 6E EE [12:41:04]CheckFolder [12:41:04]dirname=/storage/ofd_packets [12:41:04]CheckFolder done [12:41:04]ProducePacketName [12:41:04]name=ofd_packets/00095406 [12:41:04]NVStorageSaveData ofd_packets/00095406 [12:41:04]File name is /storage/ofd_packets/00095406 [12:41:04]Write 301 bytes [12:41:04]NVStorageSaveData done [12:41:04]OFDSenderStorePacket done [12:41:04]KKMCreateOFDPacket done [12:41:04]NVStorageSaveData kkm_last_timestamp [12:41:04]File name is /storage/kkm_last_timestamp [12:41:04]Write 4 bytes [12:41:04]NVStorageSaveData done [12:41:04]ExternCall_PrintAddStr [12:41:04]wPrintStart [12:41:04]Write to MH i2c: 01 00 00 BC 7B 37 [12:41:04]Write i2c OK [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: 01 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: 01 07 00 [12:41:04]MH_I2C_Read... [12:41:04]Read from MH i2c: 01 07 00 BC 7B 00 80 00 00 00 FF 0F CC [12:41:04]RasterBufferAndPrint [12:41:04]line Счет N : (1)196395 [12:41:04]line ИНН: 02508201610067 [12:41:04]line Контрольно-Кассовый Чек [12:41:04]line ПРОДАЖА [12:41:04]line ТРК (МРК, ГНК) : 11 [12:41:04]line Товар: 2710124500 [12:41:04]line Аи-95-К-5 [12:41:04]line 14.390 * 69.50 [12:41:04]line = 1000.11 [12:41:04]line НДС 12% НСП 1% [12:41:04]line > о реализуемом товаре [12:41:04]line ОКРУГЛЕНИЕ: -0.11 [12:41:04]line ИТОГО: 1000.00 [12:41:04]line Внесено: 1000.00 [12:41:04]line СДАЧА: 0.00 [12:41:04]line НСП 1% : 8.85 [12:41:04]line НДС 12% : 106.21 [12:41:04]line Наличными: 1000.00 [12:41:04]line Безнал.: 0.00 [12:41:04]line Место: АЗС № 6 "Партнер Нефть" [12:41:04]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:41:04]line СНО: Общий режим [12:41:04]line Чек 101 13.03.2024 12:41 [12:41:04]line Смена: 328 ФФД: 1.0 [12:41:04]line ЗНМ: 0300000009 [12:41:04]line РНМ: 0000000000090555 [12:41:04]line Версия ККМ: 001 [12:41:04]line ФМ: 0000000000874811 [12:41:04]line ФД: 95406 [12:41:04]line ФПД: 217711030094188 [12:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T124113&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95406&fm=217711030094188&tin=02508201610067®Number=0000000000090555&sum=100000 [12:41:04]OFD Sender: Processing packet 95406 [packets to send 30, broken 29] [12:41:04]ProducePacketName [12:41:04]name=ofd_packets/00095406 [12:41:04]OFD Sender: To server: pG, [12:41:04]CommunicateWithHost lk.salyk.kg:30040 [12:41:04]ConnectInit lk.salyk.kg [12:41:04]written 0, free lines is 4095 [12:41:04]Connected sock=11 [12:41:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5D B9 07 01 B6 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 E9 9E F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 74 01 00 35 04 06 00 C6 01 CC 9C C9 6C FF 46 FB 2B 61 FD 6E EE [12:41:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 37 58 47 00 80 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AE 74 01 00 F4 03 04 00 3C 4A F1 65 B6 04 01 00 00 60 D1 5E 9C 40 52 4B C0 [12:41:05]CommunicateWithHost err = 0 [12:41:05]CheckOFDResponse [12:41:05]1017 (14) - 77093643461234 [12:41:05]1041 (16) - 0000000000874811 [12:41:05]1040 (4) - 95406 [12:41:05]1012 (4) - 13.03.2024 06:39 [12:41:05]1206 (1) - 0 [12:41:05]OFD Sender: Remove packet 95406 [12:41:05]ProducePacketName [12:41:05]name=ofd_packets/00095406 [12:41:05]NVStorageDeleteData [12:41:05]Write to MH i2c: 01 00 00 E7 7B 62 [12:41:05]Write i2c OK [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: 01 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: 01 07 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: 01 07 00 E7 7B 00 80 00 00 00 4E 0D 44 [12:41:05]RasterBufferAndPrint [12:41:05]line [12:41:05]line [12:41:05]line [12:41:05]line [12:41:05]line [12:41:05]written 0, free lines is 3410 [12:41:05]process_action close_receipt done [12:41:05]requested_data is exist [12:41:05]produce_requested_data [12:41:05]requested_item fm.sn is exist - process it [12:41:05]wFMCommunicate request_size=4 [12:41:05]MH_SAM_APDU [12:41:05]CAPDU: 80 11 00 00 [12:41:05]Write to MH i2c: E2 08 00 EE 7B 80 11 00 00 00 00 00 00 E3 [12:41:05]Write i2c OK [12:41:05]MH_I2C_Read... [12:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:05]Read from MH i2c: E2 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 17 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 17 00 EE 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 33 [12:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:41:05]wFMCommunicate OK [12:41:05]requested_item fd.num is exist - process it [12:41:05]SAM_PROTO_GetFieldsCounters [12:41:05]wFMCommunicate request_size=4 [12:41:05]MH_SAM_APDU [12:41:05]CAPDU: 80 13 00 00 [12:41:05]Write to MH i2c: E2 08 00 EF 7B 80 13 00 00 00 00 00 00 E6 [12:41:05]Write i2c OK [12:41:05]MH_I2C_Read... [12:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:05]Read from MH i2c: E2 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 62 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 62 00 EF 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AE 74 01 00 0E 04 04 00 48 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 9E [12:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AE 74 01 00 0E 04 04 00 48 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 [12:41:05]wFMCommunicate OK [12:41:05]SAM_PROTO_GetFieldsCounters done [12:41:05]requested_item shift.num is exist - process it [12:41:05]requested_item shift.opened is exist - process it [12:41:05]req_shift_opened [12:41:05]FM_GetShiftState [12:41:05]SAM_PROTO_GetShiftState [12:41:05]wFMCommunicate request_size=4 [12:41:05]MH_SAM_APDU [12:41:05]CAPDU: 80 13 01 00 [12:41:05]Write to MH i2c: E2 08 00 F0 7B 80 13 01 00 00 00 00 00 E8 [12:41:05]Write i2c OK [12:41:05]MH_I2C_Read... [12:41:05]OFD Sender: No OFD packet to send [12:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:05]Read from MH i2c: E2 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 0E 00 [12:41:05]MH_I2C_Read... [12:41:05]Read from MH i2c: E2 0E 00 F0 7B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CD [12:41:05]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:41:05]wFMCommunicate OK [12:41:05]SAM_PROTO_GetShiftState done [12:41:05]FM_GetShiftState done [12:41:05]req_shift_opened done [12:41:05]requested_item shift.open_date is exist - process it [12:41:05]req_shift_open_date [12:41:05]req_shift_open_date done [12:41:05]produce_requested_data done [12:41:05]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95406,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:41:05]process_action_free close_receipt [12:41:05]json_value_free [12:41:05]json_value_free done [12:41:05]process_json_proto returns [12:41:05]Send response to host [12:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95406,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:41:05]free response buf [12:41:05]execute_script done [12:41:05]execute_script returns [12:41:05]free content buf [12:41:05]Sock 8.Close socket [12:41:05]Sock 8.Thread stoped [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:03]accept exits with 9 [12:43:03]New connection [12:43:03]New thread 3066813796 created [12:43:03]Thread 3066957156 joined [12:43:03]Waiting for new connection... [12:43:03] Sock 9.Parse request [12:43:03]Sock 9.Check first char [12:43:03]Sock 9.First char is OK [12:43:03]request: POST /json_proto HTTP/1.0 [12:43:03]Method: POST [12:43:03]URL: /json_proto [12:43:03]Method is POST - this is cgi request [12:43:03]url: /json_proto [12:43:03]query_string will be loaded in cgi processing [12:43:03]execute_cgi json_proto POST (null) [12:43:03]execute_cgi path=json_proto method=POST [12:43:03]POST find Content-Length [12:43:03]Host: 172.17.62.67:8080 [12:43:03]Content-Length: 677 [12:43:03]Content-Type: application/json [12:43:03] [12:43:03]POST finish read [12:43:03]Found Content-Length = 677 [12:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196396", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:03]execute_script... [12:43: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)196396", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:03]POST & json_proto [12:43:03]process_json_proto [12:43:03]json parsed OK: [12:43:03]protocol is kg_v1.0 [12:43:03]action value=close_receipt [12:43:03]process_action close_receipt [12:43:03]cmd_close_receipt [12:43:03]MH_GetDate [12:43:03]Write to MH i2c: F0 00 00 F1 7B 5B [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: F0 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: F0 05 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: F0 05 00 F1 7B 00 62 9F F1 65 B7 [12:43:03]GetLastDocTimeStamp 1710333673 [12:43:03]current date 1710333794 [12:43:03]FM_GetShiftState [12:43:03]SAM_PROTO_GetShiftState [12:43:03]wFMCommunicate request_size=4 [12:43:03]MH_SAM_APDU [12:43:03]CAPDU: 80 13 01 00 [12:43:03]Write to MH i2c: E2 08 00 F2 7B 80 13 01 00 00 00 00 00 EA [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:03]Read from MH i2c: E2 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 0E 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 0E 00 F2 7B 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 CF [12:43:03]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:43:03]wFMCommunicate OK [12:43:03]SAM_PROTO_GetShiftState done [12:43:03]FM_GetShiftState done [12:43:03]opened in 1710288279 [12:43:03]opened+sec_in_day 1710374679 [12:43:03]quantity*price = 50005 [12:43:03]sum+1 = 50007 [12:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 102 13.03.2024 12:43 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95407 ФПД: 183785729312962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T124314&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95407&fm=183785729312962&tin=02508201610067®Number=0000000000090555&sum=50000 [12:43:05]StoreToDocumentArchive [12:43:05]shift 328 fd 95407 [12:43:05]save to /storage/0328/doc_00095407 [12:43:05]save last doc name /storage/0328/doc_00095407 to /storage/kkm_last_doc_name [12:43:05]save OK [12:43:05]Clear old archive folders... [12:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:05]tlvbuf is 01A34810 [12:43:05]SAM_PROTO_ClearQueue [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 09 00 00 [12:43:05]Write to MH i2c: E2 08 00 FF 7B 80 09 00 00 00 00 00 00 EC [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 FF 7B 00 90 00 EE [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]SAM_PROTO_ClearQueue done [12:43:05]KKMCreateOFDPacket [12:43:05]OFDProtocolAddRootSTLVToBuf [12:43:05]FM_MakeSignedData [12:43:05]FM_MakeSignedData [12:43:05]SAM_PROTO_SignData [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 01 02 [12:43:05]Write to MH i2c: E2 08 00 00 7C 80 0D 01 02 00 00 00 00 F5 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 00 7C 00 90 00 F0 [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=255 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 66 00 00 00 F4 03 04 00 62 9F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 74 01 00 35 04 06 00 A7 [12:43:05]Write to MH i2c: E2 02 01 01 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 66 00 00 00 F4 03 04 00 62 9F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 74 01 00 35 04 06 00 A7 00 00 6F [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 01 7C 00 90 00 F1 [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=10 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 02 02 05 26 F3 1C 48 C2 [12:43:05]Write to MH i2c: E2 0D 00 02 7C 80 0D 02 02 05 00 26 F3 1C 48 C2 00 00 41 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 02 7C 00 90 00 F2 [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 03 02 [12:43:05]Write to MH i2c: E2 08 00 03 7C 80 0D 03 02 00 00 00 00 FA [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 0B 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 0B 00 03 7C 00 C5 8B 4A 7B 57 42 09 4C 90 00 FE [12:43:05]RAPDU: C5 8B 4A 7B 57 42 09 4C 90 00 [12:43:05]wFMCommunicate OK [12:43:05]SAM_PROTO_SignData done [12:43:05]FM_MakeSignedData done [12:43:05]CreateOFDProtocolMessage [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 11 00 00 [12:43:05]Write to MH i2c: E2 08 00 04 7C 80 11 00 00 00 00 00 00 FA [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 17 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 17 00 04 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4A [12:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:43:05]wFMCommunicate OK [12:43:05]CreateOFDProtocolMessage done [12:43:05]OFDSenderStorePacket 95407 [12:43:05]StoreOFDPacket docnum=95407 [12:43:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 98 DA 07 01 B6 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 66 00 00 00 F4 03 04 00 62 9F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 74 01 00 35 04 06 00 A7 26 F3 1C 48 C2 C5 8B 4A 7B 57 42 09 4C [12:43:05]CheckFolder [12:43:05]dirname=/storage/ofd_packets [12:43:05]CheckFolder done [12:43:05]ProducePacketName [12:43:05]name=ofd_packets/00095407 [12:43:05]NVStorageSaveData ofd_packets/00095407 [12:43:05]File name is /storage/ofd_packets/00095407 [12:43:05]Write 301 bytes [12:43:05]NVStorageSaveData done [12:43:05]OFDSenderStorePacket done [12:43:05]KKMCreateOFDPacket done [12:43:05]NVStorageSaveData kkm_last_timestamp [12:43:05]File name is /storage/kkm_last_timestamp [12:43:05]Write 4 bytes [12:43:05]NVStorageSaveData done [12:43:05]ExternCall_PrintAddStr [12:43:05]wPrintStart [12:43:05]Write to MH i2c: 01 00 00 05 7C 81 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 07 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: 01 07 00 05 7C 00 80 00 00 00 FF 0F 16 [12:43:05]RasterBufferAndPrint [12:43:05]line Счет N : (1)196396 [12:43:05]line ИНН: 02508201610067 [12:43:05]line Контрольно-Кассовый Чек [12:43:05]line ПРОДАЖА [12:43:05]line ТРК (МРК, ГНК) : 22 [12:43:05]line Товар: 2710124130 [12:43:05]line Аи-92-К-5 [12:43:05]line 7.950 * 62.90 [12:43:05]line = 500.06 [12:43:05]line НДС 12% НСП 1% [12:43:05]line > о реализуемом товаре [12:43:05]line ОКРУГЛЕНИЕ: -0.06 [12:43:05]line ИТОГО: 500.00 [12:43:05]line Внесено: 500.00 [12:43:05]line СДАЧА: 0.00 [12:43:05]line НСП 1% : 4.42 [12:43:05]line НДС 12% : 53.10 [12:43:05]line Наличными: 500.00 [12:43:05]line Безнал.: 0.00 [12:43:05]line Место: АЗС № 6 "Партнер Нефть" [12:43:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:43:05]line СНО: Общий режим [12:43:05]line Чек 102 13.03.2024 12:43 [12:43:05]line Смена: 328 ФФД: 1.0 [12:43:05]line ЗНМ: 0300000009 [12:43:05]line РНМ: 0000000000090555 [12:43:05]line Версия ККМ: 001 [12:43:05]line ФМ: 0000000000874811 [12:43:05]line ФД: 95407 [12:43:05]line ФПД: 183785729312962 [12:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T124314&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95407&fm=183785729312962&tin=02508201610067®Number=0000000000090555&sum=50000 [12:43:05]OFD Sender: Processing packet 95407 [packets to send 30, broken 29] [12:43:05]ProducePacketName [12:43:05]name=ofd_packets/00095407 [12:43:05]OFD Sender: To server: pG, [12:43:05]CommunicateWithHost lk.salyk.kg:30040 [12:43:05]ConnectInit lk.salyk.kg [12:43:05]written 0, free lines is 4095 [12:43:06]Connected sock=10 [12:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 98 DA 07 01 B6 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 66 00 00 00 F4 03 04 00 62 9F F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 74 01 00 35 04 06 00 A7 26 F3 1C 48 C2 C5 8B 4A 7B 57 42 09 4C [12:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E8 C5 47 00 56 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 AF 74 01 00 F4 03 04 00 B5 4A F1 65 B6 04 01 00 00 6A 63 8D E3 B6 C6 79 0E [12:43:06]CommunicateWithHost err = 0 [12:43:06]CheckOFDResponse [12:43:06]1017 (14) - 77093643461234 [12:43:06]1041 (16) - 0000000000874811 [12:43:06]1040 (4) - 95407 [12:43:06]1012 (4) - 13.03.2024 06:41 [12:43:06]1206 (1) - 0 [12:43:06]OFD Sender: Remove packet 95407 [12:43:06]ProducePacketName [12:43:06]name=ofd_packets/00095407 [12:43:06]NVStorageDeleteData [12:43:06]Write to MH i2c: 01 00 00 30 7C AC [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 30 7C 00 80 00 00 00 4B 0D 8B [12:43:06]RasterBufferAndPrint [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]written 0, free lines is 3407 [12:43:06]process_action close_receipt done [12:43:06]requested_data is exist [12:43:06]produce_requested_data [12:43:06]requested_item fm.sn is exist - process it [12:43:06]wFMCommunicate request_size=4 [12:43:06]MH_SAM_APDU [12:43:06]CAPDU: 80 11 00 00 [12:43:06]Write to MH i2c: E2 08 00 37 7C 80 11 00 00 00 00 00 00 2D [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:06]Read from MH i2c: E2 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 17 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 17 00 37 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 7D [12:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:43:06]wFMCommunicate OK [12:43:06]requested_item fd.num is exist - process it [12:43:06]SAM_PROTO_GetFieldsCounters [12:43:06]wFMCommunicate request_size=4 [12:43:06]MH_SAM_APDU [12:43:06]CAPDU: 80 13 00 00 [12:43:06]Write to MH i2c: E2 08 00 38 7C 80 13 00 00 00 00 00 00 30 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:06]Read from MH i2c: E2 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 62 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 62 00 38 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AF 74 01 00 0E 04 04 00 48 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 EC [12:43: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 AF 74 01 00 0E 04 04 00 48 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 [12:43:06]wFMCommunicate OK [12:43:06]SAM_PROTO_GetFieldsCounters done [12:43:06]requested_item shift.num is exist - process it [12:43:06]requested_item shift.opened is exist - process it [12:43:06]req_shift_opened [12:43:06]FM_GetShiftState [12:43:06]SAM_PROTO_GetShiftState [12:43:06]wFMCommunicate request_size=4 [12:43:06]MH_SAM_APDU [12:43:06]CAPDU: 80 13 01 00 [12:43:06]Write to MH i2c: E2 08 00 39 7C 80 13 01 00 00 00 00 00 32 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:06]Read from MH i2c: E2 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 0E 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 0E 00 39 7C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 17 [12:43:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:43:06]wFMCommunicate OK [12:43:06]SAM_PROTO_GetShiftState done [12:43:06]FM_GetShiftState done [12:43:06]req_shift_opened done [12:43:06]requested_item shift.open_date is exist - process it [12:43:06]req_shift_open_date [12:43:06]req_shift_open_date done [12:43:06]produce_requested_data done [12:43:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95407,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:43:06]process_action_free close_receipt [12:43:06]json_value_free [12:43:06]json_value_free done [12:43:06]process_json_proto returns [12:43:06]Send response to host [12:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95407,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:43:06]free response buf [12:43:06]execute_script done [12:43:06]execute_script returns [12:43:06]free content buf [12:43:06]Sock 9.Close socket [12:43:06]Sock 9.Thread stoped [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:25]accept exits with 8 [12:49:25]New connection [12:49:25]New thread 3066957156 created [12:49:25]Thread 3066813796 joined [12:49:25]Waiting for new connection... [12:49:25] Sock 8.Parse request [12:49:25]Sock 8.Check first char [12:49:25]Sock 8.First char is OK [12:49:25]request: POST /json_proto HTTP/1.0 [12:49:25]Method: POST [12:49:25]URL: /json_proto [12:49:25]Method is POST - this is cgi request [12:49:25]url: /json_proto [12:49:25]query_string will be loaded in cgi processing [12:49:25]execute_cgi json_proto POST (null) [12:49:25]execute_cgi path=json_proto method=POST [12:49:25]POST find Content-Length [12:49:25]Host: 172.17.62.67:8080 [12:49:25]Content-Length: 677 [12:49:25]Content-Type: application/json [12:49:25] [12:49:25]POST finish read [12:49:25]Found Content-Length = 677 [12:49:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196397", "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" : 62.90, "quantity" : 5.000, "sum" : 314.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 314.00, "payments": [ { "type": 0, "sum" : 314.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:25]execute_script... [12:49: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)196397", "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" : 62.90, "quantity" : 5.000, "sum" : 314.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 314.00, "payments": [ { "type": 0, "sum" : 314.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:25]POST & json_proto [12:49:25]process_json_proto [12:49:25]json parsed OK: [12:49:25]protocol is kg_v1.0 [12:49:25]action value=close_receipt [12:49:25]process_action close_receipt [12:49:25]cmd_close_receipt [12:49:25]MH_GetDate [12:49:25]Write to MH i2c: F0 00 00 3A 7C A5 [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: F0 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: F0 05 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: F0 05 00 3A 7C 00 E0 A0 F1 65 80 [12:49:25]GetLastDocTimeStamp 1710333794 [12:49:25]current date 1710334176 [12:49:25]FM_GetShiftState [12:49:25]SAM_PROTO_GetShiftState [12:49:25]wFMCommunicate request_size=4 [12:49:25]MH_SAM_APDU [12:49:25]CAPDU: 80 13 01 00 [12:49:25]Write to MH i2c: E2 08 00 3B 7C 80 13 01 00 00 00 00 00 34 [12:49:25]Write i2c OK [12:49:25]MH_I2C_Read... [12:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:25]Read from MH i2c: E2 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 0E 00 [12:49:25]MH_I2C_Read... [12:49:25]Read from MH i2c: E2 0E 00 3B 7C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 19 [12:49:25]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:49:25]wFMCommunicate OK [12:49:25]SAM_PROTO_GetShiftState done [12:49:25]FM_GetShiftState done [12:49:25]opened in 1710288279 [12:49:25]opened+sec_in_day 1710374679 [12:49:25]quantity*price = 31450 [12:49:25]sum+1 = 31451 [12:49:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 314.00 Внесено: 350.00 СДАЧА: 36.00 НСП 1% : 2.78 НДС 12% : 33.40 Наличными: 314.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 103 13.03.2024 12:49 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95408 ФПД: 258471232697846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T124936&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95408&fm=258471232697846&tin=02508201610067®Number=0000000000090555&sum=31400 [12:49:27]StoreToDocumentArchive [12:49:27]shift 328 fd 95408 [12:49:27]save to /storage/0328/doc_00095408 [12:49:27]save last doc name /storage/0328/doc_00095408 to /storage/kkm_last_doc_name [12:49:27]save OK [12:49:27]Clear old archive folders... [12:49:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:27]tlvbuf is 01C1D7F0 [12:49:27]SAM_PROTO_ClearQueue [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 09 00 00 [12:49:27]Write to MH i2c: E2 08 00 48 7C 80 09 00 00 00 00 00 00 36 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 48 7C 00 90 00 38 [12:49:27]RAPDU: 90 00 [12:49:27]wFMCommunicate OK [12:49:27]SAM_PROTO_ClearQueue done [12:49:27]KKMCreateOFDPacket [12:49:27]OFDProtocolAddRootSTLVToBuf [12:49:27]FM_MakeSignedData [12:49:27]FM_MakeSignedData [12:49:27]SAM_PROTO_SignData [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 0D 01 02 [12:49:27]Write to MH i2c: E2 08 00 49 7C 80 0D 01 02 00 00 00 00 3E [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]OFD Sender: No OFD packet to send [12:49:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 49 7C 00 90 00 39 [12:49:27]RAPDU: 90 00 [12:49:27]wFMCommunicate OK [12:49:27]wFMCommunicate request_size=255 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 A8 7A 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 E0 A0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 74 01 00 35 04 06 00 EB [12:49:27]Write to MH i2c: E2 02 01 4A 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 A8 7A 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 E0 A0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 74 01 00 35 04 06 00 EB 00 00 E7 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 4A 7C 00 90 00 3A [12:49:27]RAPDU: 90 00 [12:49:27]wFMCommunicate OK [12:49:27]wFMCommunicate request_size=10 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 0D 02 02 05 14 06 02 75 F6 [12:49:27]Write to MH i2c: E2 0D 00 4B 7C 80 0D 02 02 05 00 14 06 02 75 F6 00 00 D2 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 03 00 4B 7C 00 90 00 3B [12:49:27]RAPDU: 90 00 [12:49:27]wFMCommunicate OK [12:49:27]wFMCommunicate request_size=4 [12:49:27]MH_SAM_APDU [12:49:27]CAPDU: 80 0D 03 02 [12:49:27]Write to MH i2c: E2 08 00 4C 7C 80 0D 03 02 00 00 00 00 43 [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:27]Read from MH i2c: E2 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 0B 00 [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: E2 0B 00 4C 7C 00 9C 96 4A 5E 2C 98 ED E9 90 00 B8 [12:49:27]RAPDU: 9C 96 4A 5E 2C 98 ED E9 90 00 [12:49:27]wFMCommunicate OK [12:49:27]SAM_PROTO_SignData done [12:49:27]FM_MakeSignedData done [12:49:27]CreateOFDProtocolMessage [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 4D 7C 80 11 00 00 00 00 00 00 43 [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 4D 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 93 [12:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:49:27]wFMCommunicate OK [12:49:27]CreateOFDProtocolMessage done [12:49:27]OFDSenderStorePacket 95408 [12:49:27]StoreOFDPacket docnum=95408 [12:49:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F1 73 07 01 E9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 A8 7A 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 E0 A0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 74 01 00 35 04 06 00 EB 14 06 02 75 F6 9C 96 4A 5E 2C 98 ED E9 [12:49:27]CheckFolder [12:49:27]dirname=/storage/ofd_packets [12:49:27]CheckFolder done [12:49:27]ProducePacketName [12:49:27]name=ofd_packets/00095408 [12:49:27]NVStorageSaveData ofd_packets/00095408 [12:49:27]File name is /storage/ofd_packets/00095408 [12:49:27]Write 301 bytes [12:49:27]NVStorageSaveData done [12:49:27]OFDSenderStorePacket done [12:49:27]KKMCreateOFDPacket done [12:49:27]NVStorageSaveData kkm_last_timestamp [12:49:27]File name is /storage/kkm_last_timestamp [12:49:27]Write 4 bytes [12:49:27]NVStorageSaveData done [12:49:27]ExternCall_PrintAddStr [12:49:27]wPrintStart [12:49:27]Write to MH i2c: 01 00 00 4E 7C CA [12:49:27]Write i2c OK [12:49:27]MH_I2C_Read... [12:49:27]Read from MH i2c: 01 [12:49:27]MH_I2C_Read... [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 4E 7C 00 80 00 00 00 FF 0F 5F [12:49:27]RasterBufferAndPrint [12:49:27]line Счет N : (1)196397 [12:49:27]line ИНН: 02508201610067 [12:49:27]line Контрольно-Кассовый Чек [12:49:27]line ПРОДАЖА [12:49:27]line ТРК (МРК, ГНК) : 42 [12:49:27]line Товар: 2710124130 [12:49:27]line Аи-92-К-5 [12:49:27]line 5.000 * 62.90 [12:49:27]line = 314.50 [12:49:27]line НДС 12% НСП 1% [12:49:27]line > о реализуемом товаре [12:49:27]line ОКРУГЛЕНИЕ: -0.50 [12:49:27]line ИТОГО: 314.00 [12:49:27]line Внесено: 350.00 [12:49:27]line СДАЧА: 36.00 [12:49:27]line НСП 1% : 2.78 [12:49:27]line НДС 12% : 33.40 [12:49:27]line Наличными: 314.00 [12:49:27]line Безнал.: 0.00 [12:49:27]line Место: АЗС № 6 "Партнер Нефть" [12:49:27]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:49:27]line СНО: Общий режим [12:49:27]line Чек 103 13.03.2024 12:49 [12:49:27]line Смена: 328 ФФД: 1.0 [12:49:27]line ЗНМ: 0300000009 [12:49:27]line РНМ: 0000000000090555 [12:49:27]line Версия ККМ: 001 [12:49:27]line ФМ: 0000000000874811 [12:49:27]line ФД: 95408 [12:49:27]line ФПД: 258471232697846 [12:49:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T124936&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95408&fm=258471232697846&tin=02508201610067®Number=0000000000090555&sum=31400 [12:49:27]OFD Sender: Processing packet 95408 [packets to send 30, broken 29] [12:49:27]ProducePacketName [12:49:27]name=ofd_packets/00095408 [12:49:27]OFD Sender: To server: pG, [12:49:27]CommunicateWithHost lk.salyk.kg:30040 [12:49:27]ConnectInit lk.salyk.kg [12:49:27]written 0, free lines is 4095 [12:49:28]Write to MH i2c: 01 00 00 79 7C F5 [12:49:28]Write i2c OK [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 07 00 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: 01 07 00 79 7C 00 80 00 00 00 4F 0D D8 [12:49:28]RasterBufferAndPrint [12:49:28]line [12:49:28]line [12:49:28]line [12:49:28]line [12:49:28]line [12:49:28]written 0, free lines is 3413 [12:49:28]process_action close_receipt done [12:49:28]requested_data is exist [12:49:28]produce_requested_data [12:49:28]requested_item fm.sn is exist - process it [12:49:28]wFMCommunicate request_size=4 [12:49:28]MH_SAM_APDU [12:49:28]CAPDU: 80 11 00 00 [12:49:28]Write to MH i2c: E2 08 00 80 7C 80 11 00 00 00 00 00 00 76 [12:49:28]Write i2c OK [12:49:28]MH_I2C_Read... [12:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:28]Read from MH i2c: E2 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: E2 17 00 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: E2 17 00 80 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 C6 [12:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:49:28]wFMCommunicate OK [12:49:28]requested_item fd.num is exist - process it [12:49:28]SAM_PROTO_GetFieldsCounters [12:49:28]wFMCommunicate request_size=4 [12:49:28]MH_SAM_APDU [12:49:28]CAPDU: 80 13 00 00 [12:49:28]Write to MH i2c: E2 08 00 81 7C 80 13 00 00 00 00 00 00 79 [12:49:28]Write i2c OK [12:49:28]MH_I2C_Read... [12:49:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:28]Read from MH i2c: E2 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: E2 62 00 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: E2 62 00 81 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B0 74 01 00 0E 04 04 00 48 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 39 [12:49:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B0 74 01 00 0E 04 04 00 48 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 [12:49:28]wFMCommunicate OK [12:49:28]SAM_PROTO_GetFieldsCounters done [12:49:28]requested_item shift.num is exist - process it [12:49:28]requested_item shift.opened is exist - process it [12:49:28]req_shift_opened [12:49:28]FM_GetShiftState [12:49:28]SAM_PROTO_GetShiftState [12:49:28]wFMCommunicate request_size=4 [12:49:28]MH_SAM_APDU [12:49:28]CAPDU: 80 13 01 00 [12:49:28]Write to MH i2c: E2 08 00 82 7C 80 13 01 00 00 00 00 00 7B [12:49:28]Write i2c OK [12:49:28]MH_I2C_Read... [12:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:28]Read from MH i2c: E2 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: E2 0E 00 [12:49:28]MH_I2C_Read... [12:49:28]Read from MH i2c: E2 0E 00 82 7C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 60 [12:49:28]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:49:28]wFMCommunicate OK [12:49:28]SAM_PROTO_GetShiftState done [12:49:28]FM_GetShiftState done [12:49:28]req_shift_opened done [12:49:28]requested_item shift.open_date is exist - process it [12:49:28]req_shift_open_date [12:49:28]req_shift_open_date done [12:49:28]produce_requested_data done [12:49:28]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95408,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:49:28]process_action_free close_receipt [12:49:28]json_value_free [12:49:28]json_value_free done [12:49:28]process_json_proto returns [12:49:28]Send response to host [12:49:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95408,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:49:28]free response buf [12:49:28]execute_script done [12:49:28]execute_script returns [12:49:28]free content buf [12:49:28]Sock 8.Close socket [12:49:28]Sock 8.Thread stoped [12:49:29]Connected sock=10 [12:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 F1 73 07 01 E9 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 DA 7A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 7A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0D 00 00 00 00 07 04 06 00 A8 7A 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 E0 A0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 74 01 00 35 04 06 00 EB 14 06 02 75 F6 9C 96 4A 5E 2C 98 ED E9 [12:49:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 08 9E 47 00 F5 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B0 74 01 00 F4 03 04 00 34 4C F1 65 B6 04 01 00 00 F0 32 0A 37 02 5A 8F 57 [12:49:29]CommunicateWithHost err = 0 [12:49:29]CheckOFDResponse [12:49:29]1017 (14) - 77093643461234 [12:49:29]1041 (16) - 0000000000874811 [12:49:29]1040 (4) - 95408 [12:49:29]1012 (4) - 13.03.2024 06:48 [12:49:29]1206 (1) - 0 [12:49:29]OFD Sender: Remove packet 95408 [12:49:29]ProducePacketName [12:49:29]name=ofd_packets/00095408 [12:49:29]NVStorageDeleteData [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [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:13]accept exits with 9 [12:52:13]New connection [12:52:13]New thread 3066813796 created [12:52:13]Thread 3066957156 joined [12:52:13]Waiting for new connection... [12:52:13] Sock 9.Parse request [12:52:13]Sock 9.Check first char [12:52:13]Sock 9.First char is OK [12:52:13]request: POST /json_proto HTTP/1.0 [12:52:13]Method: POST [12:52:13]URL: /json_proto [12:52:13]Method is POST - this is cgi request [12:52:13]url: /json_proto [12:52:13]query_string will be loaded in cgi processing [12:52:13]execute_cgi json_proto POST (null) [12:52:13]execute_cgi path=json_proto method=POST [12:52:13]POST find Content-Length [12:52:13]Host: 172.17.62.67:8080 [12:52:13]Content-Length: 819 [12:52:13]Content-Type: application/json [12:52:13] [12:52:13]POST finish read [12:52:13]Found Content-Length = 819 [12:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:13]execute_script... [12:52: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)196398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:13]POST & json_proto [12:52:13]process_json_proto [12:52:13]json parsed OK: [12:52:13]protocol is kg_v1.0 [12:52:13]action value=close_receipt [12:52:13]process_action close_receipt [12:52:13]cmd_close_receipt [12:52:13]MH_GetDate [12:52:13]Write to MH i2c: F0 00 00 83 7C EE [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: F0 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: F0 05 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: F0 05 00 83 7C 00 88 A1 F1 65 72 [12:52:13]GetLastDocTimeStamp 1710334176 [12:52:13]current date 1710334344 [12:52:13]FM_GetShiftState [12:52:13]SAM_PROTO_GetShiftState [12:52:13]wFMCommunicate request_size=4 [12:52:13]MH_SAM_APDU [12:52:13]CAPDU: 80 13 01 00 [12:52:13]Write to MH i2c: E2 08 00 84 7C 80 13 01 00 00 00 00 00 7D [12:52:13]Write i2c OK [12:52:13]MH_I2C_Read... [12:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:13]Read from MH i2c: E2 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: E2 0E 00 [12:52:13]MH_I2C_Read... [12:52:13]Read from MH i2c: E2 0E 00 84 7C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 62 [12:52:13]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:52:13]wFMCommunicate OK [12:52:13]SAM_PROTO_GetShiftState done [12:52:13]FM_GetShiftState done [12:52:13]opened in 1710288279 [12:52:13]opened+sec_in_day 1710374679 [12:52:13]quantity*price = 100010 [12:52:13]sum+1 = 100012 [12:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 104 13.03.2024 12:52 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95409 ФПД: 255420379163827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T125224&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95409&fm=255420379163827&tin=02508201610067®Number=0000000000090555&sum=100011 [12:52:14]StoreToDocumentArchive [12:52:14]shift 328 fd 95409 [12:52:14]save to /storage/0328/doc_00095409 [12:52:14]save last doc name /storage/0328/doc_00095409 to /storage/kkm_last_doc_name [12:52:14]save OK [12:52:14]Clear old archive folders... [12:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:14]tlvbuf is 01CEB5E0 [12:52:14]SAM_PROTO_ClearQueue [12:52:14]wFMCommunicate request_size=4 [12:52:14]MH_SAM_APDU [12:52:14]CAPDU: 80 09 00 00 [12:52:14]Write to MH i2c: E2 08 00 91 7C 80 09 00 00 00 00 00 00 7F [12:52:14]Write i2c OK [12:52:14]MH_I2C_Read... [12:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:14]Read from MH i2c: E2 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: E2 03 00 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: E2 03 00 91 7C 00 90 00 81 [12:52:14]RAPDU: 90 00 [12:52:14]wFMCommunicate OK [12:52:14]SAM_PROTO_ClearQueue done [12:52:14]KKMCreateOFDPacket [12:52:14]OFDProtocolAddRootSTLVToBuf [12:52:14]FM_MakeSignedData [12:52:14]FM_MakeSignedData [12:52:14]SAM_PROTO_SignData [12:52:14]wFMCommunicate request_size=4 [12:52:14]MH_SAM_APDU [12:52:14]CAPDU: 80 0D 01 02 [12:52:14]Write to MH i2c: E2 08 00 92 7C 80 0D 01 02 00 00 00 00 87 [12:52:14]Write i2c OK [12:52:14]MH_I2C_Read... [12:52:14]OFD Sender: No OFD packet to send [12:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:14]Read from MH i2c: E2 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: E2 03 00 [12:52:14]MH_I2C_Read... [12:52:14]Read from MH i2c: E2 03 00 92 7C 00 90 00 82 [12:52:14]RAPDU: 90 00 [12:52:14]wFMCommunicate OK [12:52:14]wFMCommunicate request_size=255 [12:52:14]MH_SAM_APDU [12:52:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 88 A1 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 74 01 00 35 04 06 00 E8 [12:52:14]Write to MH i2c: E2 02 01 93 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 88 A1 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 74 01 00 35 04 06 00 E8 00 00 32 [12:52:14]Write i2c OK [12:52:14]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 03 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 03 00 93 7C 00 90 00 83 [12:52:15]RAPDU: 90 00 [12:52:15]wFMCommunicate OK [12:52:15]wFMCommunicate request_size=10 [12:52:15]MH_SAM_APDU [12:52:15]CAPDU: 80 0D 02 02 05 4D B0 F7 EC B3 [12:52:15]Write to MH i2c: E2 0D 00 94 7C 80 0D 02 02 05 00 4D B0 F7 EC B3 00 00 27 [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 03 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 03 00 94 7C 00 90 00 84 [12:52:15]RAPDU: 90 00 [12:52:15]wFMCommunicate OK [12:52:15]wFMCommunicate request_size=4 [12:52:15]MH_SAM_APDU [12:52:15]CAPDU: 80 0D 03 02 [12:52:15]Write to MH i2c: E2 08 00 95 7C 80 0D 03 02 00 00 00 00 8C [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 0B 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 0B 00 95 7C 00 BD 3C 07 0D C7 59 69 18 90 00 3B [12:52:15]RAPDU: BD 3C 07 0D C7 59 69 18 90 00 [12:52:15]wFMCommunicate OK [12:52:15]SAM_PROTO_SignData done [12:52:15]FM_MakeSignedData done [12:52:15]CreateOFDProtocolMessage [12:52:15]wFMCommunicate request_size=4 [12:52:15]MH_SAM_APDU [12:52:15]CAPDU: 80 11 00 00 [12:52:15]Write to MH i2c: E2 08 00 96 7C 80 11 00 00 00 00 00 00 8C [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:15]Read from MH i2c: E2 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 17 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: E2 17 00 96 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DC [12:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:52:15]wFMCommunicate OK [12:52:15]CreateOFDProtocolMessage done [12:52:15]OFDSenderStorePacket 95409 [12:52:15]StoreOFDPacket docnum=95409 [12:52:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 98 B0 07 01 91 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 88 A1 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 74 01 00 35 04 06 00 E8 4D B0 F7 EC B3 BD 3C 07 0D C7 59 69 18 [12:52:15]CheckFolder [12:52:15]dirname=/storage/ofd_packets [12:52:15]CheckFolder done [12:52:15]ProducePacketName [12:52:15]name=ofd_packets/00095409 [12:52:15]NVStorageSaveData ofd_packets/00095409 [12:52:15]File name is /storage/ofd_packets/00095409 [12:52:15]Write 301 bytes [12:52:15]NVStorageSaveData done [12:52:15]OFDSenderStorePacket done [12:52:15]KKMCreateOFDPacket done [12:52:15]NVStorageSaveData kkm_last_timestamp [12:52:15]File name is /storage/kkm_last_timestamp [12:52:15]Write 4 bytes [12:52:15]NVStorageSaveData done [12:52:15]ExternCall_PrintAddStr [12:52:15]wPrintStart [12:52:15]Write to MH i2c: 01 00 00 97 7C 13 [12:52:15]Write i2c OK [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: 01 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: 01 07 00 [12:52:15]MH_I2C_Read... [12:52:15]Read from MH i2c: 01 07 00 97 7C 00 80 00 00 00 FF 0F A8 [12:52:15]RasterBufferAndPrint [12:52:15]line Счет N : (1)196398 [12:52:15]line ИНН: 02508201610067 [12:52:15]line Контрольно-Кассовый Чек [12:52:15]line ПРОДАЖА [12:52:15]line ТРК (МРК, ГНК) : 31 [12:52:15]line Товар: 2710124500 [12:52:15]line Аи-95-К-5 [12:52:15]line 14.390 * 69.50 [12:52:15]line = 1000.11 [12:52:15]line НДС 12% НСП 1% [12:52:15]line > о реализуемом товаре [12:52:15]line ИТОГО: 1000.11 [12:52:15]line НСП 1% : 8.85 [12:52:15]line НДС 12% : 106.21 [12:52:15]line Наличными: 0.00 [12:52:15]line Безнал.: 1000.11 [12:52:15]line Место: АЗС № 6 "Партнер Нефть" [12:52:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:52:15]line СНО: Общий режим [12:52:15]line Чек 104 13.03.2024 12:52 [12:52:15]line Смена: 328 ФФД: 1.0 [12:52:15]line ЗНМ: 0300000009 [12:52:15]line РНМ: 0000000000090555 [12:52:15]line Версия ККМ: 001 [12:52:15]line Платежная система: Бакай Банк [12:52:15]line ФМ: 0000000000874811 [12:52:15]line ФД: 95409 [12:52:15]line ФПД: 255420379163827 [12:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T125224&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95409&fm=255420379163827&tin=02508201610067®Number=0000000000090555&sum=100011 [12:52:15]OFD Sender: Processing packet 95409 [packets to send 30, broken 29] [12:52:15]ProducePacketName [12:52:15]name=ofd_packets/00095409 [12:52:15]OFD Sender: To server: pG, [12:52:15]CommunicateWithHost lk.salyk.kg:30040 [12:52:15]ConnectInit lk.salyk.kg [12:52:15]written 0, free lines is 4095 [12:52:15]Connected sock=10 [12:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 98 B0 07 01 91 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 88 A1 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 74 01 00 35 04 06 00 E8 4D B0 F7 EC B3 BD 3C 07 0D C7 59 69 18 [12:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 29 B0 47 00 CB EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B1 74 01 00 F4 03 04 00 DB 4C F1 65 B6 04 01 00 00 6B 3C 73 7D B0 DA AF 61 [12:52:15]CommunicateWithHost err = 0 [12:52:15]CheckOFDResponse [12:52:15]1017 (14) - 77093643461234 [12:52:15]1041 (16) - 0000000000874811 [12:52:15]1040 (4) - 95409 [12:52:15]1012 (4) - 13.03.2024 06:51 [12:52:15]1206 (1) - 0 [12:52:15]OFD Sender: Remove packet 95409 [12:52:15]ProducePacketName [12:52:15]name=ofd_packets/00095409 [12:52:15]NVStorageDeleteData [12:52:16]Write to MH i2c: 01 00 00 C1 7C 3D [12:52:16]Write i2c OK [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: 01 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: 01 07 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: 01 07 00 C1 7C 00 80 00 00 00 56 0D 27 [12:52:16]RasterBufferAndPrint [12:52:16]line [12:52:16]line [12:52:16]line [12:52:16]line [12:52:16]line [12:52:16]written 0, free lines is 3422 [12:52:16]process_action close_receipt done [12:52:16]requested_data is exist [12:52:16]produce_requested_data [12:52:16]requested_item fm.sn is exist - process it [12:52:16]wFMCommunicate request_size=4 [12:52:16]MH_SAM_APDU [12:52:16]CAPDU: 80 11 00 00 [12:52:16]Write to MH i2c: E2 08 00 C8 7C 80 11 00 00 00 00 00 00 BE [12:52:16]Write i2c OK [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 [12:52:16]MH_I2C_Read... [12:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:16]Read from MH i2c: E2 17 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 17 00 C8 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [12:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:52:16]wFMCommunicate OK [12:52:16]requested_item fd.num is exist - process it [12:52:16]SAM_PROTO_GetFieldsCounters [12:52:16]wFMCommunicate request_size=4 [12:52:16]MH_SAM_APDU [12:52:16]CAPDU: 80 13 00 00 [12:52:16]Write to MH i2c: E2 08 00 C9 7C 80 13 00 00 00 00 00 00 C1 [12:52:16]Write i2c OK [12:52:16]MH_I2C_Read... [12:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:16]Read from MH i2c: E2 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 62 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 62 00 C9 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 74 01 00 0E 04 04 00 48 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 85 [12:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 74 01 00 0E 04 04 00 48 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 [12:52:16]wFMCommunicate OK [12:52:16]SAM_PROTO_GetFieldsCounters done [12:52:16]requested_item shift.num is exist - process it [12:52:16]requested_item shift.opened is exist - process it [12:52:16]req_shift_opened [12:52:16]FM_GetShiftState [12:52:16]SAM_PROTO_GetShiftState [12:52:16]wFMCommunicate request_size=4 [12:52:16]MH_SAM_APDU [12:52:16]CAPDU: 80 13 01 00 [12:52:16]Write to MH i2c: E2 08 00 CA 7C 80 13 01 00 00 00 00 00 C3 [12:52:16]Write i2c OK [12:52:16]MH_I2C_Read... [12:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:16]Read from MH i2c: E2 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 0E 00 [12:52:16]MH_I2C_Read... [12:52:16]Read from MH i2c: E2 0E 00 CA 7C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A8 [12:52:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:52:16]wFMCommunicate OK [12:52:16]SAM_PROTO_GetShiftState done [12:52:16]FM_GetShiftState done [12:52:16]req_shift_opened done [12:52:16]requested_item shift.open_date is exist - process it [12:52:16]req_shift_open_date [12:52:16]req_shift_open_date done [12:52:16]produce_requested_data done [12:52:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95409,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:52:16]process_action_free close_receipt [12:52:16]json_value_free [12:52:16]json_value_free done [12:52:16]process_json_proto returns [12:52:16]Send response to host [12:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95409,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:52:16]free response buf [12:52:16]execute_script done [12:52:16]execute_script returns [12:52:16]free content buf [12:52:16]Sock 9.Close socket [12:52:16]Sock 9.Thread stoped [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:28]accept exits with 8 [12:54:28]New connection [12:54:28]New thread 3066957156 created [12:54:28]Thread 3066813796 joined [12:54:28]Waiting for new connection... [12:54:28] Sock 8.Parse request [12:54:28]Sock 8.Check first char [12:54:28]Sock 8.First char is OK [12:54:28]request: POST /json_proto HTTP/1.0 [12:54:28]Method: POST [12:54:28]URL: /json_proto [12:54:28]Method is POST - this is cgi request [12:54:28]url: /json_proto [12:54:28]query_string will be loaded in cgi processing [12:54:28]execute_cgi json_proto POST (null) [12:54:28]execute_cgi path=json_proto method=POST [12:54:28]POST find Content-Length [12:54:28]Host: 172.17.62.67:8080 [12:54:28]Content-Length: 1201 [12:54:28]Content-Type: application/json [12:54:28] [12:54:28]POST finish read [12:54:28]Found Content-Length = 1201 [12:54:28]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196399\u000A13.03.2024 12:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A00153\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:28]execute_script... [12:54:28]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196399\u000A13.03.2024 12:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 1258.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\u000A00153\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:28]POST & json_proto [12:54:28]process_json_proto [12:54:28]json parsed OK: [12:54:28]protocol is kg_v1.0 [12:54:28]action value=print_text [12:54:28]process_action print_text [12:54:28]cmd_print_text [12:54:28]ExternCall_PrintAddStr [12:54:28]wPrintStart [12:54:28]Write to MH i2c: 01 00 00 CB 7C 47 [12:54:28]Write i2c OK [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: 01 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: 01 07 00 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: 01 07 00 CB 7C 00 80 00 00 00 FF 0F DC [12:54:28]RasterBufferAndPrint [12:54:28]line *****ТОВАРНЫЙ ЧЕК***** [12:54:28]line АЗС 6 [12:54:28]line Партнер нефть [12:54:28]line 02508201610067 [12:54:28]line Кассир : Сабырбек у. М. [12:54:28]line Счет N : (1)196399 [12:54:28]line 13.03.2024 12:48 [12:54:28]line ПРОДАЖА [12:54:28]line ТРК (МРК, ГНК): 12 [12:54:28]line Вид ГСМ : 2710124130 [12:54:28]line Аи-92-К-5 [12:54:28]line 20.000 x 62.90 [12:54:28]line ИТОГ: 1258.00 [12:54:28]line Тип оплаты: Талоны: Топливная Карта [12:54:28]line 00153 [12:54:28]line ______________________ [12:54:28]line (подпись) [12:54:28]written 0, free lines is 4095 [12:54:28]Write to MH i2c: 01 00 00 DF 7C 5B [12:54:28]Write i2c OK [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: 01 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: 01 07 00 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: 01 07 00 DF 7C 00 80 00 00 00 67 0E 57 [12:54:28]RasterBufferAndPrint [12:54:28]line [12:54:28]line [12:54:28]line [12:54:28]line [12:54:28]line [12:54:28]written 0, free lines is 3691 [12:54:28]process_action print_text done [12:54:28]requested_data is exist [12:54:28]produce_requested_data [12:54:28]requested_item fm.sn is exist - process it [12:54:28]wFMCommunicate request_size=4 [12:54:28]MH_SAM_APDU [12:54:28]CAPDU: 80 11 00 00 [12:54:28]Write to MH i2c: E2 08 00 E6 7C 80 11 00 00 00 00 00 00 DC [12:54:28]Write i2c OK [12:54:28]MH_I2C_Read... [12:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:28]Read from MH i2c: E2 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: E2 17 00 [12:54:28]MH_I2C_Read... [12:54:28]Read from MH i2c: E2 17 00 E6 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2C [12:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:54:28]wFMCommunicate OK [12:54:28]requested_item fd.num is exist - process it [12:54:28]SAM_PROTO_GetFieldsCounters [12:54:28]wFMCommunicate request_size=4 [12:54:28]MH_SAM_APDU [12:54:28]CAPDU: 80 13 00 00 [12:54:28]Write to MH i2c: E2 08 00 E7 7C 80 13 00 00 00 00 00 00 DF [12:54:28]Write i2c OK [12:54:28]MH_I2C_Read... [12:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:29]Read from MH i2c: E2 [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: E2 62 00 [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: E2 62 00 E7 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 74 01 00 0E 04 04 00 48 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 A3 [12:54:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B1 74 01 00 0E 04 04 00 48 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 [12:54:29]wFMCommunicate OK [12:54:29]SAM_PROTO_GetFieldsCounters done [12:54:29]requested_item shift.num is exist - process it [12:54:29]requested_item shift.opened is exist - process it [12:54:29]req_shift_opened [12:54:29]FM_GetShiftState [12:54:29]SAM_PROTO_GetShiftState [12:54:29]wFMCommunicate request_size=4 [12:54:29]MH_SAM_APDU [12:54:29]CAPDU: 80 13 01 00 [12:54:29]Write to MH i2c: E2 08 00 E8 7C 80 13 01 00 00 00 00 00 E1 [12:54:29]Write i2c OK [12:54:29]MH_I2C_Read... [12:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:29]Read from MH i2c: E2 [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: E2 0E 00 [12:54:29]MH_I2C_Read... [12:54:29]Read from MH i2c: E2 0E 00 E8 7C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C6 [12:54:29]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:54:29]wFMCommunicate OK [12:54:29]SAM_PROTO_GetShiftState done [12:54:29]FM_GetShiftState done [12:54:29]req_shift_opened done [12:54:29]requested_item shift.open_date is exist - process it [12:54:29]req_shift_open_date [12:54:29]req_shift_open_date done [12:54:29]produce_requested_data done [12:54:29]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95409,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:54:29]process_action_free print_text [12:54:29]json_value_free [12:54:29]json_value_free done [12:54:29]process_json_proto returns [12:54:29]Send response to host [12:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95409,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:54:29]free response buf [12:54:29]execute_script done [12:54:29]execute_script returns [12:54:29]free content buf [12:54:29]Sock 8.Close socket [12:54:29]Sock 8.Thread stoped [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:09]accept exits with 9 [12:56:09]New connection [12:56:09]New thread 3066813796 created [12:56:09]Thread 3066957156 joined [12:56:09]Waiting for new connection... [12:56:09] Sock 9.Parse request [12:56:09]Sock 9.Check first char [12:56:09]Sock 9.First char is OK [12:56:09]request: POST /json_proto HTTP/1.0 [12:56:09]Method: POST [12:56:09]URL: /json_proto [12:56:09]Method is POST - this is cgi request [12:56:09]url: /json_proto [12:56:09]query_string will be loaded in cgi processing [12:56:09]execute_cgi json_proto POST (null) [12:56:09]execute_cgi path=json_proto method=POST [12:56:09]POST find Content-Length [12:56:09]Host: 172.17.62.67:8080 [12:56:09]Content-Length: 819 [12:56:09]Content-Type: application/json [12:56:09] [12:56:09]POST finish read [12:56:09]Found Content-Length = 819 [12:56:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:09]execute_script... [12: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 : (1)196400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 21.590, "sum" : 1500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:09]POST & json_proto [12:56:09]process_json_proto [12:56:09]json parsed OK: [12:56:09]protocol is kg_v1.0 [12:56:09]action value=close_receipt [12:56:09]process_action close_receipt [12:56:09]cmd_close_receipt [12:56:09]MH_GetDate [12:56:09]Write to MH i2c: F0 00 00 E9 7C 54 [12:56:09]Write i2c OK [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: F0 [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: F0 05 00 [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: F0 05 00 E9 7C 00 74 A2 F1 65 C5 [12:56:09]GetLastDocTimeStamp 1710334344 [12:56:09]current date 1710334580 [12:56:09]FM_GetShiftState [12:56:09]SAM_PROTO_GetShiftState [12:56:09]wFMCommunicate request_size=4 [12:56:09]MH_SAM_APDU [12:56:09]CAPDU: 80 13 01 00 [12:56:09]Write to MH i2c: E2 08 00 EA 7C 80 13 01 00 00 00 00 00 E3 [12:56:09]Write i2c OK [12:56:09]MH_I2C_Read... [12:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:09]Read from MH i2c: E2 [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: E2 0E 00 [12:56:09]MH_I2C_Read... [12:56:09]Read from MH i2c: E2 0E 00 EA 7C 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C8 [12:56:09]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:56:09]wFMCommunicate OK [12:56:09]SAM_PROTO_GetShiftState done [12:56:09]FM_GetShiftState done [12:56:09]opened in 1710288279 [12:56:09]opened+sec_in_day 1710374679 [12:56:09]quantity*price = 150050 [12:56:09]sum+1 = 150052 [12:56:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.51 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.51 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 105 13.03.2024 12:56 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95410 ФПД: 5281787316850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T125620&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95410&fm=5281787316850&tin=02508201610067®Number=0000000000090555&sum=150051 [12:56:11]StoreToDocumentArchive [12:56:11]shift 328 fd 95410 [12:56:11]save to /storage/0328/doc_00095410 [12:56:11]save last doc name /storage/0328/doc_00095410 to /storage/kkm_last_doc_name [12:56:11]save OK [12:56:11]Clear old archive folders... [12:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:11]tlvbuf is 01AF2460 [12:56:11]SAM_PROTO_ClearQueue [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 09 00 00 [12:56:11]Write to MH i2c: E2 08 00 F7 7C 80 09 00 00 00 00 00 00 E5 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 F7 7C 00 90 00 E7 [12:56:11]RAPDU: 90 00 [12:56:11]wFMCommunicate OK [12:56:11]SAM_PROTO_ClearQueue done [12:56:11]KKMCreateOFDPacket [12:56:11]OFDProtocolAddRootSTLVToBuf [12:56:11]FM_MakeSignedData [12:56:11]FM_MakeSignedData [12:56:11]SAM_PROTO_SignData [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 0D 01 02 [12:56:11]Write to MH i2c: E2 08 00 F8 7C 80 0D 01 02 00 00 00 00 ED [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 F8 7C 00 90 00 E8 [12:56:11]RAPDU: 90 00 [12:56:11]wFMCommunicate OK [12:56:11]wFMCommunicate request_size=255 [12:56:11]MH_SAM_APDU [12:56: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 74 A2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 74 01 00 35 04 06 00 04 [12:56:11]Write to MH i2c: E2 02 01 F9 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 74 A2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 74 01 00 35 04 06 00 04 00 00 2A [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 F9 7C 00 90 00 E9 [12:56:11]RAPDU: 90 00 [12:56:11]wFMCommunicate OK [12:56:11]wFMCommunicate request_size=10 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 0D 02 02 05 CD C3 0E 8A 72 [12:56:11]Write to MH i2c: E2 0D 00 FA 7C 80 0D 02 02 05 00 CD C3 0E 8A 72 00 00 94 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 03 00 FA 7C 00 90 00 EA [12:56:11]RAPDU: 90 00 [12:56:11]wFMCommunicate OK [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 0D 03 02 [12:56:11]Write to MH i2c: E2 08 00 FB 7C 80 0D 03 02 00 00 00 00 F2 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 0B 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 0B 00 FB 7C 00 42 A1 F9 DC F7 78 F5 5E 90 00 6D [12:56:11]RAPDU: 42 A1 F9 DC F7 78 F5 5E 90 00 [12:56:11]wFMCommunicate OK [12:56:11]SAM_PROTO_SignData done [12:56:11]FM_MakeSignedData done [12:56:11]CreateOFDProtocolMessage [12:56:11]wFMCommunicate request_size=4 [12:56:11]MH_SAM_APDU [12:56:11]CAPDU: 80 11 00 00 [12:56:11]Write to MH i2c: E2 08 00 FC 7C 80 11 00 00 00 00 00 00 F2 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:11]Read from MH i2c: E2 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 17 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: E2 17 00 FC 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 42 [12:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:56:11]wFMCommunicate OK [12:56:11]CreateOFDProtocolMessage done [12:56:11]OFDSenderStorePacket 95410 [12:56:11]StoreOFDPacket docnum=95410 [12:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AA A0 07 01 CF 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 74 A2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 74 01 00 35 04 06 00 04 CD C3 0E 8A 72 42 A1 F9 DC F7 78 F5 5E [12:56:11]CheckFolder [12:56:11]dirname=/storage/ofd_packets [12:56:11]CheckFolder done [12:56:11]ProducePacketName [12:56:11]name=ofd_packets/00095410 [12:56:11]NVStorageSaveData ofd_packets/00095410 [12:56:11]File name is /storage/ofd_packets/00095410 [12:56:11]Write 301 bytes [12:56:11]NVStorageSaveData done [12:56:11]OFDSenderStorePacket done [12:56:11]KKMCreateOFDPacket done [12:56:11]NVStorageSaveData kkm_last_timestamp [12:56:11]File name is /storage/kkm_last_timestamp [12:56:11]Write 4 bytes [12:56:11]NVStorageSaveData done [12:56:11]ExternCall_PrintAddStr [12:56:11]wPrintStart [12:56:11]Write to MH i2c: 01 00 00 FD 7C 79 [12:56:11]Write i2c OK [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: 01 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: 01 07 00 [12:56:11]MH_I2C_Read... [12:56:11]Read from MH i2c: 01 07 00 FD 7C 00 80 00 00 00 FF 0F 0E [12:56:11]RasterBufferAndPrint [12:56:11]line Счет N : (1)196400 [12:56:11]line ИНН: 02508201610067 [12:56:11]line Контрольно-Кассовый Чек [12:56:11]line ПРОДАЖА [12:56:11]line ТРК (МРК, ГНК) : 31 [12:56:11]line Товар: 2710124500 [12:56:11]line Аи-95-К-5 [12:56:11]line 21.590 * 69.50 [12:56:11]line = 1500.51 [12:56:11]line НДС 12% НСП 1% [12:56:11]line > о реализуемом товаре [12:56:11]line ИТОГО: 1500.51 [12:56:11]line НСП 1% : 13.28 [12:56:11]line НДС 12% : 159.35 [12:56:11]line Наличными: 0.00 [12:56:11]line Безнал.: 1500.51 [12:56:11]line Место: АЗС № 6 "Партнер Нефть" [12:56:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [12:56:11]line СНО: Общий режим [12:56:11]line Чек 105 13.03.2024 12:56 [12:56:11]line Смена: 328 ФФД: 1.0 [12:56:11]line ЗНМ: 0300000009 [12:56:11]line РНМ: 0000000000090555 [12:56:11]line Версия ККМ: 001 [12:56:11]line Платежная система: Бакай Банк [12:56:11]line ФМ: 0000000000874811 [12:56:11]line ФД: 95410 [12:56:11]line ФПД: 5281787316850 [12:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T125620&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95410&fm=5281787316850&tin=02508201610067®Number=0000000000090555&sum=150051 [12:56:11]OFD Sender: Processing packet 95410 [packets to send 30, broken 29] [12:56:11]ProducePacketName [12:56:11]name=ofd_packets/00095410 [12:56:11]OFD Sender: To server: pG, [12:56:11]CommunicateWithHost lk.salyk.kg:30040 [12:56:11]ConnectInit lk.salyk.kg [12:56:11]written 0, free lines is 4095 [12:56:11]Connected sock=10 [12: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 34 38 31 31 0F 01 00 00 AA A0 07 01 CF 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 54 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 23 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 74 A2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 74 01 00 35 04 06 00 04 CD C3 0E 8A 72 42 A1 F9 DC F7 78 F5 5E [12:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4A 7C 47 00 1C 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B2 74 01 00 F4 03 04 00 C7 4D F1 65 B6 04 01 00 00 42 F5 EC EA 62 6C 4F 35 [12:56:12]CommunicateWithHost err = 0 [12:56:12]CheckOFDResponse [12:56:12]1017 (14) - 77093643461234 [12:56:12]1041 (16) - 0000000000874811 [12:56:12]1040 (4) - 95410 [12:56:12]1012 (4) - 13.03.2024 06:55 [12:56:12]1206 (1) - 0 [12:56:12]OFD Sender: Remove packet 95410 [12:56:12]ProducePacketName [12:56:12]name=ofd_packets/00095410 [12:56:12]NVStorageDeleteData [12:56:12]Write to MH i2c: 01 00 00 27 7D A4 [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 07 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: 01 07 00 27 7D 00 80 00 00 00 5F 0D 97 [12:56:12]RasterBufferAndPrint [12:56:12]line [12:56:12]line [12:56:12]line [12:56:12]line [12:56:12]line [12:56:12]written 0, free lines is 3431 [12:56:12]process_action close_receipt done [12:56:12]requested_data is exist [12:56:12]produce_requested_data [12:56:12]requested_item fm.sn is exist - process it [12:56:12]wFMCommunicate request_size=4 [12:56:12]MH_SAM_APDU [12:56:12]CAPDU: 80 11 00 00 [12:56:12]Write to MH i2c: E2 08 00 2E 7D 80 11 00 00 00 00 00 00 25 [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:12]Read from MH i2c: E2 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 17 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 17 00 2E 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [12:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [12:56:12]wFMCommunicate OK [12:56:12]requested_item fd.num is exist - process it [12:56:12]SAM_PROTO_GetFieldsCounters [12:56:12]wFMCommunicate request_size=4 [12:56:12]MH_SAM_APDU [12:56:12]CAPDU: 80 13 00 00 [12:56:12]Write to MH i2c: E2 08 00 2F 7D 80 13 00 00 00 00 00 00 28 [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 [12:56:12]MH_I2C_Read... [12:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:12]Read from MH i2c: E2 62 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 62 00 2F 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B2 74 01 00 0E 04 04 00 48 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 F0 [12:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B2 74 01 00 0E 04 04 00 48 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 [12:56:12]wFMCommunicate OK [12:56:12]SAM_PROTO_GetFieldsCounters done [12:56:12]requested_item shift.num is exist - process it [12:56:12]requested_item shift.opened is exist - process it [12:56:12]req_shift_opened [12:56:12]FM_GetShiftState [12:56:12]SAM_PROTO_GetShiftState [12:56:12]wFMCommunicate request_size=4 [12:56:12]MH_SAM_APDU [12:56:12]CAPDU: 80 13 01 00 [12:56:12]Write to MH i2c: E2 08 00 30 7D 80 13 01 00 00 00 00 00 2A [12:56:12]Write i2c OK [12:56:12]MH_I2C_Read... [12:56:12]OFD Sender: No OFD packet to send [12:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:12]Read from MH i2c: E2 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 0E 00 [12:56:12]MH_I2C_Read... [12:56:12]Read from MH i2c: E2 0E 00 30 7D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0F [12:56:12]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [12:56:12]wFMCommunicate OK [12:56:12]SAM_PROTO_GetShiftState done [12:56:12]FM_GetShiftState done [12:56:12]req_shift_opened done [12:56:12]requested_item shift.open_date is exist - process it [12:56:12]req_shift_open_date [12:56:12]req_shift_open_date done [12:56:12]produce_requested_data done [12:56:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95410,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [12:56:12]process_action_free close_receipt [12:56:12]json_value_free [12:56:12]json_value_free done [12:56:12]process_json_proto returns [12:56:12]Send response to host [12:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95410,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [12:56:12]free response buf [12:56:12]execute_script done [12:56:12]execute_script returns [12:56:12]free content buf [12:56:12]Sock 9.Close socket [12:56:12]Sock 9.Thread stoped [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02: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:57]accept exits with 8 [13:02:57]New connection [13:02:57]New thread 3066957156 created [13:02:57]Thread 3066813796 joined [13:02:57]Waiting for new connection... [13:02:57] Sock 8.Parse request [13:02:57]Sock 8.Check first char [13:02:57]Sock 8.First char is OK [13:02:57]request: POST /json_proto HTTP/1.0 [13:02:57]Method: POST [13:02:57]URL: /json_proto [13:02:57]Method is POST - this is cgi request [13:02:57]url: /json_proto [13:02:57]query_string will be loaded in cgi processing [13:02:57]execute_cgi json_proto POST (null) [13:02:57]execute_cgi path=json_proto method=POST [13:02:57]POST find Content-Length [13:02:57]Host: 172.17.62.67:8080 [13:02:57]Content-Length: 677 [13:02:57]Content-Type: application/json [13:02:57] [13:02:57]POST finish read [13:02:57]Found Content-Length = 677 [13:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196401", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:57]execute_script... [13:02: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)196401", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:57]POST & json_proto [13:02:57]process_json_proto [13:02:57]json parsed OK: [13:02:57]protocol is kg_v1.0 [13:02:57]action value=close_receipt [13:02:57]process_action close_receipt [13:02:57]cmd_close_receipt [13:02:57]MH_GetDate [13:02:57]Write to MH i2c: F0 00 00 31 7D 9D [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: F0 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: F0 05 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: F0 05 00 31 7D 00 0C A4 F1 65 A8 [13:02:57]GetLastDocTimeStamp 1710334580 [13:02:57]current date 1710334988 [13:02:57]FM_GetShiftState [13:02:57]SAM_PROTO_GetShiftState [13:02:57]wFMCommunicate request_size=4 [13:02:57]MH_SAM_APDU [13:02:57]CAPDU: 80 13 01 00 [13:02:57]Write to MH i2c: E2 08 00 32 7D 80 13 01 00 00 00 00 00 2C [13:02:57]Write i2c OK [13:02:57]MH_I2C_Read... [13:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:57]Read from MH i2c: E2 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 0E 00 [13:02:57]MH_I2C_Read... [13:02:57]Read from MH i2c: E2 0E 00 32 7D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 11 [13:02:57]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:02:57]wFMCommunicate OK [13:02:57]SAM_PROTO_GetShiftState done [13:02:57]FM_GetShiftState done [13:02:57]opened in 1710288279 [13:02:57]opened+sec_in_day 1710374679 [13:02:57]quantity*price = 30003 [13:02:57]sum+1 = 30004 [13:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 106 13.03.2024 13:03 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95411 ФПД: 137455231241299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T130308&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95411&fm=137455231241299&tin=02508201610067®Number=0000000000090555&sum=30000 [13:02:58]StoreToDocumentArchive [13:02:58]shift 328 fd 95411 [13:02:58]save to /storage/0328/doc_00095411 [13:02:58]save last doc name /storage/0328/doc_00095411 to /storage/kkm_last_doc_name [13:02:58]save OK [13:02:58]Clear old archive folders... [13:02:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:58]tlvbuf is 01AB1EB0 [13:02:58]SAM_PROTO_ClearQueue [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 09 00 00 [13:02:58]Write to MH i2c: E2 08 00 3F 7D 80 09 00 00 00 00 00 00 2E [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 3F 7D 00 90 00 30 [13:02:58]RAPDU: 90 00 [13:02:58]wFMCommunicate OK [13:02:58]SAM_PROTO_ClearQueue done [13:02:58]KKMCreateOFDPacket [13:02:58]OFDProtocolAddRootSTLVToBuf [13:02:58]FM_MakeSignedData [13:02:58]FM_MakeSignedData [13:02:58]SAM_PROTO_SignData [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 0D 01 02 [13:02:58]Write to MH i2c: E2 08 00 40 7D 80 0D 01 02 00 00 00 00 36 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 40 7D 00 90 00 31 [13:02:58]RAPDU: 90 00 [13:02:58]wFMCommunicate OK [13:02:58]wFMCommunicate request_size=255 [13:02:58]MH_SAM_APDU [13:02: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 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 0C A4 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 74 01 00 35 04 06 00 7D [13:02:58]Write to MH i2c: E2 02 01 41 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 0C A4 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 74 01 00 35 04 06 00 7D 00 00 72 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 41 7D 00 90 00 32 [13:02:58]RAPDU: 90 00 [13:02:58]wFMCommunicate OK [13:02:58]wFMCommunicate request_size=10 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 0D 02 02 05 03 CA 3B 0C 53 [13:02:58]Write to MH i2c: E2 0D 00 42 7D 80 0D 02 02 05 00 03 CA 3B 0C 53 00 00 AA [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 03 00 42 7D 00 90 00 33 [13:02:58]RAPDU: 90 00 [13:02:58]wFMCommunicate OK [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 0D 03 02 [13:02:58]Write to MH i2c: E2 08 00 43 7D 80 0D 03 02 00 00 00 00 3B [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 0B 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 0B 00 43 7D 00 9F BF C7 E9 47 AD 5F E7 90 00 84 [13:02:59]RAPDU: 9F BF C7 E9 47 AD 5F E7 90 00 [13:02:59]wFMCommunicate OK [13:02:59]SAM_PROTO_SignData done [13:02:59]FM_MakeSignedData done [13:02:59]CreateOFDProtocolMessage [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 11 00 00 [13:02:59]Write to MH i2c: E2 08 00 44 7D 80 11 00 00 00 00 00 00 3B [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 44 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8B [13:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:02:59]wFMCommunicate OK [13:02:59]CreateOFDProtocolMessage done [13:02:59]OFDSenderStorePacket 95411 [13:02:59]StoreOFDPacket docnum=95411 [13:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 56 74 07 01 6C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 0C A4 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 74 01 00 35 04 06 00 7D 03 CA 3B 0C 53 9F BF C7 E9 47 AD 5F E7 [13:02:59]CheckFolder [13:02:59]dirname=/storage/ofd_packets [13:02:59]CheckFolder done [13:02:59]ProducePacketName [13:02:59]name=ofd_packets/00095411 [13:02:59]NVStorageSaveData ofd_packets/00095411 [13:02:59]File name is /storage/ofd_packets/00095411 [13:02:59]Write 301 bytes [13:02:59]NVStorageSaveData done [13:02:59]OFDSenderStorePacket done [13:02:59]KKMCreateOFDPacket done [13:02:59]NVStorageSaveData kkm_last_timestamp [13:02:59]File name is /storage/kkm_last_timestamp [13:02:59]Write 4 bytes [13:02:59]NVStorageSaveData done [13:02:59]ExternCall_PrintAddStr [13:02:59]wPrintStart [13:02:59]Write to MH i2c: 01 00 00 45 7D C2 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 45 7D 00 80 00 00 00 FF 0F 57 [13:02:59]RasterBufferAndPrint [13:02:59]line Счет N : (1)196401 [13:02:59]line ИНН: 02508201610067 [13:02:59]line Контрольно-Кассовый Чек [13:02:59]line ПРОДАЖА [13:02:59]line ТРК (МРК, ГНК) : 32 [13:02:59]line Товар: 2710124130 [13:02:59]line Аи-92-К-5 [13:02:59]line 4.770 * 62.90 [13:02:59]line = 300.03 [13:02:59]line НДС 12% НСП 1% [13:02:59]line > о реализуемом товаре [13:02:59]line ОКРУГЛЕНИЕ: -0.03 [13:02:59]line ИТОГО: 300.00 [13:02:59]line Внесено: 300.00 [13:02:59]line СДАЧА: 0.00 [13:02:59]line НСП 1% : 2.65 [13:02:59]line НДС 12% : 31.86 [13:02:59]line Наличными: 300.00 [13:02:59]line Безнал.: 0.00 [13:02:59]line Место: АЗС № 6 "Партнер Нефть" [13:02:59]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:02:59]line СНО: Общий режим [13:02:59]line Чек 106 13.03.2024 13:03 [13:02:59]line Смена: 328 ФФД: 1.0 [13:02:59]line ЗНМ: 0300000009 [13:02:59]line РНМ: 0000000000090555 [13:02:59]line Версия ККМ: 001 [13:02:59]line ФМ: 0000000000874811 [13:02:59]line ФД: 95411 [13:02:59]line ФПД: 137455231241299 [13:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T130308&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95411&fm=137455231241299&tin=02508201610067®Number=0000000000090555&sum=30000 [13:02:59]OFD Sender: Processing packet 95411 [packets to send 30, broken 29] [13:02:59]ProducePacketName [13:02:59]name=ofd_packets/00095411 [13:02:59]OFD Sender: To server: pG, [13:02:59]CommunicateWithHost lk.salyk.kg:30040 [13:02:59]ConnectInit lk.salyk.kg [13:02:59]written 0, free lines is 4095 [13:02:59]Connected sock=10 [13:02:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 56 74 07 01 6C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 72 0C 00 00 00 00 07 04 06 00 30 75 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 0C A4 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 74 01 00 35 04 06 00 7D 03 CA 3B 0C 53 9F BF C7 E9 47 AD 5F E7 [13:02:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E8 9A 47 00 68 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B3 74 01 00 F4 03 04 00 5F 4F F1 65 B6 04 01 00 00 15 5A 99 53 38 83 F9 3B [13:02:59]CommunicateWithHost err = 0 [13:02:59]CheckOFDResponse [13:02:59]1017 (14) - 77093643461234 [13:02:59]1041 (16) - 0000000000874811 [13:02:59]1040 (4) - 95411 [13:02:59]1012 (4) - 13.03.2024 07:01 [13:02:59]1206 (1) - 0 [13:02:59]OFD Sender: Remove packet 95411 [13:02:59]ProducePacketName [13:02:59]name=ofd_packets/00095411 [13:02:59]NVStorageDeleteData [13:02:59]Write to MH i2c: 01 00 00 70 7D ED [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: 01 07 00 70 7D 00 80 00 00 00 52 0D D3 [13:02:59]RasterBufferAndPrint [13:02:59]line [13:02:59]line [13:02:59]line [13:02:59]line [13:02:59]line [13:02:59]written 0, free lines is 3416 [13:02:59]process_action close_receipt done [13:02:59]requested_data is exist [13:02:59]produce_requested_data [13:02:59]requested_item fm.sn is exist - process it [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 11 00 00 [13:02:59]Write to MH i2c: E2 08 00 77 7D 80 11 00 00 00 00 00 00 6E [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 17 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 17 00 77 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [13:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:03:00]wFMCommunicate OK [13:03:00]requested_item fd.num is exist - process it [13:03:00]SAM_PROTO_GetFieldsCounters [13:03:00]wFMCommunicate request_size=4 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 13 00 00 [13:03:00]Write to MH i2c: E2 08 00 78 7D 80 13 00 00 00 00 00 00 71 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 62 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 62 00 78 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B3 74 01 00 0E 04 04 00 48 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 3D [13:03:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B3 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:00]wFMCommunicate OK [13:03:00]SAM_PROTO_GetFieldsCounters done [13:03:00]requested_item shift.num is exist - process it [13:03:00]requested_item shift.opened is exist - process it [13:03:00]req_shift_opened [13:03:00]FM_GetShiftState [13:03:00]SAM_PROTO_GetShiftState [13:03:00]wFMCommunicate request_size=4 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 13 01 00 [13:03:00]Write to MH i2c: E2 08 00 79 7D 80 13 01 00 00 00 00 00 73 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 0E 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 0E 00 79 7D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 58 [13:03:00]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:03:00]wFMCommunicate OK [13:03:00]SAM_PROTO_GetShiftState done [13:03:00]FM_GetShiftState done [13:03:00]req_shift_opened done [13:03:00]requested_item shift.open_date is exist - process it [13:03:00]req_shift_open_date [13:03:00]req_shift_open_date done [13:03:00]produce_requested_data done [13:03:00]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95411,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:03:00]process_action_free close_receipt [13:03:00]json_value_free [13:03:00]json_value_free done [13:03:00]process_json_proto returns [13:03:00]Send response to host [13:03:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95411,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:03:00]free response buf [13:03:00]execute_script done [13:03:00]execute_script returns [13:03:00]free content buf [13:03:00]Sock 8.Close socket [13:03:00]Sock 8.Thread stoped [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:21]accept exits with 9 [13:08:21]New connection [13:08:21]New thread 3066813796 created [13:08:21]Thread 3066957156 joined [13:08:21]Waiting for new connection... [13:08:21] Sock 9.Parse request [13:08:21]Sock 9.Check first char [13:08:21]Sock 9.First char is OK [13:08:21]request: POST /json_proto HTTP/1.0 [13:08:21]Method: POST [13:08:21]URL: /json_proto [13:08:21]Method is POST - this is cgi request [13:08:21]url: /json_proto [13:08:21]query_string will be loaded in cgi processing [13:08:21]execute_cgi json_proto POST (null) [13:08:21]execute_cgi path=json_proto method=POST [13:08:21]POST find Content-Length [13:08:22]Host: 172.17.62.67:8080 [13:08:22]Content-Length: 674 [13:08:22]Content-Type: application/json [13:08:22] [13:08:22]POST finish read [13:08:22]Found Content-Length = 674 [13:08:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196402", "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" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:22]execute_script... [13:08:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196402", "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" : 70.90, "quantity" : 7.060, "sum" : 500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:22]POST & json_proto [13:08:22]process_json_proto [13:08:22]json parsed OK: [13:08:22]protocol is kg_v1.0 [13:08:22]action value=close_receipt [13:08:22]process_action close_receipt [13:08:22]cmd_close_receipt [13:08:22]MH_GetDate [13:08:22]Write to MH i2c: F0 00 00 7A 7D E6 [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: F0 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: F0 05 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: F0 05 00 7A 7D 00 50 A5 F1 65 36 [13:08:22]GetLastDocTimeStamp 1710334988 [13:08:22]current date 1710335312 [13:08:22]FM_GetShiftState [13:08:22]SAM_PROTO_GetShiftState [13:08:22]wFMCommunicate request_size=4 [13:08:22]MH_SAM_APDU [13:08:22]CAPDU: 80 13 01 00 [13:08:22]Write to MH i2c: E2 08 00 7B 7D 80 13 01 00 00 00 00 00 75 [13:08:22]Write i2c OK [13:08:22]MH_I2C_Read... [13:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:22]Read from MH i2c: E2 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 0E 00 [13:08:22]MH_I2C_Read... [13:08:22]Read from MH i2c: E2 0E 00 7B 7D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 5A [13:08:22]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:08:22]wFMCommunicate OK [13:08:22]SAM_PROTO_GetShiftState done [13:08:22]FM_GetShiftState done [13:08:22]opened in 1710288279 [13:08:22]opened+sec_in_day 1710374679 [13:08:22]quantity*price = 50055 [13:08:22]sum+1 = 50056 [13:08:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 107 13.03.2024 13:08 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95412 ФПД: 106737535860173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T130832&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95412&fm=106737535860173&tin=02508201610067®Number=0000000000090555&sum=50000 [13:08:23]StoreToDocumentArchive [13:08:23]shift 328 fd 95412 [13:08:23]save to /storage/0328/doc_00095412 [13:08:23]save last doc name /storage/0328/doc_00095412 to /storage/kkm_last_doc_name [13:08:23]save OK [13:08:23]Clear old archive folders... [13:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:23]tlvbuf is 01B36C80 [13:08:23]SAM_PROTO_ClearQueue [13:08:23]wFMCommunicate request_size=4 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 09 00 00 [13:08:23]Write to MH i2c: E2 08 00 88 7D 80 09 00 00 00 00 00 00 77 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:23]Read from MH i2c: E2 03 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 03 00 88 7D 00 90 00 79 [13:08:23]RAPDU: 90 00 [13:08:23]wFMCommunicate OK [13:08:23]SAM_PROTO_ClearQueue done [13:08:23]KKMCreateOFDPacket [13:08:23]OFDProtocolAddRootSTLVToBuf [13:08:23]FM_MakeSignedData [13:08:23]FM_MakeSignedData [13:08:23]SAM_PROTO_SignData [13:08:23]wFMCommunicate request_size=4 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 0D 01 02 [13:08:23]Write to MH i2c: E2 08 00 89 7D 80 0D 01 02 00 00 00 00 7F [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 03 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 03 00 89 7D 00 90 00 7A [13:08:23]RAPDU: 90 00 [13:08:23]wFMCommunicate OK [13:08:23]wFMCommunicate request_size=255 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 50 A5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 74 01 00 35 04 06 00 61 13 C4 E8 [13:08:23]Write to MH i2c: E2 02 01 8A 7D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 50 A5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 74 01 00 35 04 06 00 61 13 C4 E8 00 00 A0 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 03 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 03 00 8A 7D 00 90 00 7B [13:08:23]RAPDU: 90 00 [13:08:23]wFMCommunicate OK [13:08:23]wFMCommunicate request_size=7 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 0D 02 02 02 BD CD [13:08:23]Write to MH i2c: E2 0A 00 8B 7D 80 0D 02 02 02 00 BD CD 00 00 10 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 03 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 03 00 8B 7D 00 90 00 7C [13:08:23]RAPDU: 90 00 [13:08:23]wFMCommunicate OK [13:08:23]wFMCommunicate request_size=4 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 0D 03 02 [13:08:23]Write to MH i2c: E2 08 00 8C 7D 80 0D 03 02 00 00 00 00 84 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 0B 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 0B 00 8C 7D 00 0F 83 0D 6C 36 64 72 EC 90 00 88 [13:08:23]RAPDU: 0F 83 0D 6C 36 64 72 EC 90 00 [13:08:23]wFMCommunicate OK [13:08:23]SAM_PROTO_SignData done [13:08:23]FM_MakeSignedData done [13:08:23]CreateOFDProtocolMessage [13:08:23]wFMCommunicate request_size=4 [13:08:23]MH_SAM_APDU [13:08:23]CAPDU: 80 11 00 00 [13:08:23]Write to MH i2c: E2 08 00 8D 7D 80 11 00 00 00 00 00 00 84 [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:23]Read from MH i2c: E2 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 17 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: E2 17 00 8D 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D4 [13:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:08:23]wFMCommunicate OK [13:08:23]CreateOFDProtocolMessage done [13:08:23]OFDSenderStorePacket 95412 [13:08:23]StoreOFDPacket docnum=95412 [13:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 BF 94 04 01 E6 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 50 A5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 74 01 00 35 04 06 00 61 13 C4 E8 BD CD 0F 83 0D 6C 36 64 72 EC [13:08:23]CheckFolder [13:08:23]dirname=/storage/ofd_packets [13:08:23]CheckFolder done [13:08:23]ProducePacketName [13:08:23]name=ofd_packets/00095412 [13:08:23]NVStorageSaveData ofd_packets/00095412 [13:08:23]File name is /storage/ofd_packets/00095412 [13:08:23]Write 298 bytes [13:08:23]NVStorageSaveData done [13:08:23]OFDSenderStorePacket done [13:08:23]KKMCreateOFDPacket done [13:08:23]NVStorageSaveData kkm_last_timestamp [13:08:23]File name is /storage/kkm_last_timestamp [13:08:23]Write 4 bytes [13:08:23]NVStorageSaveData done [13:08:23]ExternCall_PrintAddStr [13:08:23]wPrintStart [13:08:23]Write to MH i2c: 01 00 00 8E 7D 0B [13:08:23]Write i2c OK [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: 01 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: 01 07 00 [13:08:23]MH_I2C_Read... [13:08:23]Read from MH i2c: 01 07 00 8E 7D 00 80 00 00 00 FF 0F A0 [13:08:23]RasterBufferAndPrint [13:08:23]line Счет N : (1)196402 [13:08:23]line ИНН: 02508201610067 [13:08:23]line Контрольно-Кассовый Чек [13:08:23]line ПРОДАЖА [13:08:23]line ТРК (МРК, ГНК) : 61 [13:08:23]line Товар: 2710194210 [13:08:23]line ДТ-К-5 [13:08:23]line 7.060 * 70.90 [13:08:23]line = 500.55 [13:08:23]line НДС 12% НСП 1% [13:08:23]line > о реализуемом товаре [13:08:23]line ОКРУГЛЕНИЕ: -0.55 [13:08:23]line ИТОГО: 500.00 [13:08:23]line Внесено: 500.00 [13:08:23]line СДАЧА: 0.00 [13:08:23]line НСП 1% : 4.43 [13:08:23]line НДС 12% : 53.16 [13:08:23]line Наличными: 500.00 [13:08:23]line Безнал.: 0.00 [13:08:23]line Место: АЗС № 6 "Партнер Нефть" [13:08:23]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:08:23]line СНО: Общий режим [13:08:23]line Чек 107 13.03.2024 13:08 [13:08:23]line Смена: 328 ФФД: 1.0 [13:08:23]line ЗНМ: 0300000009 [13:08:23]line РНМ: 0000000000090555 [13:08:23]line Версия ККМ: 001 [13:08:23]line ФМ: 0000000000874811 [13:08:23]line ФД: 95412 [13:08:23]line ФПД: 106737535860173 [13:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T130832&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95412&fm=106737535860173&tin=02508201610067®Number=0000000000090555&sum=50000 [13:08:24]OFD Sender: Processing packet 95412 [packets to send 30, broken 29] [13:08:24]ProducePacketName [13:08:24]name=ofd_packets/00095412 [13:08:24]OFD Sender: To server: pG, [13:08:24]CommunicateWithHost lk.salyk.kg:30040 [13:08:24]ConnectInit lk.salyk.kg [13:08:24]written 0, free lines is 4095 [13:08:24]Connected sock=10 [13:08:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 BF 94 04 01 E6 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 1B 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 87 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 50 A5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 74 01 00 35 04 06 00 61 13 C4 E8 BD CD 0F 83 0D 6C 36 64 72 EC [13:08:24]Write to MH i2c: 01 00 00 B9 7D 36 [13:08:24]Write i2c OK [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: 01 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: 01 07 00 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: 01 07 00 B9 7D 00 80 00 00 00 55 0D 1F [13:08:24]RasterBufferAndPrint [13:08:24]line [13:08:24]line [13:08:24]line [13:08:24]line [13:08:24]line [13:08:24]written 0, free lines is 3419 [13:08:24]process_action close_receipt done [13:08:24]requested_data is exist [13:08:24]produce_requested_data [13:08:24]requested_item fm.sn is exist - process it [13:08:24]wFMCommunicate request_size=4 [13:08:24]MH_SAM_APDU [13:08:24]CAPDU: 80 11 00 00 [13:08:24]Write to MH i2c: E2 08 00 C0 7D 80 11 00 00 00 00 00 00 B7 [13:08:24]Write i2c OK [13:08:24]MH_I2C_Read... [13:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 A4 85 47 00 05 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B4 74 01 00 F4 03 04 00 A3 50 F1 65 B6 04 01 00 00 19 75 FD 80 AE BE AC AC [13:08:24]CommunicateWithHost err = 0 [13:08:24]CheckOFDResponse [13:08:24]1017 (14) - 77093643461234 [13:08:24]1041 (16) - 0000000000874811 [13:08:24]1040 (4) - 95412 [13:08:24]1012 (4) - 13.03.2024 07:07 [13:08:24]1206 (1) - 0 [13:08:24]OFD Sender: Remove packet 95412 [13:08:24]ProducePacketName [13:08:24]name=ofd_packets/00095412 [13:08:24]NVStorageDeleteData [13:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:24]Read from MH i2c: E2 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 17 00 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 17 00 C0 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 07 [13:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:08:24]wFMCommunicate OK [13:08:24]requested_item fd.num is exist - process it [13:08:24]SAM_PROTO_GetFieldsCounters [13:08:24]wFMCommunicate request_size=4 [13:08:24]MH_SAM_APDU [13:08:24]CAPDU: 80 13 00 00 [13:08:24]Write to MH i2c: E2 08 00 C1 7D 80 13 00 00 00 00 00 00 BA [13:08:24]Write i2c OK [13:08:24]MH_I2C_Read... [13:08:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:24]Read from MH i2c: E2 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 62 00 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 62 00 C1 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B4 74 01 00 0E 04 04 00 48 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 8A [13:08:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B4 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:24]wFMCommunicate OK [13:08:24]SAM_PROTO_GetFieldsCounters done [13:08:24]requested_item shift.num is exist - process it [13:08:24]requested_item shift.opened is exist - process it [13:08:24]req_shift_opened [13:08:24]FM_GetShiftState [13:08:24]SAM_PROTO_GetShiftState [13:08:24]wFMCommunicate request_size=4 [13:08:24]MH_SAM_APDU [13:08:24]CAPDU: 80 13 01 00 [13:08:24]Write to MH i2c: E2 08 00 C2 7D 80 13 01 00 00 00 00 00 BC [13:08:24]Write i2c OK [13:08:24]MH_I2C_Read... [13:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:24]Read from MH i2c: E2 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 0E 00 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 0E 00 C2 7D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A1 [13:08:24]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:08:24]wFMCommunicate OK [13:08:24]SAM_PROTO_GetShiftState done [13:08:24]FM_GetShiftState done [13:08:24]req_shift_opened done [13:08:24]requested_item shift.open_date is exist - process it [13:08:24]req_shift_open_date [13:08:24]req_shift_open_date done [13:08:24]produce_requested_data done [13:08:24]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95412,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:08:24]process_action_free close_receipt [13:08:24]json_value_free [13:08:24]json_value_free done [13:08:24]process_json_proto returns [13:08:24]Send response to host [13:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95412,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:08:24]free response buf [13:08:24]execute_script done [13:08:24]execute_script returns [13:08:24]free content buf [13:08:24]Sock 9.Close socket [13:08:24]Sock 9.Thread stoped [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:10:56]accept exits with 8 [13:10:56]New connection [13:10:56]New thread 3066957156 created [13:10:56]Thread 3066813796 joined [13:10:56]Waiting for new connection... [13:10:56] Sock 8.Parse request [13:10:56]Sock 8.Check first char [13:10:56]Sock 8.First char is OK [13:10:56]request: POST /json_proto HTTP/1.0 [13:10:56]Method: POST [13:10:56]URL: /json_proto [13:10:56]Method is POST - this is cgi request [13:10:56]url: /json_proto [13:10:56]query_string will be loaded in cgi processing [13:10:56]execute_cgi json_proto POST (null) [13:10:56]execute_cgi path=json_proto method=POST [13:10:56]POST find Content-Length [13:10:56]Host: 172.17.62.67:8080 [13:10:56]Content-Length: 677 [13:10:56]Content-Type: application/json [13:10:56] [13:10:56]POST finish read [13:10:56]Found Content-Length = 677 [13:10:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196403", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:56]execute_script... [13:10: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)196403", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:56]POST & json_proto [13:10:56]process_json_proto [13:10:56]json parsed OK: [13:10:56]protocol is kg_v1.0 [13:10:56]action value=close_receipt [13:10:56]process_action close_receipt [13:10:56]cmd_close_receipt [13:10:56]MH_GetDate [13:10:56]Write to MH i2c: F0 00 00 C3 7D 2F [13:10:56]Write i2c OK [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: F0 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: F0 05 00 [13:10:56]MH_I2C_Read... [13:10:56]Read from MH i2c: F0 05 00 C3 7D 00 EB A5 F1 65 1A [13:10:56]GetLastDocTimeStamp 1710335312 [13:10:56]current date 1710335467 [13:10:56]FM_GetShiftState [13:10:56]SAM_PROTO_GetShiftState [13:10:56]wFMCommunicate request_size=4 [13:10:56]MH_SAM_APDU [13:10:56]CAPDU: 80 13 01 00 [13:10:56]Write to MH i2c: E2 08 00 C4 7D 80 13 01 00 00 00 00 00 BE [13:10:56]Write i2c OK [13:10:56]MH_I2C_Read... [13:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:57]Read from MH i2c: E2 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: E2 0E 00 [13:10:57]MH_I2C_Read... [13:10:57]Read from MH i2c: E2 0E 00 C4 7D 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A3 [13:10:57]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:10:57]wFMCommunicate OK [13:10:57]SAM_PROTO_GetShiftState done [13:10:57]FM_GetShiftState done [13:10:57]opened in 1710288279 [13:10:57]opened+sec_in_day 1710374679 [13:10:57]quantity*price = 60006 [13:10:57]sum+1 = 60008 [13:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 108 13.03.2024 13:11 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95413 ФПД: 149507265707047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131107&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95413&fm=149507265707047&tin=02508201610067®Number=0000000000090555&sum=60000 [13:10:58]StoreToDocumentArchive [13:10:58]shift 328 fd 95413 [13:10:58]save to /storage/0328/doc_00095413 [13:10:58]save last doc name /storage/0328/doc_00095413 to /storage/kkm_last_doc_name [13:10:58]save OK [13:10:58]Clear old archive folders... [13:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:58]tlvbuf is 01A340C0 [13:10:58]SAM_PROTO_ClearQueue [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 09 00 00 [13:10:58]Write to MH i2c: E2 08 00 D1 7D 80 09 00 00 00 00 00 00 C0 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 D1 7D 00 90 00 C2 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]SAM_PROTO_ClearQueue done [13:10:58]KKMCreateOFDPacket [13:10:58]OFDProtocolAddRootSTLVToBuf [13:10:58]FM_MakeSignedData [13:10:58]FM_MakeSignedData [13:10:58]SAM_PROTO_SignData [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 01 02 [13:10:58]Write to MH i2c: E2 08 00 D2 7D 80 0D 01 02 00 00 00 00 C8 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 D2 7D 00 90 00 C3 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=255 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 EB A5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 74 01 00 35 04 06 00 87 [13:10:58]Write to MH i2c: E2 02 01 D3 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 EB A5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 74 01 00 35 04 06 00 87 00 00 23 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 D3 7D 00 90 00 C4 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=10 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 02 02 05 F9 DF 76 BC 27 [13:10:58]Write to MH i2c: E2 0D 00 D4 7D 80 0D 02 02 05 00 F9 DF 76 BC 27 00 00 06 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 03 00 D4 7D 00 90 00 C5 [13:10:58]RAPDU: 90 00 [13:10:58]wFMCommunicate OK [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 0D 03 02 [13:10:58]Write to MH i2c: E2 08 00 D5 7D 80 0D 03 02 00 00 00 00 CD [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 0B 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 0B 00 D5 7D 00 06 98 E2 E4 FF 94 D1 10 90 00 A6 [13:10:58]RAPDU: 06 98 E2 E4 FF 94 D1 10 90 00 [13:10:58]wFMCommunicate OK [13:10:58]SAM_PROTO_SignData done [13:10:58]FM_MakeSignedData done [13:10:58]CreateOFDProtocolMessage [13:10:58]wFMCommunicate request_size=4 [13:10:58]MH_SAM_APDU [13:10:58]CAPDU: 80 11 00 00 [13:10:58]Write to MH i2c: E2 08 00 D6 7D 80 11 00 00 00 00 00 00 CD [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:58]Read from MH i2c: E2 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 17 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: E2 17 00 D6 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1D [13:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:10:58]wFMCommunicate OK [13:10:58]CreateOFDProtocolMessage done [13:10:58]OFDSenderStorePacket 95413 [13:10:58]StoreOFDPacket docnum=95413 [13:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C7 F2 07 01 01 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 EB A5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 74 01 00 35 04 06 00 87 F9 DF 76 BC 27 06 98 E2 E4 FF 94 D1 10 [13:10:58]CheckFolder [13:10:58]dirname=/storage/ofd_packets [13:10:58]CheckFolder done [13:10:58]ProducePacketName [13:10:58]name=ofd_packets/00095413 [13:10:58]NVStorageSaveData ofd_packets/00095413 [13:10:58]File name is /storage/ofd_packets/00095413 [13:10:58]Write 301 bytes [13:10:58]NVStorageSaveData done [13:10:58]OFDSenderStorePacket done [13:10:58]KKMCreateOFDPacket done [13:10:58]NVStorageSaveData kkm_last_timestamp [13:10:58]File name is /storage/kkm_last_timestamp [13:10:58]Write 4 bytes [13:10:58]NVStorageSaveData done [13:10:58]ExternCall_PrintAddStr [13:10:58]wPrintStart [13:10:58]Write to MH i2c: 01 00 00 D7 7D 54 [13:10:58]Write i2c OK [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 07 00 [13:10:58]MH_I2C_Read... [13:10:58]Read from MH i2c: 01 07 00 D7 7D 00 80 00 00 00 FF 0F E9 [13:10:58]RasterBufferAndPrint [13:10:58]line Счет N : (1)196403 [13:10:58]line ИНН: 02508201610067 [13:10:58]line Контрольно-Кассовый Чек [13:10:58]line ПРОДАЖА [13:10:58]line ТРК (МРК, ГНК) : 42 [13:10:58]line Товар: 2710124130 [13:10:58]line Аи-92-К-5 [13:10:58]line 9.540 * 62.90 [13:10:58]line = 600.07 [13:10:58]line НДС 12% НСП 1% [13:10:58]line > о реализуемом товаре [13:10:58]line ОКРУГЛЕНИЕ: -0.07 [13:10:58]line ИТОГО: 600.00 [13:10:58]line Внесено: 600.00 [13:10:58]line СДАЧА: 0.00 [13:10:58]line НСП 1% : 5.31 [13:10:58]line НДС 12% : 63.72 [13:10:58]line Наличными: 600.00 [13:10:58]line Безнал.: 0.00 [13:10:58]line Место: АЗС № 6 "Партнер Нефть" [13:10:58]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:10:58]line СНО: Общий режим [13:10:58]line Чек 108 13.03.2024 13:11 [13:10:58]line Смена: 328 ФФД: 1.0 [13:10:58]line ЗНМ: 0300000009 [13:10:58]line РНМ: 0000000000090555 [13:10:58]line Версия ККМ: 001 [13:10:58]line ФМ: 0000000000874811 [13:10:58]line ФД: 95413 [13:10:58]line ФПД: 149507265707047 [13:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131107&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95413&fm=149507265707047&tin=02508201610067®Number=0000000000090555&sum=60000 [13:10:59]OFD Sender: Processing packet 95413 [packets to send 30, broken 29] [13:10:59]ProducePacketName [13:10:59]name=ofd_packets/00095413 [13:10:59]OFD Sender: To server: pG, [13:10:59]CommunicateWithHost lk.salyk.kg:30040 [13:10:59]ConnectInit lk.salyk.kg [13:10:59]written 0, free lines is 4095 [13:10:59]Connected sock=10 [13:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C7 F2 07 01 01 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 EB A5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 74 01 00 35 04 06 00 87 F9 DF 76 BC 27 06 98 E2 E4 FF 94 D1 10 [13:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DB E4 47 00 94 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B5 74 01 00 F4 03 04 00 3E 51 F1 65 B6 04 01 00 00 32 44 26 67 94 54 E1 B8 [13:10:59]CommunicateWithHost err = 0 [13:10:59]CheckOFDResponse [13:10:59]1017 (14) - 77093643461234 [13:10:59]1041 (16) - 0000000000874811 [13:10:59]1040 (4) - 95413 [13:10:59]1012 (4) - 13.03.2024 07:09 [13:10:59]1206 (1) - 0 [13:10:59]OFD Sender: Remove packet 95413 [13:10:59]ProducePacketName [13:10:59]name=ofd_packets/00095413 [13:10:59]NVStorageDeleteData [13:10:59]Write to MH i2c: 01 00 00 02 7E 80 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: 01 07 00 02 7E 00 80 00 00 00 5A 0D 6E [13:10:59]RasterBufferAndPrint [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]line [13:10:59]written 0, free lines is 3424 [13:10:59]process_action close_receipt done [13:10:59]requested_data is exist [13:10:59]produce_requested_data [13:10:59]requested_item fm.sn is exist - process it [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 11 00 00 [13:10:59]Write to MH i2c: E2 08 00 09 7E 80 11 00 00 00 00 00 00 01 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 17 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 17 00 09 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 51 [13:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:10:59]wFMCommunicate OK [13:10:59]requested_item fd.num is exist - process it [13:10:59]SAM_PROTO_GetFieldsCounters [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 13 00 00 [13:10:59]Write to MH i2c: E2 08 00 0A 7E 80 13 00 00 00 00 00 00 04 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 62 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 62 00 0A 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B5 74 01 00 0E 04 04 00 48 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 D8 [13:10:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B5 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:59]wFMCommunicate OK [13:10:59]SAM_PROTO_GetFieldsCounters done [13:10:59]requested_item shift.num is exist - process it [13:10:59]requested_item shift.opened is exist - process it [13:10:59]req_shift_opened [13:10:59]FM_GetShiftState [13:10:59]SAM_PROTO_GetShiftState [13:10:59]wFMCommunicate request_size=4 [13:10:59]MH_SAM_APDU [13:10:59]CAPDU: 80 13 01 00 [13:10:59]Write to MH i2c: E2 08 00 0B 7E 80 13 01 00 00 00 00 00 06 [13:10:59]Write i2c OK [13:10:59]MH_I2C_Read... [13:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:59]Read from MH i2c: E2 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 0E 00 [13:10:59]MH_I2C_Read... [13:10:59]Read from MH i2c: E2 0E 00 0B 7E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 EB [13:10:59]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:10:59]wFMCommunicate OK [13:10:59]SAM_PROTO_GetShiftState done [13:10:59]FM_GetShiftState done [13:10:59]req_shift_opened done [13:10:59]requested_item shift.open_date is exist - process it [13:10:59]req_shift_open_date [13:10:59]req_shift_open_date done [13:10:59]produce_requested_data done [13:10:59]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95413,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:10:59]process_action_free close_receipt [13:10:59]json_value_free [13:10:59]json_value_free done [13:10:59]process_json_proto returns [13:10:59]Send response to host [13:10:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95413,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:10:59]free response buf [13:10:59]execute_script done [13:10:59]execute_script returns [13:10:59]free content buf [13:10:59]Sock 8.Close socket [13:10:59]Sock 8.Thread stoped [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:20]accept exits with 9 [13:13:20]New connection [13:13:20]New thread 3066813796 created [13:13:20]Thread 3066957156 joined [13:13:20]Waiting for new connection... [13:13:20] Sock 9.Parse request [13:13:20]Sock 9.Check first char [13:13:20]Sock 9.First char is OK [13:13:20]request: POST /json_proto HTTP/1.0 [13:13:20]Method: POST [13:13:20]URL: /json_proto [13:13:20]Method is POST - this is cgi request [13:13:20]url: /json_proto [13:13:20]query_string will be loaded in cgi processing [13:13:20]execute_cgi json_proto POST (null) [13:13:20]execute_cgi path=json_proto method=POST [13:13:20]POST find Content-Length [13:13:20]Host: 172.17.62.67:8080 [13:13:20]Content-Length: 801 [13:13:20]Content-Type: application/json [13:13:20] [13:13:20]POST finish read [13:13:20]Found Content-Length = 801 [13:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:20]execute_script... [13:13:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:20]POST & json_proto [13:13:20]process_json_proto [13:13:20]json parsed OK: [13:13:20]protocol is kg_v1.0 [13:13:20]action value=close_receipt [13:13:20]process_action close_receipt [13:13:20]cmd_close_receipt [13:13:20]MH_GetDate [13:13:20]Write to MH i2c: F0 00 00 0C 7E 79 [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 05 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: F0 05 00 0C 7E 00 7B A6 F1 65 F5 [13:13:20]GetLastDocTimeStamp 1710335467 [13:13:20]current date 1710335611 [13:13:20]FM_GetShiftState [13:13:20]SAM_PROTO_GetShiftState [13:13:20]wFMCommunicate request_size=4 [13:13:20]MH_SAM_APDU [13:13:20]CAPDU: 80 13 01 00 [13:13:20]Write to MH i2c: E2 08 00 0D 7E 80 13 01 00 00 00 00 00 08 [13:13:20]Write i2c OK [13:13:20]MH_I2C_Read... [13:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:20]Read from MH i2c: E2 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 0E 00 [13:13:20]MH_I2C_Read... [13:13:20]Read from MH i2c: E2 0E 00 0D 7E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 ED [13:13:20]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:13:20]wFMCommunicate OK [13:13:20]SAM_PROTO_GetShiftState done [13:13:20]FM_GetShiftState done [13:13:20]opened in 1710288279 [13:13:20]opened+sec_in_day 1710374679 [13:13:20]quantity*price = 100003 [13:13:20]sum+1 = 100005 [13:13:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.04 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 109 13.03.2024 13:13 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95414 ФПД: 70262062879115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131331&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95414&fm=70262062879115&tin=02508201610067®Number=0000000000090555&sum=100004 [13:13:21]StoreToDocumentArchive [13:13:21]shift 328 fd 95414 [13:13:21]save to /storage/0328/doc_00095414 [13:13:21]save last doc name /storage/0328/doc_00095414 to /storage/kkm_last_doc_name [13:13:21]save OK [13:13:21]Clear old archive folders... [13:13:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:13:21]tlvbuf is 01AF2400 [13:13:21]SAM_PROTO_ClearQueue [13:13:21]wFMCommunicate request_size=4 [13:13:21]MH_SAM_APDU [13:13:21]CAPDU: 80 09 00 00 [13:13:21]Write to MH i2c: E2 08 00 1A 7E 80 09 00 00 00 00 00 00 0A [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:21]Read from MH i2c: E2 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 03 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 03 00 1A 7E 00 90 00 0C [13:13:21]RAPDU: 90 00 [13:13:21]wFMCommunicate OK [13:13:21]SAM_PROTO_ClearQueue done [13:13:21]KKMCreateOFDPacket [13:13:21]OFDProtocolAddRootSTLVToBuf [13:13:21]FM_MakeSignedData [13:13:21]FM_MakeSignedData [13:13:21]SAM_PROTO_SignData [13:13:21]wFMCommunicate request_size=4 [13:13:21]MH_SAM_APDU [13:13:21]CAPDU: 80 0D 01 02 [13:13:21]Write to MH i2c: E2 08 00 1B 7E 80 0D 01 02 00 00 00 00 12 [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:21]Read from MH i2c: E2 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 03 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 03 00 1B 7E 00 90 00 0D [13:13:21]RAPDU: 90 00 [13:13:21]wFMCommunicate OK [13:13:21]wFMCommunicate request_size=255 [13:13:21]MH_SAM_APDU [13:13:21]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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 7B A6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 74 01 00 35 04 06 00 [13:13:21]Write to MH i2c: E2 02 01 1C 7E 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 7B A6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 74 01 00 35 04 06 00 00 00 18 [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 03 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 03 00 1C 7E 00 90 00 0E [13:13:22]RAPDU: 90 00 [13:13:22]wFMCommunicate OK [13:13:22]wFMCommunicate request_size=11 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 0D 02 02 06 3F E7 29 4C 91 8B [13:13:22]Write to MH i2c: E2 0E 00 1D 7E 80 0D 02 02 06 00 3F E7 29 4C 91 8B 00 00 D8 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 03 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 03 00 1D 7E 00 90 00 0F [13:13:22]RAPDU: 90 00 [13:13:22]wFMCommunicate OK [13:13:22]wFMCommunicate request_size=4 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 0D 03 02 [13:13:22]Write to MH i2c: E2 08 00 1E 7E 80 0D 03 02 00 00 00 00 17 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 0B 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 0B 00 1E 7E 00 CD 33 59 18 33 FD 4B 22 90 00 26 [13:13:22]RAPDU: CD 33 59 18 33 FD 4B 22 90 00 [13:13:22]wFMCommunicate OK [13:13:22]SAM_PROTO_SignData done [13:13:22]FM_MakeSignedData done [13:13:22]CreateOFDProtocolMessage [13:13:22]wFMCommunicate request_size=4 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 11 00 00 [13:13:22]Write to MH i2c: E2 08 00 1F 7E 80 11 00 00 00 00 00 00 17 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 17 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 17 00 1F 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 67 [13:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:13:22]wFMCommunicate OK [13:13:22]CreateOFDProtocolMessage done [13:13:22]OFDSenderStorePacket 95414 [13:13:22]StoreOFDPacket docnum=95414 [13:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 AE 35 08 01 44 18 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 7B A6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 74 01 00 35 04 06 00 3F E7 29 4C 91 8B CD 33 59 18 33 FD 4B 22 [13:13:22]CheckFolder [13:13:22]dirname=/storage/ofd_packets [13:13:22]CheckFolder done [13:13:22]ProducePacketName [13:13:22]name=ofd_packets/00095414 [13:13:22]NVStorageSaveData ofd_packets/00095414 [13:13:22]File name is /storage/ofd_packets/00095414 [13:13:22]Write 302 bytes [13:13:22]NVStorageSaveData done [13:13:22]OFDSenderStorePacket done [13:13:22]KKMCreateOFDPacket done [13:13:22]NVStorageSaveData kkm_last_timestamp [13:13:22]File name is /storage/kkm_last_timestamp [13:13:22]Write 4 bytes [13:13:22]NVStorageSaveData done [13:13:22]ExternCall_PrintAddStr [13:13:22]wPrintStart [13:13:22]Write to MH i2c: 01 00 00 20 7E 9E [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: 01 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: 01 07 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: 01 07 00 20 7E 00 80 00 00 00 FF 0F 33 [13:13:22]RasterBufferAndPrint [13:13:22]line Счет N : (1)196404 [13:13:22]line ИНН: 02508201610067 [13:13:22]line Контрольно-Кассовый Чек [13:13:22]line ПРОДАЖА [13:13:22]line ТРК (МРК, ГНК) : 23 [13:13:22]line Товар: 2710124130 [13:13:22]line SUPER 92-К-5 [13:13:22]line 15.650 * 63.90 [13:13:22]line = 1000.04 [13:13:22]line НДС 12% НСП 1% [13:13:22]line > о реализуемом товаре [13:13:22]line ИТОГО: 1000.04 [13:13:22]line НСП 1% : 8.85 [13:13:22]line НДС 12% : 106.20 [13:13:22]line Наличными: 0.00 [13:13:22]line Безнал.: 1000.04 [13:13:22]line Место: АЗС № 6 "Партнер Нефть" [13:13:22]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:13:22]line СНО: Общий режим [13:13:22]line Чек 109 13.03.2024 13:13 [13:13:22]line Смена: 328 ФФД: 1.0 [13:13:22]line ЗНМ: 0300000009 [13:13:22]line РНМ: 0000000000090555 [13:13:22]line Версия ККМ: 001 [13:13:22]line Платежная система: О! деньги [13:13:22]line ФМ: 0000000000874811 [13:13:22]line ФД: 95414 [13:13:22]line ФПД: 70262062879115 [13:13:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131331&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95414&fm=70262062879115&tin=02508201610067®Number=0000000000090555&sum=100004 [13:13:22]OFD Sender: Processing packet 95414 [packets to send 30, broken 29] [13:13:22]ProducePacketName [13:13:22]name=ofd_packets/00095414 [13:13:22]OFD Sender: To server: pG, [13:13:22]CommunicateWithHost lk.salyk.kg:30040 [13:13:22]ConnectInit lk.salyk.kg [13:13:22]written 0, free lines is 4095 [13:13:22]Connected sock=10 [13:13:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 AE 35 08 01 44 18 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 7B A6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B6 74 01 00 35 04 06 00 3F E7 29 4C 91 8B CD 33 59 18 33 FD 4B 22 [13:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 24 59 47 00 E5 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 34 38 31 31 10 04 04 00 B6 74 01 00 F4 03 04 00 CE 51 F1 65 B6 04 01 00 00 EC 90 9B 70 A4 52 30 74 [13:13:22]CommunicateWithHost err = 0 [13:13:22]CheckOFDResponse [13:13:22]1017 (14) - 77093643461234 [13:13:22]1041 (16) - 0000000000874811 [13:13:22]1040 (4) - 95414 [13:13:22]1012 (4) - 13.03.2024 07:12 [13:13:22]1206 (1) - 0 [13:13:22]OFD Sender: Remove packet 95414 [13:13:22]ProducePacketName [13:13:22]name=ofd_packets/00095414 [13:13:22]NVStorageDeleteData [13:13:23]Write to MH i2c: 01 00 00 4A 7E C8 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: 01 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: 01 07 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: 01 07 00 4A 7E 00 80 00 00 00 65 0D C1 [13:13:23]RasterBufferAndPrint [13:13:23]line [13:13:23]line [13:13:23]line [13:13:23]line [13:13:23]line [13:13:23]written 0, free lines is 3435 [13:13:23]process_action close_receipt done [13:13:23]requested_data is exist [13:13:23]produce_requested_data [13:13:23]requested_item fm.sn is exist - process it [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 11 00 00 [13:13:23]Write to MH i2c: E2 08 00 51 7E 80 11 00 00 00 00 00 00 49 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 17 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 17 00 51 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 99 [13:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:13:23]wFMCommunicate OK [13:13:23]requested_item fd.num is exist - process it [13:13:23]SAM_PROTO_GetFieldsCounters [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 13 00 00 [13:13:23]Write to MH i2c: E2 08 00 52 7E 80 13 00 00 00 00 00 00 4C [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 62 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 62 00 52 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B6 74 01 00 0E 04 04 00 48 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 24 [13:13:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B6 74 01 00 0E 04 04 00 48 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 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_GetFieldsCounters done [13:13:23]requested_item shift.num is exist - process it [13:13:23]requested_item shift.opened is exist - process it [13:13:23]req_shift_opened [13:13:23]FM_GetShiftState [13:13:23]SAM_PROTO_GetShiftState [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 13 01 00 [13:13:23]Write to MH i2c: E2 08 00 53 7E 80 13 01 00 00 00 00 00 4E [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0E 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0E 00 53 7E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 33 [13:13:23]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_GetShiftState done [13:13:23]FM_GetShiftState done [13:13:23]req_shift_opened done [13:13:23]requested_item shift.open_date is exist - process it [13:13:23]req_shift_open_date [13:13:23]req_shift_open_date done [13:13:23]produce_requested_data done [13:13:23]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95414,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:13:23]process_action_free close_receipt [13:13:23]json_value_free [13:13:23]json_value_free done [13:13:23]process_json_proto returns [13:13:23]Send response to host [13:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95414,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:13:23]free response buf [13:13:23]execute_script done [13:13:23]execute_script returns [13:13:23]free content buf [13:13:23]Sock 9.Close socket [13:13:23]Sock 9.Thread stoped [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:19]accept exits with 8 [13:14:19]New connection [13:14:19]New thread 3066957156 created [13:14:19]Thread 3066813796 joined [13:14:19]Waiting for new connection... [13:14:19] Sock 8.Parse request [13:14:19]Sock 8.Check first char [13:14:19]Sock 8.First char is OK [13:14:19]request: POST /json_proto HTTP/1.0 [13:14:19]Method: POST [13:14:19]URL: /json_proto [13:14:19]Method is POST - this is cgi request [13:14:19]url: /json_proto [13:14:19]query_string will be loaded in cgi processing [13:14:19]execute_cgi json_proto POST (null) [13:14:19]execute_cgi path=json_proto method=POST [13:14:19]POST find Content-Length [13:14:19]Host: 172.17.62.67:8080 [13:14:19]Content-Length: 817 [13:14:19]Content-Type: application/json [13:14:19] [13:14:19]POST finish read [13:14:19]Found Content-Length = 817 [13:14:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196405", "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" : 62.90, "quantity" : 10.000, "sum" : 629.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" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:19]execute_script... [13:14:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196405", "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" : 62.90, "quantity" : 10.000, "sum" : 629.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" : 629.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:19]POST & json_proto [13:14:19]process_json_proto [13:14:19]json parsed OK: [13:14:19]protocol is kg_v1.0 [13:14:19]action value=close_receipt [13:14:19]process_action close_receipt [13:14:19]cmd_close_receipt [13:14:19]MH_GetDate [13:14:19]Write to MH i2c: F0 00 00 54 7E C1 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: F0 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: F0 05 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: F0 05 00 54 7E 00 B6 A6 F1 65 78 [13:14:19]GetLastDocTimeStamp 1710335611 [13:14:19]current date 1710335670 [13:14:19]FM_GetShiftState [13:14:19]SAM_PROTO_GetShiftState [13:14:19]wFMCommunicate request_size=4 [13:14:19]MH_SAM_APDU [13:14:19]CAPDU: 80 13 01 00 [13:14:19]Write to MH i2c: E2 08 00 55 7E 80 13 01 00 00 00 00 00 50 [13:14:19]Write i2c OK [13:14:19]MH_I2C_Read... [13:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:19]Read from MH i2c: E2 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 0E 00 [13:14:19]MH_I2C_Read... [13:14:19]Read from MH i2c: E2 0E 00 55 7E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 35 [13:14:19]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:14:19]wFMCommunicate OK [13:14:19]SAM_PROTO_GetShiftState done [13:14:19]FM_GetShiftState done [13:14:19]opened in 1710288279 [13:14:19]opened+sec_in_day 1710374679 [13:14:19]quantity*price = 62900 [13:14:19]sum+1 = 62901 [13:14:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 629.00 НСП 1% : 5.57 НДС 12% : 66.80 Наличными: 0.00 Безнал.: 629.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 110 13.03.2024 13:14 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95415 ФПД: 240300234923029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131430&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95415&fm=240300234923029&tin=02508201610067®Number=0000000000090555&sum=62900 [13:14:20]StoreToDocumentArchive [13:14:20]shift 328 fd 95415 [13:14:20]save to /storage/0328/doc_00095415 [13:14:20]save last doc name /storage/0328/doc_00095415 to /storage/kkm_last_doc_name [13:14:20]save OK [13:14:20]Clear old archive folders... [13:14:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:20]tlvbuf is 01AF3030 [13:14:20]SAM_PROTO_ClearQueue [13:14:20]wFMCommunicate request_size=4 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 09 00 00 [13:14:20]Write to MH i2c: E2 08 00 62 7E 80 09 00 00 00 00 00 00 52 [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 03 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 03 00 62 7E 00 90 00 54 [13:14:20]RAPDU: 90 00 [13:14:20]wFMCommunicate OK [13:14:20]SAM_PROTO_ClearQueue done [13:14:20]KKMCreateOFDPacket [13:14:20]OFDProtocolAddRootSTLVToBuf [13:14:20]FM_MakeSignedData [13:14:20]FM_MakeSignedData [13:14:20]SAM_PROTO_SignData [13:14:20]wFMCommunicate request_size=4 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 0D 01 02 [13:14:20]Write to MH i2c: E2 08 00 63 7E 80 0D 01 02 00 00 00 00 5A [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 03 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 03 00 63 7E 00 90 00 55 [13:14:20]RAPDU: 90 00 [13:14:20]wFMCommunicate OK [13:14:20]wFMCommunicate request_size=255 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 B6 A6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 74 01 00 35 04 06 00 DA [13:14:20]Write to MH i2c: E2 02 01 64 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 B6 A6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 74 01 00 35 04 06 00 DA 00 00 0C [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 03 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 03 00 64 7E 00 90 00 56 [13:14:20]RAPDU: 90 00 [13:14:20]wFMCommunicate OK [13:14:20]wFMCommunicate request_size=10 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 0D 02 02 05 8D 42 24 5C 15 [13:14:20]Write to MH i2c: E2 0D 00 65 7E 80 0D 02 02 05 00 8D 42 24 5C 15 00 00 CB [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 03 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 03 00 65 7E 00 90 00 57 [13:14:20]RAPDU: 90 00 [13:14:20]wFMCommunicate OK [13:14:20]wFMCommunicate request_size=4 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 0D 03 02 [13:14:20]Write to MH i2c: E2 08 00 66 7E 80 0D 03 02 00 00 00 00 5F [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 0B 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 0B 00 66 7E 00 A5 60 D2 C3 C0 2F AE 16 90 00 AD [13:14:20]RAPDU: A5 60 D2 C3 C0 2F AE 16 90 00 [13:14:20]wFMCommunicate OK [13:14:20]SAM_PROTO_SignData done [13:14:20]FM_MakeSignedData done [13:14:20]CreateOFDProtocolMessage [13:14:20]wFMCommunicate request_size=4 [13:14:20]MH_SAM_APDU [13:14:20]CAPDU: 80 11 00 00 [13:14:20]Write to MH i2c: E2 08 00 67 7E 80 11 00 00 00 00 00 00 5F [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:20]Read from MH i2c: E2 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 17 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: E2 17 00 67 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AF [13:14:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:14:20]wFMCommunicate OK [13:14:20]CreateOFDProtocolMessage done [13:14:20]OFDSenderStorePacket 95415 [13:14:20]StoreOFDPacket docnum=95415 [13:14:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 94 CD 07 01 2D CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 B6 A6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 74 01 00 35 04 06 00 DA 8D 42 24 5C 15 A5 60 D2 C3 C0 2F AE 16 [13:14:20]CheckFolder [13:14:20]dirname=/storage/ofd_packets [13:14:20]CheckFolder done [13:14:20]ProducePacketName [13:14:20]name=ofd_packets/00095415 [13:14:20]NVStorageSaveData ofd_packets/00095415 [13:14:20]File name is /storage/ofd_packets/00095415 [13:14:20]Write 301 bytes [13:14:20]NVStorageSaveData done [13:14:20]OFDSenderStorePacket done [13:14:20]KKMCreateOFDPacket done [13:14:20]NVStorageSaveData kkm_last_timestamp [13:14:20]File name is /storage/kkm_last_timestamp [13:14:20]Write 4 bytes [13:14:20]NVStorageSaveData done [13:14:20]ExternCall_PrintAddStr [13:14:20]wPrintStart [13:14:20]Write to MH i2c: 01 00 00 68 7E E6 [13:14:20]Write i2c OK [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: 01 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: 01 07 00 [13:14:20]MH_I2C_Read... [13:14:20]Read from MH i2c: 01 07 00 68 7E 00 80 00 00 00 FF 0F 7B [13:14:20]RasterBufferAndPrint [13:14:20]line Счет N : (1)196405 [13:14:20]line ИНН: 02508201610067 [13:14:20]line Контрольно-Кассовый Чек [13:14:20]line ПРОДАЖА [13:14:20]line ТРК (МРК, ГНК) : 42 [13:14:20]line Товар: 2710124130 [13:14:20]line Аи-92-К-5 [13:14:20]line 10.000 * 62.90 [13:14:20]line = 629.00 [13:14:20]line НДС 12% НСП 1% [13:14:20]line > о реализуемом товаре [13:14:20]line ИТОГО: 629.00 [13:14:20]line НСП 1% : 5.57 [13:14:20]line НДС 12% : 66.80 [13:14:20]line Наличными: 0.00 [13:14:20]line Безнал.: 629.00 [13:14:20]line Место: АЗС № 6 "Партнер Нефть" [13:14:20]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:14:20]line СНО: Общий режим [13:14:20]line Чек 110 13.03.2024 13:14 [13:14:20]line Смена: 328 ФФД: 1.0 [13:14:20]line ЗНМ: 0300000009 [13:14:20]line РНМ: 0000000000090555 [13:14:20]line Версия ККМ: 001 [13:14:20]line Платежная система: Бакай Банк [13:14:20]line ФМ: 0000000000874811 [13:14:20]line ФД: 95415 [13:14:20]line ФПД: 240300234923029 [13:14:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131430&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95415&fm=240300234923029&tin=02508201610067®Number=0000000000090555&sum=62900 [13:14:21]OFD Sender: Processing packet 95415 [packets to send 30, broken 29] [13:14:21]ProducePacketName [13:14:21]name=ofd_packets/00095415 [13:14:21]OFD Sender: To server: pG, [13:14:21]CommunicateWithHost lk.salyk.kg:30040 [13:14:21]ConnectInit lk.salyk.kg [13:14:21]written 0, free lines is 4095 [13:14:21]Connected sock=10 [13:14:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 94 CD 07 01 2D CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 B4 F5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 F5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 F5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 B6 A6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 74 01 00 35 04 06 00 DA 8D 42 24 5C 15 A5 60 D2 C3 C0 2F AE 16 [13:14:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 90 4D 47 00 76 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B7 74 01 00 F4 03 04 00 09 52 F1 65 B6 04 01 00 00 C8 07 CA 1E 54 15 E6 81 [13:14:21]CommunicateWithHost err = 0 [13:14:21]CheckOFDResponse [13:14:21]1017 (14) - 77093643461234 [13:14:21]1041 (16) - 0000000000874811 [13:14:21]1040 (4) - 95415 [13:14:21]1012 (4) - 13.03.2024 07:13 [13:14:21]1206 (1) - 0 [13:14:21]OFD Sender: Remove packet 95415 [13:14:21]ProducePacketName [13:14:21]name=ofd_packets/00095415 [13:14:21]NVStorageDeleteData [13:14:21]Write to MH i2c: 01 00 00 92 7E 10 [13:14:21]Write i2c OK [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: 01 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: 01 07 00 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: 01 07 00 92 7E 00 80 00 00 00 69 0D 0D [13:14:21]RasterBufferAndPrint [13:14:21]line [13:14:21]line [13:14:21]line [13:14:21]line [13:14:21]line [13:14:21]written 0, free lines is 3439 [13:14:21]process_action close_receipt done [13:14:21]requested_data is exist [13:14:21]produce_requested_data [13:14:21]requested_item fm.sn is exist - process it [13:14:21]wFMCommunicate request_size=4 [13:14:21]MH_SAM_APDU [13:14:21]CAPDU: 80 11 00 00 [13:14:21]Write to MH i2c: E2 08 00 99 7E 80 11 00 00 00 00 00 00 91 [13:14:21]Write i2c OK [13:14:21]MH_I2C_Read... [13:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:21]Read from MH i2c: E2 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 17 00 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 17 00 99 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E1 [13:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:14:21]wFMCommunicate OK [13:14:21]requested_item fd.num is exist - process it [13:14:21]SAM_PROTO_GetFieldsCounters [13:14:21]wFMCommunicate request_size=4 [13:14:21]MH_SAM_APDU [13:14:21]CAPDU: 80 13 00 00 [13:14:21]Write to MH i2c: E2 08 00 9A 7E 80 13 00 00 00 00 00 00 94 [13:14:21]Write i2c OK [13:14:21]MH_I2C_Read... [13:14:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:21]Read from MH i2c: E2 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 62 00 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 62 00 9A 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B7 74 01 00 0E 04 04 00 48 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 70 [13:14:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B7 74 01 00 0E 04 04 00 48 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 [13:14:21]wFMCommunicate OK [13:14:21]SAM_PROTO_GetFieldsCounters done [13:14:21]requested_item shift.num is exist - process it [13:14:21]requested_item shift.opened is exist - process it [13:14:21]req_shift_opened [13:14:21]FM_GetShiftState [13:14:21]SAM_PROTO_GetShiftState [13:14:21]wFMCommunicate request_size=4 [13:14:21]MH_SAM_APDU [13:14:21]CAPDU: 80 13 01 00 [13:14:21]Write to MH i2c: E2 08 00 9B 7E 80 13 01 00 00 00 00 00 96 [13:14:21]Write i2c OK [13:14:21]MH_I2C_Read... [13:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:21]Read from MH i2c: E2 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 0E 00 [13:14:21]MH_I2C_Read... [13:14:21]Read from MH i2c: E2 0E 00 9B 7E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 7B [13:14:21]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:14:21]wFMCommunicate OK [13:14:21]SAM_PROTO_GetShiftState done [13:14:21]FM_GetShiftState done [13:14:21]req_shift_opened done [13:14:21]requested_item shift.open_date is exist - process it [13:14:21]req_shift_open_date [13:14:21]req_shift_open_date done [13:14:21]produce_requested_data done [13:14:21]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95415,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:14:21]process_action_free close_receipt [13:14:21]json_value_free [13:14:21]json_value_free done [13:14:21]process_json_proto returns [13:14:21]Send response to host [13:14:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95415,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:14:21]free response buf [13:14:21]execute_script done [13:14:21]execute_script returns [13:14:21]free content buf [13:14:21]Sock 8.Close socket [13:14:21]Sock 8.Thread stoped [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:06]accept exits with 9 [13:18:06]New connection [13:18:06]New thread 3066813796 created [13:18:06]Thread 3066957156 joined [13:18:06]Waiting for new connection... [13:18:06] Sock 9.Parse request [13:18:06]Sock 9.Check first char [13:18:06]Sock 9.First char is OK [13:18:06]request: POST /json_proto HTTP/1.0 [13:18:06]Method: POST [13:18:06]URL: /json_proto [13:18:06]Method is POST - this is cgi request [13:18:06]url: /json_proto [13:18:06]query_string will be loaded in cgi processing [13:18:06]execute_cgi json_proto POST (null) [13:18:06]execute_cgi path=json_proto method=POST [13:18:06]POST find Content-Length [13:18:06]Host: 172.17.62.67:8080 [13:18:06]Content-Length: 682 [13:18:06]Content-Type: application/json [13:18:06] [13:18:06]POST finish read [13:18:06]Found Content-Length = 682 [13:18:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196406", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:06]execute_script... [13:18:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196406", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:06]POST & json_proto [13:18:06]process_json_proto [13:18:06]json parsed OK: [13:18:06]protocol is kg_v1.0 [13:18:06]action value=close_receipt [13:18:06]process_action close_receipt [13:18:06]cmd_close_receipt [13:18:06]MH_GetDate [13:18:06]Write to MH i2c: F0 00 00 9C 7E 09 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: F0 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: F0 05 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: F0 05 00 9C 7E 00 99 A7 F1 65 A4 [13:18:06]GetLastDocTimeStamp 1710335670 [13:18:06]current date 1710335897 [13:18:06]FM_GetShiftState [13:18:06]SAM_PROTO_GetShiftState [13:18:06]wFMCommunicate request_size=4 [13:18:06]MH_SAM_APDU [13:18:06]CAPDU: 80 13 01 00 [13:18:06]Write to MH i2c: E2 08 00 9D 7E 80 13 01 00 00 00 00 00 98 [13:18:06]Write i2c OK [13:18:06]MH_I2C_Read... [13:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:06]Read from MH i2c: E2 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 0E 00 [13:18:06]MH_I2C_Read... [13:18:06]Read from MH i2c: E2 0E 00 9D 7E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 7D [13:18:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:18:06]wFMCommunicate OK [13:18:06]SAM_PROTO_GetShiftState done [13:18:06]FM_GetShiftState done [13:18:06]opened in 1710288279 [13:18:06]opened+sec_in_day 1710374679 [13:18:06]quantity*price = 100011 [13:18:06]sum+1 = 100012 [13:18:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 111 13.03.2024 13:18 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95416 ФПД: 144778190027414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131817&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95416&fm=144778190027414&tin=02508201610067®Number=0000000000090555&sum=100000 [13:18:07]StoreToDocumentArchive [13:18:07]shift 328 fd 95416 [13:18:07]save to /storage/0328/doc_00095416 [13:18:07]save last doc name /storage/0328/doc_00095416 to /storage/kkm_last_doc_name [13:18:07]save OK [13:18:07]Clear old archive folders... [13:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:07]tlvbuf is 01B37440 [13:18:07]SAM_PROTO_ClearQueue [13:18:07]wFMCommunicate request_size=4 [13:18:07]MH_SAM_APDU [13:18:07]CAPDU: 80 09 00 00 [13:18:07]Write to MH i2c: E2 08 00 AA 7E 80 09 00 00 00 00 00 00 9A [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 [13:18:07]MH_I2C_Read... [13:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:07]Read from MH i2c: E2 03 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 03 00 AA 7E 00 90 00 9C [13:18:07]RAPDU: 90 00 [13:18:07]wFMCommunicate OK [13:18:07]SAM_PROTO_ClearQueue done [13:18:07]KKMCreateOFDPacket [13:18:07]OFDProtocolAddRootSTLVToBuf [13:18:07]FM_MakeSignedData [13:18:07]FM_MakeSignedData [13:18:07]SAM_PROTO_SignData [13:18:07]wFMCommunicate request_size=4 [13:18:07]MH_SAM_APDU [13:18:07]CAPDU: 80 0D 01 02 [13:18:07]Write to MH i2c: E2 08 00 AB 7E 80 0D 01 02 00 00 00 00 A2 [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:07]OFD Sender: No OFD packet to send [13:18:07]Read from MH i2c: E2 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 03 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 03 00 AB 7E 00 90 00 9D [13:18:07]RAPDU: 90 00 [13:18:07]wFMCommunicate OK [13:18:07]wFMCommunicate request_size=255 [13:18:07]MH_SAM_APDU [13:18:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 99 A7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 74 01 00 35 04 06 00 83 [13:18:07]Write to MH i2c: E2 02 01 AC 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 99 A7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 74 01 00 35 04 06 00 83 00 00 48 [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:07]Read from MH i2c: E2 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 03 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 03 00 AC 7E 00 90 00 9E [13:18:07]RAPDU: 90 00 [13:18:07]wFMCommunicate OK [13:18:07]wFMCommunicate request_size=10 [13:18:07]MH_SAM_APDU [13:18:07]CAPDU: 80 0D 02 02 05 AC CC 96 7A 96 [13:18:07]Write to MH i2c: E2 0D 00 AD 7E 80 0D 02 02 05 00 AC CC 96 7A 96 00 00 CD [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:07]Read from MH i2c: E2 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 03 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 03 00 AD 7E 00 90 00 9F [13:18:07]RAPDU: 90 00 [13:18:07]wFMCommunicate OK [13:18:07]wFMCommunicate request_size=4 [13:18:07]MH_SAM_APDU [13:18:07]CAPDU: 80 0D 03 02 [13:18:07]Write to MH i2c: E2 08 00 AE 7E 80 0D 03 02 00 00 00 00 A7 [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:07]Read from MH i2c: E2 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 0B 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 0B 00 AE 7E 00 B8 A8 98 73 47 F3 65 A1 90 00 53 [13:18:07]RAPDU: B8 A8 98 73 47 F3 65 A1 90 00 [13:18:07]wFMCommunicate OK [13:18:07]SAM_PROTO_SignData done [13:18:07]FM_MakeSignedData done [13:18:07]CreateOFDProtocolMessage [13:18:07]wFMCommunicate request_size=4 [13:18:07]MH_SAM_APDU [13:18:07]CAPDU: 80 11 00 00 [13:18:07]Write to MH i2c: E2 08 00 AF 7E 80 11 00 00 00 00 00 00 A7 [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:07]Read from MH i2c: E2 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 17 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: E2 17 00 AF 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F7 [13:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:18:07]wFMCommunicate OK [13:18:07]CreateOFDProtocolMessage done [13:18:07]OFDSenderStorePacket 95416 [13:18:07]StoreOFDPacket docnum=95416 [13:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5E 67 07 01 6B FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 99 A7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 74 01 00 35 04 06 00 83 AC CC 96 7A 96 B8 A8 98 73 47 F3 65 A1 [13:18:07]CheckFolder [13:18:07]dirname=/storage/ofd_packets [13:18:07]CheckFolder done [13:18:07]ProducePacketName [13:18:07]name=ofd_packets/00095416 [13:18:07]NVStorageSaveData ofd_packets/00095416 [13:18:07]File name is /storage/ofd_packets/00095416 [13:18:07]Write 301 bytes [13:18:07]NVStorageSaveData done [13:18:07]OFDSenderStorePacket done [13:18:07]KKMCreateOFDPacket done [13:18:07]NVStorageSaveData kkm_last_timestamp [13:18:07]File name is /storage/kkm_last_timestamp [13:18:07]Write 4 bytes [13:18:07]NVStorageSaveData done [13:18:07]ExternCall_PrintAddStr [13:18:07]wPrintStart [13:18:07]Write to MH i2c: 01 00 00 B0 7E 2E [13:18:07]Write i2c OK [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: 01 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: 01 07 00 [13:18:07]MH_I2C_Read... [13:18:07]Read from MH i2c: 01 07 00 B0 7E 00 80 00 00 00 FF 0F C3 [13:18:07]RasterBufferAndPrint [13:18:07]line Счет N : (1)196406 [13:18:07]line ИНН: 02508201610067 [13:18:07]line Контрольно-Кассовый Чек [13:18:07]line ПРОДАЖА [13:18:07]line ТРК (МРК, ГНК) : 22 [13:18:07]line Товар: 2710124130 [13:18:07]line Аи-92-К-5 [13:18:07]line 15.900 * 62.90 [13:18:07]line = 1000.11 [13:18:07]line НДС 12% НСП 1% [13:18:07]line > о реализуемом товаре [13:18:07]line ОКРУГЛЕНИЕ: -0.11 [13:18:07]line ИТОГО: 1000.00 [13:18:07]line Внесено: 1000.00 [13:18:07]line СДАЧА: 0.00 [13:18:07]line НСП 1% : 8.85 [13:18:07]line НДС 12% : 106.21 [13:18:07]line Наличными: 1000.00 [13:18:07]line Безнал.: 0.00 [13:18:07]line Место: АЗС № 6 "Партнер Нефть" [13:18:07]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:18:07]line СНО: Общий режим [13:18:07]line Чек 111 13.03.2024 13:18 [13:18:07]line Смена: 328 ФФД: 1.0 [13:18:07]line ЗНМ: 0300000009 [13:18:07]line РНМ: 0000000000090555 [13:18:07]line Версия ККМ: 001 [13:18:07]line ФМ: 0000000000874811 [13:18:07]line ФД: 95416 [13:18:07]line ФПД: 144778190027414 [13:18:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131817&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95416&fm=144778190027414&tin=02508201610067®Number=0000000000090555&sum=100000 [13:18:08]OFD Sender: Processing packet 95416 [packets to send 30, broken 29] [13:18:08]ProducePacketName [13:18:08]name=ofd_packets/00095416 [13:18:08]OFD Sender: To server: pG, [13:18:08]CommunicateWithHost lk.salyk.kg:30040 [13:18:08]ConnectInit lk.salyk.kg [13:18:08]written 0, free lines is 4095 [13:18:08]Connected sock=10 [13:18:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 5E 67 07 01 6B FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 99 A7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 74 01 00 35 04 06 00 83 AC CC 96 7A 96 B8 A8 98 73 47 F3 65 A1 [13:18:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 47 BE 47 00 BF 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B8 74 01 00 F4 03 04 00 EB 52 F1 65 B6 04 01 00 00 36 89 72 F5 CE 2A 64 2D [13:18:08]CommunicateWithHost err = 0 [13:18:08]CheckOFDResponse [13:18:08]1017 (14) - 77093643461234 [13:18:08]1041 (16) - 0000000000874811 [13:18:08]1040 (4) - 95416 [13:18:08]1012 (4) - 13.03.2024 07:16 [13:18:08]1206 (1) - 0 [13:18:08]OFD Sender: Remove packet 95416 [13:18:08]ProducePacketName [13:18:08]name=ofd_packets/00095416 [13:18:08]NVStorageDeleteData [13:18:08]Write to MH i2c: 01 00 00 DB 7E 59 [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: 01 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: 01 07 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: 01 07 00 DB 7E 00 80 00 00 00 50 0D 3D [13:18:08]RasterBufferAndPrint [13:18:08]line [13:18:08]line [13:18:08]line [13:18:08]line [13:18:08]line [13:18:08]written 0, free lines is 3414 [13:18:08]process_action close_receipt done [13:18:08]requested_data is exist [13:18:08]produce_requested_data [13:18:08]requested_item fm.sn is exist - process it [13:18:08]wFMCommunicate request_size=4 [13:18:08]MH_SAM_APDU [13:18:08]CAPDU: 80 11 00 00 [13:18:08]Write to MH i2c: E2 08 00 E2 7E 80 11 00 00 00 00 00 00 DA [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:08]Read from MH i2c: E2 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 17 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 17 00 E2 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [13:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:18:08]wFMCommunicate OK [13:18:08]requested_item fd.num is exist - process it [13:18:08]SAM_PROTO_GetFieldsCounters [13:18:08]wFMCommunicate request_size=4 [13:18:08]MH_SAM_APDU [13:18:08]CAPDU: 80 13 00 00 [13:18:08]Write to MH i2c: E2 08 00 E3 7E 80 13 00 00 00 00 00 00 DD [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:08]Read from MH i2c: E2 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 62 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 62 00 E3 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B8 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [13:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B8 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:08]wFMCommunicate OK [13:18:08]SAM_PROTO_GetFieldsCounters done [13:18:08]requested_item shift.num is exist - process it [13:18:08]requested_item shift.opened is exist - process it [13:18:08]req_shift_opened [13:18:08]FM_GetShiftState [13:18:08]SAM_PROTO_GetShiftState [13:18:08]wFMCommunicate request_size=4 [13:18:08]MH_SAM_APDU [13:18:08]CAPDU: 80 13 01 00 [13:18:08]Write to MH i2c: E2 08 00 E4 7E 80 13 01 00 00 00 00 00 DF [13:18:08]Write i2c OK [13:18:08]MH_I2C_Read... [13:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:08]Read from MH i2c: E2 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 0E 00 [13:18:08]MH_I2C_Read... [13:18:08]Read from MH i2c: E2 0E 00 E4 7E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C4 [13:18:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:18:08]wFMCommunicate OK [13:18:08]SAM_PROTO_GetShiftState done [13:18:08]FM_GetShiftState done [13:18:08]req_shift_opened done [13:18:08]requested_item shift.open_date is exist - process it [13:18:08]req_shift_open_date [13:18:08]req_shift_open_date done [13:18:08]produce_requested_data done [13:18:08]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95416,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:18:08]process_action_free close_receipt [13:18:08]json_value_free [13:18:08]json_value_free done [13:18:08]process_json_proto returns [13:18:08]Send response to host [13:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95416,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:18:08]free response buf [13:18:08]execute_script done [13:18:08]execute_script returns [13:18:08]free content buf [13:18:08]Sock 9.Close socket [13:18:08]Sock 9.Thread stoped [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:30]accept exits with 8 [13:19:30]New connection [13:19:30]New thread 3066957156 created [13:19:30]Thread 3066813796 joined [13:19:30]Waiting for new connection... [13:19:30] Sock 8.Parse request [13:19:30]Sock 8.Check first char [13:19:30]Sock 8.First char is OK [13:19:30]request: POST /json_proto HTTP/1.0 [13:19:30]Method: POST [13:19:30]URL: /json_proto [13:19:30]Method is POST - this is cgi request [13:19:30]url: /json_proto [13:19:30]query_string will be loaded in cgi processing [13:19:30]execute_cgi json_proto POST (null) [13:19:30]execute_cgi path=json_proto method=POST [13:19:30]POST find Content-Length [13:19:30]Host: 172.17.62.67:8080 [13:19:30]Content-Length: 678 [13:19:30]Content-Type: application/json [13:19:30] [13:19:30]POST finish read [13:19:30]Found Content-Length = 678 [13:19:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196407", "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" : 62.90, "quantity" : 11.930, "sum" : 750.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:30]execute_script... [13:19: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)196407", "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" : 62.90, "quantity" : 11.930, "sum" : 750.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:30]POST & json_proto [13:19:30]process_json_proto [13:19:30]json parsed OK: [13:19:30]protocol is kg_v1.0 [13:19:30]action value=close_receipt [13:19:30]process_action close_receipt [13:19:30]cmd_close_receipt [13:19:30]MH_GetDate [13:19:30]Write to MH i2c: F0 00 00 E5 7E 52 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: F0 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: F0 05 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: F0 05 00 E5 7E 00 ED A7 F1 65 41 [13:19:30]GetLastDocTimeStamp 1710335897 [13:19:30]current date 1710335981 [13:19:30]FM_GetShiftState [13:19:30]SAM_PROTO_GetShiftState [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 13 01 00 [13:19:30]Write to MH i2c: E2 08 00 E6 7E 80 13 01 00 00 00 00 00 E1 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 0E 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 0E 00 E6 7E 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C6 [13:19:30]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:19:30]wFMCommunicate OK [13:19:30]SAM_PROTO_GetShiftState done [13:19:30]FM_GetShiftState done [13:19:30]opened in 1710288279 [13:19:30]opened+sec_in_day 1710374679 [13:19:30]quantity*price = 75039 [13:19:30]sum+1 = 75041 [13:19:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.69 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 112 13.03.2024 13:19 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95417 ФПД: 188830235058789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131941&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95417&fm=188830235058789&tin=02508201610067®Number=0000000000090555&sum=75000 [13:19:31]StoreToDocumentArchive [13:19:31]shift 328 fd 95417 [13:19:31]save to /storage/0328/doc_00095417 [13:19:31]save last doc name /storage/0328/doc_00095417 to /storage/kkm_last_doc_name [13:19:31]save OK [13:19:31]Clear old archive folders... [13:19:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:31]tlvbuf is 01C8EC90 [13:19:31]SAM_PROTO_ClearQueue [13:19:31]wFMCommunicate request_size=4 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 09 00 00 [13:19:31]Write to MH i2c: E2 08 00 F3 7E 80 09 00 00 00 00 00 00 E3 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 03 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 03 00 F3 7E 00 90 00 E5 [13:19:31]RAPDU: 90 00 [13:19:31]wFMCommunicate OK [13:19:31]SAM_PROTO_ClearQueue done [13:19:31]KKMCreateOFDPacket [13:19:31]OFDProtocolAddRootSTLVToBuf [13:19:31]FM_MakeSignedData [13:19:31]FM_MakeSignedData [13:19:31]SAM_PROTO_SignData [13:19:31]wFMCommunicate request_size=4 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 0D 01 02 [13:19:31]Write to MH i2c: E2 08 00 F4 7E 80 0D 01 02 00 00 00 00 EB [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 03 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 03 00 F4 7E 00 90 00 E6 [13:19:31]RAPDU: 90 00 [13:19:31]wFMCommunicate OK [13:19:31]wFMCommunicate request_size=255 [13:19:31]MH_SAM_APDU [13:19: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 9A 2E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 ED A7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 74 01 00 35 04 06 00 AB [13:19:31]Write to MH i2c: E2 02 01 F5 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 2E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 ED A7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 74 01 00 35 04 06 00 AB 00 00 39 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 03 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 03 00 F5 7E 00 90 00 E7 [13:19:31]RAPDU: 90 00 [13:19:31]wFMCommunicate OK [13:19:31]wFMCommunicate request_size=10 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 0D 02 02 05 BD 77 15 62 65 [13:19:31]Write to MH i2c: E2 0D 00 F6 7E 80 0D 02 02 05 00 BD 77 15 62 65 00 00 08 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 03 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 03 00 F6 7E 00 90 00 E8 [13:19:31]RAPDU: 90 00 [13:19:31]wFMCommunicate OK [13:19:31]wFMCommunicate request_size=4 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 0D 03 02 [13:19:31]Write to MH i2c: E2 08 00 F7 7E 80 0D 03 02 00 00 00 00 F0 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 0B 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 0B 00 F7 7E 00 78 F6 18 5C 7B E5 BE FE 90 00 EF [13:19:31]RAPDU: 78 F6 18 5C 7B E5 BE FE 90 00 [13:19:31]wFMCommunicate OK [13:19:31]SAM_PROTO_SignData done [13:19:31]FM_MakeSignedData done [13:19:31]CreateOFDProtocolMessage [13:19:31]wFMCommunicate request_size=4 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 11 00 00 [13:19:31]Write to MH i2c: E2 08 00 F8 7E 80 11 00 00 00 00 00 00 F0 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 17 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 17 00 F8 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [13:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:19:31]wFMCommunicate OK [13:19:31]CreateOFDProtocolMessage done [13:19:31]OFDSenderStorePacket 95417 [13:19:31]StoreOFDPacket docnum=95417 [13:19:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB 1F 07 01 B5 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 2E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 ED A7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 74 01 00 35 04 06 00 AB BD 77 15 62 65 78 F6 18 5C 7B E5 BE FE [13:19:31]CheckFolder [13:19:31]dirname=/storage/ofd_packets [13:19:31]CheckFolder done [13:19:31]ProducePacketName [13:19:31]name=ofd_packets/00095417 [13:19:31]NVStorageSaveData ofd_packets/00095417 [13:19:31]File name is /storage/ofd_packets/00095417 [13:19:31]Write 301 bytes [13:19:31]NVStorageSaveData done [13:19:31]OFDSenderStorePacket done [13:19:31]KKMCreateOFDPacket done [13:19:31]NVStorageSaveData kkm_last_timestamp [13:19:31]File name is /storage/kkm_last_timestamp [13:19:31]Write 4 bytes [13:19:31]NVStorageSaveData done [13:19:31]ExternCall_PrintAddStr [13:19:31]wPrintStart [13:19:31]Write to MH i2c: 01 00 00 F9 7E 77 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: 01 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: 01 07 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: 01 07 00 F9 7E 00 80 00 00 00 FF 0F 0C [13:19:31]RasterBufferAndPrint [13:19:31]line Счет N : (1)196407 [13:19:31]line ИНН: 02508201610067 [13:19:31]line Контрольно-Кассовый Чек [13:19:31]line ПРОДАЖА [13:19:31]line ТРК (МРК, ГНК) : 42 [13:19:31]line Товар: 2710124130 [13:19:31]line Аи-92-К-5 [13:19:31]line 11.930 * 62.90 [13:19:31]line = 750.40 [13:19:31]line НДС 12% НСП 1% [13:19:31]line > о реализуемом товаре [13:19:31]line ОКРУГЛЕНИЕ: -0.40 [13:19:31]line ИТОГО: 750.00 [13:19:31]line Внесено: 750.00 [13:19:31]line СДАЧА: 0.00 [13:19:31]line НСП 1% : 6.64 [13:19:31]line НДС 12% : 79.69 [13:19:31]line Наличными: 750.00 [13:19:31]line Безнал.: 0.00 [13:19:31]line Место: АЗС № 6 "Партнер Нефть" [13:19:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:19:31]line СНО: Общий режим [13:19:31]line Чек 112 13.03.2024 13:19 [13:19:31]line Смена: 328 ФФД: 1.0 [13:19:31]line ЗНМ: 0300000009 [13:19:31]line РНМ: 0000000000090555 [13:19:31]line Версия ККМ: 001 [13:19:31]line ФМ: 0000000000874811 [13:19:31]line ФД: 95417 [13:19:31]line ФПД: 188830235058789 [13:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T131941&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95417&fm=188830235058789&tin=02508201610067®Number=0000000000090555&sum=75000 [13:19:32]OFD Sender: Processing packet 95417 [packets to send 30, broken 29] [13:19:32]ProducePacketName [13:19:32]name=ofd_packets/00095417 [13:19:32]OFD Sender: To server: pG, [13:19:32]CommunicateWithHost lk.salyk.kg:30040 [13:19:32]ConnectInit lk.salyk.kg [13:19:32]written 0, free lines is 4095 [13:19:32]Connected sock=10 [13:19:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 CB 1F 07 01 B5 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 2E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 20 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 ED A7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 74 01 00 35 04 06 00 AB BD 77 15 62 65 78 F6 18 5C 7B E5 BE FE [13:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 71 1B 47 00 FE 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 B9 74 01 00 F4 03 04 00 3F 53 F1 65 B6 04 01 00 00 0A 91 85 E8 35 3A EA F2 [13:19:32]CommunicateWithHost err = 0 [13:19:32]CheckOFDResponse [13:19:32]1017 (14) - 77093643461234 [13:19:32]1041 (16) - 0000000000874811 [13:19:32]1040 (4) - 95417 [13:19:32]1012 (4) - 13.03.2024 07:18 [13:19:32]1206 (1) - 0 [13:19:32]OFD Sender: Remove packet 95417 [13:19:32]ProducePacketName [13:19:32]name=ofd_packets/00095417 [13:19:32]NVStorageDeleteData [13:19:32]Write to MH i2c: 01 00 00 24 7F A3 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 07 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: 01 07 00 24 7F 00 80 00 00 00 4D 0D 84 [13:19:32]RasterBufferAndPrint [13:19:32]line [13:19:32]line [13:19:32]line [13:19:32]line [13:19:32]line [13:19:32]written 0, free lines is 3411 [13:19:32]process_action close_receipt done [13:19:32]requested_data is exist [13:19:32]produce_requested_data [13:19:32]requested_item fm.sn is exist - process it [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 11 00 00 [13:19:32]Write to MH i2c: E2 08 00 2B 7F 80 11 00 00 00 00 00 00 24 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 17 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 17 00 2B 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 74 [13:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:19:32]wFMCommunicate OK [13:19:32]requested_item fd.num is exist - process it [13:19:32]SAM_PROTO_GetFieldsCounters [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 13 00 00 [13:19:32]Write to MH i2c: E2 08 00 2C 7F 80 13 00 00 00 00 00 00 27 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 62 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 62 00 2C 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B9 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [13:19:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 B9 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:32]wFMCommunicate OK [13:19:32]SAM_PROTO_GetFieldsCounters done [13:19:32]requested_item shift.num is exist - process it [13:19:32]requested_item shift.opened is exist - process it [13:19:32]req_shift_opened [13:19:32]FM_GetShiftState [13:19:32]SAM_PROTO_GetShiftState [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 13 01 00 [13:19:32]Write to MH i2c: E2 08 00 2D 7F 80 13 01 00 00 00 00 00 29 [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 0E 00 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 0E 00 2D 7F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0E [13:19:32]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:19:32]wFMCommunicate OK [13:19:32]SAM_PROTO_GetShiftState done [13:19:32]FM_GetShiftState done [13:19:32]req_shift_opened done [13:19:32]requested_item shift.open_date is exist - process it [13:19:32]req_shift_open_date [13:19:32]req_shift_open_date done [13:19:32]produce_requested_data done [13:19:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95417,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:19:32]process_action_free close_receipt [13:19:32]json_value_free [13:19:32]json_value_free done [13:19:32]process_json_proto returns [13:19:32]Send response to host [13:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95417,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:19:32]free response buf [13:19:32]execute_script done [13:19:32]execute_script returns [13:19:32]free content buf [13:19:32]Sock 8.Close socket [13:19:32]Sock 8.Thread stoped [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]accept exits with 9 [13:22:38]New connection [13:22:38]New thread 3066813796 created [13:22:38]Thread 3066957156 joined [13:22:38]Waiting for new connection... [13:22:38] Sock 9.Parse request [13:22:38]Sock 9.Check first char [13:22:38]Sock 9.First char is OK [13:22:38]request: POST /json_proto HTTP/1.0 [13:22:38]Method: POST [13:22:38]URL: /json_proto [13:22:38]Method is POST - this is cgi request [13:22:38]url: /json_proto [13:22:38]query_string will be loaded in cgi processing [13:22:38]execute_cgi json_proto POST (null) [13:22:38]execute_cgi path=json_proto method=POST [13:22:38]POST find Content-Length [13:22:38]Host: 172.17.62.67:8080 [13:22:38]Content-Length: 682 [13:22:38]Content-Type: application/json [13:22:38] [13:22:38]POST finish read [13:22:38]Found Content-Length = 682 [13:22:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196408", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:38]execute_script... [13:22:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196408", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:38]POST & json_proto [13:22:38]process_json_proto [13:22:38]json parsed OK: [13:22:38]protocol is kg_v1.0 [13:22:38]action value=close_receipt [13:22:38]process_action close_receipt [13:22:38]cmd_close_receipt [13:22:38]MH_GetDate [13:22:38]Write to MH i2c: F0 00 00 2E 7F 9C [13:22:38]Write i2c OK [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: F0 [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: F0 05 00 [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: F0 05 00 2E 7F 00 A9 A8 F1 65 48 [13:22:38]GetLastDocTimeStamp 1710335981 [13:22:38]current date 1710336169 [13:22:38]FM_GetShiftState [13:22:38]SAM_PROTO_GetShiftState [13:22:38]wFMCommunicate request_size=4 [13:22:38]MH_SAM_APDU [13:22:38]CAPDU: 80 13 01 00 [13:22:38]Write to MH i2c: E2 08 00 2F 7F 80 13 01 00 00 00 00 00 2B [13:22:38]Write i2c OK [13:22:38]MH_I2C_Read... [13:22:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:38]Read from MH i2c: E2 [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: E2 0E 00 [13:22:38]MH_I2C_Read... [13:22:38]Read from MH i2c: E2 0E 00 2F 7F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 10 [13:22:38]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:22:38]wFMCommunicate OK [13:22:38]SAM_PROTO_GetShiftState done [13:22:38]FM_GetShiftState done [13:22:38]opened in 1710288279 [13:22:38]opened+sec_in_day 1710374679 [13:22:38]quantity*price = 100011 [13:22:38]sum+1 = 100012 [13:22:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 113 13.03.2024 13:22 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95418 ФПД: 115635242258832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T132249&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95418&fm=115635242258832&tin=02508201610067®Number=0000000000090555&sum=100000 [13:22:39]StoreToDocumentArchive [13:22:39]shift 328 fd 95418 [13:22:39]save to /storage/0328/doc_00095418 [13:22:39]save last doc name /storage/0328/doc_00095418 to /storage/kkm_last_doc_name [13:22:39]save OK [13:22:39]Clear old archive folders... [13:22:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:39]tlvbuf is 01AC63F0 [13:22:39]SAM_PROTO_ClearQueue [13:22:39]wFMCommunicate request_size=4 [13:22:39]MH_SAM_APDU [13:22:39]CAPDU: 80 09 00 00 [13:22:39]Write to MH i2c: E2 08 00 3C 7F 80 09 00 00 00 00 00 00 2D [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:39]Read from MH i2c: E2 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 03 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 03 00 3C 7F 00 90 00 2F [13:22:39]RAPDU: 90 00 [13:22:39]wFMCommunicate OK [13:22:39]SAM_PROTO_ClearQueue done [13:22:39]KKMCreateOFDPacket [13:22:39]OFDProtocolAddRootSTLVToBuf [13:22:39]FM_MakeSignedData [13:22:39]FM_MakeSignedData [13:22:39]SAM_PROTO_SignData [13:22:39]wFMCommunicate request_size=4 [13:22:39]MH_SAM_APDU [13:22:39]CAPDU: 80 0D 01 02 [13:22:39]Write to MH i2c: E2 08 00 3D 7F 80 0D 01 02 00 00 00 00 35 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:39]Read from MH i2c: E2 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 03 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 03 00 3D 7F 00 90 00 30 [13:22:39]RAPDU: 90 00 [13:22:39]wFMCommunicate OK [13:22:39]wFMCommunicate request_size=255 [13:22:39]MH_SAM_APDU [13:22:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A9 A8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 74 01 00 35 04 06 00 69 [13:22:39]Write to MH i2c: E2 02 01 3E 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A9 A8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 74 01 00 35 04 06 00 69 00 00 D6 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:39]Read from MH i2c: E2 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 03 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 03 00 3E 7F 00 90 00 31 [13:22:39]RAPDU: 90 00 [13:22:39]wFMCommunicate OK [13:22:39]wFMCommunicate request_size=10 [13:22:39]MH_SAM_APDU [13:22:39]CAPDU: 80 0D 02 02 05 2B 6D 89 D1 90 [13:22:39]Write to MH i2c: E2 0D 00 3F 7F 80 0D 02 02 05 00 2B 6D 89 D1 90 00 00 C4 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:39]Read from MH i2c: E2 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 03 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 03 00 3F 7F 00 90 00 32 [13:22:39]RAPDU: 90 00 [13:22:39]wFMCommunicate OK [13:22:39]wFMCommunicate request_size=4 [13:22:39]MH_SAM_APDU [13:22:39]CAPDU: 80 0D 03 02 [13:22:39]Write to MH i2c: E2 08 00 40 7F 80 0D 03 02 00 00 00 00 3A [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:39]Read from MH i2c: E2 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 0B 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 0B 00 40 7F 00 AF 05 0D 0D A6 BB 1B 30 90 00 B5 [13:22:39]RAPDU: AF 05 0D 0D A6 BB 1B 30 90 00 [13:22:39]wFMCommunicate OK [13:22:39]SAM_PROTO_SignData done [13:22:39]FM_MakeSignedData done [13:22:39]CreateOFDProtocolMessage [13:22:39]wFMCommunicate request_size=4 [13:22:39]MH_SAM_APDU [13:22:39]CAPDU: 80 11 00 00 [13:22:39]Write to MH i2c: E2 08 00 41 7F 80 11 00 00 00 00 00 00 3A [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:39]Read from MH i2c: E2 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 17 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: E2 17 00 41 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 8A [13:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:22:39]wFMCommunicate OK [13:22:39]CreateOFDProtocolMessage done [13:22:39]OFDSenderStorePacket 95418 [13:22:39]StoreOFDPacket docnum=95418 [13:22:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 02 A7 07 01 C8 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A9 A8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 74 01 00 35 04 06 00 69 2B 6D 89 D1 90 AF 05 0D 0D A6 BB 1B 30 [13:22:39]CheckFolder [13:22:39]dirname=/storage/ofd_packets [13:22:39]CheckFolder done [13:22:39]ProducePacketName [13:22:39]name=ofd_packets/00095418 [13:22:39]NVStorageSaveData ofd_packets/00095418 [13:22:39]File name is /storage/ofd_packets/00095418 [13:22:39]Write 301 bytes [13:22:39]NVStorageSaveData done [13:22:39]OFDSenderStorePacket done [13:22:39]KKMCreateOFDPacket done [13:22:39]NVStorageSaveData kkm_last_timestamp [13:22:39]File name is /storage/kkm_last_timestamp [13:22:39]Write 4 bytes [13:22:39]NVStorageSaveData done [13:22:39]ExternCall_PrintAddStr [13:22:39]wPrintStart [13:22:39]Write to MH i2c: 01 00 00 42 7F C1 [13:22:39]Write i2c OK [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 07 00 [13:22:39]MH_I2C_Read... [13:22:39]Read from MH i2c: 01 07 00 42 7F 00 80 00 00 00 FF 0F 56 [13:22:39]RasterBufferAndPrint [13:22:39]line Счет N : (1)196408 [13:22:39]line ИНН: 02508201610067 [13:22:39]line Контрольно-Кассовый Чек [13:22:39]line ПРОДАЖА [13:22:39]line ТРК (МРК, ГНК) : 22 [13:22:39]line Товар: 2710124130 [13:22:39]line Аи-92-К-5 [13:22:39]line 15.900 * 62.90 [13:22:39]line = 1000.11 [13:22:39]line НДС 12% НСП 1% [13:22:39]line > о реализуемом товаре [13:22:39]line ОКРУГЛЕНИЕ: -0.11 [13:22:39]line ИТОГО: 1000.00 [13:22:39]line Внесено: 1000.00 [13:22:39]line СДАЧА: 0.00 [13:22:39]line НСП 1% : 8.85 [13:22:39]line НДС 12% : 106.21 [13:22:39]line Наличными: 1000.00 [13:22:39]line Безнал.: 0.00 [13:22:39]line Место: АЗС № 6 "Партнер Нефть" [13:22:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:22:39]line СНО: Общий режим [13:22:39]line Чек 113 13.03.2024 13:22 [13:22:39]line Смена: 328 ФФД: 1.0 [13:22:39]line ЗНМ: 0300000009 [13:22:39]line РНМ: 0000000000090555 [13:22:39]line Версия ККМ: 001 [13:22:39]line ФМ: 0000000000874811 [13:22:39]line ФД: 95418 [13:22:39]line ФПД: 115635242258832 [13:22:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T132249&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95418&fm=115635242258832&tin=02508201610067®Number=0000000000090555&sum=100000 [13:22:40]written 0, free lines is 4095 [13:22:40]OFD Sender: Processing packet 95418 [packets to send 30, broken 29] [13:22:40]ProducePacketName [13:22:40]name=ofd_packets/00095418 [13:22:40]OFD Sender: To server: pG, [13:22:40]CommunicateWithHost lk.salyk.kg:30040 [13:22:40]ConnectInit lk.salyk.kg [13:22:40]Connected sock=11 [13:22:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 02 A7 07 01 C8 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A9 A8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BA 74 01 00 35 04 06 00 69 2B 6D 89 D1 90 AF 05 0D 0D A6 BB 1B 30 [13:22:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 22 7B 47 00 42 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 34 38 31 31 10 04 04 00 BA 74 01 00 F4 03 04 00 FB 53 F1 65 B6 04 01 00 00 ED 73 4E E1 7C E7 5C 9A [13:22:40]CommunicateWithHost err = 0 [13:22:40]CheckOFDResponse [13:22:40]1017 (14) - 77093643461234 [13:22:40]1041 (16) - 0000000000874811 [13:22:40]1040 (4) - 95418 [13:22:40]1012 (4) - 13.03.2024 07:21 [13:22:40]1206 (1) - 0 [13:22:40]OFD Sender: Remove packet 95418 [13:22:40]ProducePacketName [13:22:40]name=ofd_packets/00095418 [13:22:40]NVStorageDeleteData [13:22:40]Write to MH i2c: 01 00 00 6D 7F EC [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: 01 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: 01 07 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: 01 07 00 6D 7F 00 80 00 00 00 4B 0D CB [13:22:40]RasterBufferAndPrint [13:22:40]line [13:22:40]line [13:22:40]line [13:22:40]line [13:22:40]line [13:22:40]written 0, free lines is 3409 [13:22:40]process_action close_receipt done [13:22:40]requested_data is exist [13:22:40]produce_requested_data [13:22:40]requested_item fm.sn is exist - process it [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 11 00 00 [13:22:40]Write to MH i2c: E2 08 00 74 7F 80 11 00 00 00 00 00 00 6D [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 17 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 17 00 74 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BD [13:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:22:40]wFMCommunicate OK [13:22:40]requested_item fd.num is exist - process it [13:22:40]SAM_PROTO_GetFieldsCounters [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 13 00 00 [13:22:40]Write to MH i2c: E2 08 00 75 7F 80 13 00 00 00 00 00 00 70 [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 62 00 [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 62 00 75 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BA 74 01 00 0E 04 04 00 48 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 58 [13:22:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BA 74 01 00 0E 04 04 00 48 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 [13:22:40]wFMCommunicate OK [13:22:40]SAM_PROTO_GetFieldsCounters done [13:22:40]requested_item shift.num is exist - process it [13:22:40]requested_item shift.opened is exist - process it [13:22:40]req_shift_opened [13:22:40]FM_GetShiftState [13:22:40]SAM_PROTO_GetShiftState [13:22:40]wFMCommunicate request_size=4 [13:22:40]MH_SAM_APDU [13:22:40]CAPDU: 80 13 01 00 [13:22:40]Write to MH i2c: E2 08 00 76 7F 80 13 01 00 00 00 00 00 72 [13:22:40]Write i2c OK [13:22:40]MH_I2C_Read... [13:22:40]Read from MH i2c: E2 [13:22:40]MH_I2C_Read... [13:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:40]Read from MH i2c: E2 0E 00 [13:22:40]MH_I2C_Read... [13:22:40]OFD Sender: No OFD packet to send [13:22:40]Read from MH i2c: E2 0E 00 76 7F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 57 [13:22:40]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:22:40]wFMCommunicate OK [13:22:40]SAM_PROTO_GetShiftState done [13:22:40]FM_GetShiftState done [13:22:40]req_shift_opened done [13:22:40]requested_item shift.open_date is exist - process it [13:22:40]req_shift_open_date [13:22:40]req_shift_open_date done [13:22:40]produce_requested_data done [13:22:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95418,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:22:40]process_action_free close_receipt [13:22:40]json_value_free [13:22:40]json_value_free done [13:22:40]process_json_proto returns [13:22:40]Send response to host [13:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95418,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:22:40]free response buf [13:22:40]execute_script done [13:22:40]execute_script returns [13:22:40]free content buf [13:22:40]Sock 9.Close socket [13:22:40]Sock 9.Thread stoped [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]accept exits with 8 [13:23:40]New connection [13:23:40]New thread 3066957156 created [13:23:40]Thread 3066813796 joined [13:23:40]Waiting for new connection... [13:23:40] Sock 8.Parse request [13:23:40]Sock 8.Check first char [13:23:40]Sock 8.First char is OK [13:23:40]request: POST /json_proto HTTP/1.0 [13:23:40]Method: POST [13:23:40]URL: /json_proto [13:23:40]Method is POST - this is cgi request [13:23:40]url: /json_proto [13:23:40]query_string will be loaded in cgi processing [13:23:40]execute_cgi json_proto POST (null) [13:23:40]execute_cgi path=json_proto method=POST [13:23:40]POST find Content-Length [13:23:40]Host: 172.17.62.67:8080 [13:23:40]Content-Length: 678 [13:23:40]Content-Type: application/json [13:23:40] [13:23:40]POST finish read [13:23:40]Found Content-Length = 678 [13:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196409", "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" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:40]execute_script... [13:23:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196409", "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" : 62.90, "quantity" : 11.130, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:40]POST & json_proto [13:23:40]process_json_proto [13:23:40]json parsed OK: [13:23:40]protocol is kg_v1.0 [13:23:40]action value=close_receipt [13:23:40]process_action close_receipt [13:23:40]cmd_close_receipt [13:23:40]MH_GetDate [13:23:40]Write to MH i2c: F0 00 00 77 7F E5 [13:23:40]Write i2c OK [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: F0 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: F0 05 00 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: F0 05 00 77 7F 00 E7 A8 F1 65 CF [13:23:40]GetLastDocTimeStamp 1710336169 [13:23:40]current date 1710336231 [13:23:40]FM_GetShiftState [13:23:40]SAM_PROTO_GetShiftState [13:23:40]wFMCommunicate request_size=4 [13:23:40]MH_SAM_APDU [13:23:40]CAPDU: 80 13 01 00 [13:23:40]Write to MH i2c: E2 08 00 78 7F 80 13 01 00 00 00 00 00 74 [13:23:40]Write i2c OK [13:23:40]MH_I2C_Read... [13:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:40]Read from MH i2c: E2 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 0E 00 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 0E 00 78 7F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 59 [13:23:40]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:23:40]wFMCommunicate OK [13:23:40]SAM_PROTO_GetShiftState done [13:23:40]FM_GetShiftState done [13:23:40]opened in 1710288279 [13:23:40]opened+sec_in_day 1710374679 [13:23:40]quantity*price = 70007 [13:23:40]sum+1 = 70009 [13:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 114 13.03.2024 13:23 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95419 ФПД: 66325402240763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T132351&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95419&fm=66325402240763&tin=02508201610067®Number=0000000000090555&sum=70000 [13:23:41]StoreToDocumentArchive [13:23:41]shift 328 fd 95419 [13:23:41]save to /storage/0328/doc_00095419 [13:23:41]save last doc name /storage/0328/doc_00095419 to /storage/kkm_last_doc_name [13:23:41]save OK [13:23:41]Clear old archive folders... [13:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:41]tlvbuf is 01AC66C0 [13:23:41]SAM_PROTO_ClearQueue [13:23:41]wFMCommunicate request_size=4 [13:23:41]MH_SAM_APDU [13:23:41]CAPDU: 80 09 00 00 [13:23:41]Write to MH i2c: E2 08 00 85 7F 80 09 00 00 00 00 00 00 76 [13:23:41]Write i2c OK [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: E2 [13:23:41]MH_I2C_Read... [13:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:41]Read from MH i2c: E2 03 00 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: E2 03 00 85 7F 00 90 00 78 [13:23:41]RAPDU: 90 00 [13:23:41]wFMCommunicate OK [13:23:41]SAM_PROTO_ClearQueue done [13:23:41]KKMCreateOFDPacket [13:23:41]OFDProtocolAddRootSTLVToBuf [13:23:41]FM_MakeSignedData [13:23:41]FM_MakeSignedData [13:23:41]SAM_PROTO_SignData [13:23:41]wFMCommunicate request_size=4 [13:23:41]MH_SAM_APDU [13:23:41]CAPDU: 80 0D 01 02 [13:23:41]Write to MH i2c: E2 08 00 86 7F 80 0D 01 02 00 00 00 00 7E [13:23:41]Write i2c OK [13:23:41]MH_I2C_Read... [13:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:41]Read from MH i2c: E2 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: E2 03 00 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: E2 03 00 86 7F 00 90 00 79 [13:23:41]RAPDU: 90 00 [13:23:41]wFMCommunicate OK [13:23:41]wFMCommunicate request_size=255 [13:23:41]MH_SAM_APDU [13:23:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 72 00 00 00 F4 03 04 00 E7 A8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 74 01 00 35 04 06 00 3C [13:23:41]Write to MH i2c: E2 02 01 87 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 72 00 00 00 F4 03 04 00 E7 A8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 74 01 00 35 04 06 00 3C 00 00 01 [13:23:41]Write i2c OK [13:23:41]MH_I2C_Read... [13:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:41]Read from MH i2c: E2 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: E2 03 00 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: E2 03 00 87 7F 00 90 00 7A [13:23:41]RAPDU: 90 00 [13:23:41]wFMCommunicate OK [13:23:41]wFMCommunicate request_size=10 [13:23:41]MH_SAM_APDU [13:23:41]CAPDU: 80 0D 02 02 05 52 96 0A 46 FB [13:23:41]Write to MH i2c: E2 0D 00 88 7F 80 0D 02 02 05 00 52 96 0A 46 FB 00 00 BE [13:23:41]Write i2c OK [13:23:41]MH_I2C_Read... [13:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:42]Read from MH i2c: E2 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: E2 03 00 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: E2 03 00 88 7F 00 90 00 7B [13:23:42]RAPDU: 90 00 [13:23:42]wFMCommunicate OK [13:23:42]wFMCommunicate request_size=4 [13:23:42]MH_SAM_APDU [13:23:42]CAPDU: 80 0D 03 02 [13:23:42]Write to MH i2c: E2 08 00 89 7F 80 0D 03 02 00 00 00 00 83 [13:23:42]Write i2c OK [13:23:42]MH_I2C_Read... [13:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:42]Read from MH i2c: E2 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: E2 0B 00 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: E2 0B 00 89 7F 00 0A 66 40 CD A3 F1 09 FB 90 00 99 [13:23:42]RAPDU: 0A 66 40 CD A3 F1 09 FB 90 00 [13:23:42]wFMCommunicate OK [13:23:42]SAM_PROTO_SignData done [13:23:42]FM_MakeSignedData done [13:23:42]CreateOFDProtocolMessage [13:23:42]wFMCommunicate request_size=4 [13:23:42]MH_SAM_APDU [13:23:42]CAPDU: 80 11 00 00 [13:23:42]Write to MH i2c: E2 08 00 8A 7F 80 11 00 00 00 00 00 00 83 [13:23:42]Write i2c OK [13:23:42]MH_I2C_Read... [13:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:42]Read from MH i2c: E2 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: E2 17 00 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: E2 17 00 8A 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D3 [13:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:23:42]wFMCommunicate OK [13:23:42]CreateOFDProtocolMessage done [13:23:42]OFDSenderStorePacket 95419 [13:23:42]StoreOFDPacket docnum=95419 [13:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FE E6 07 01 41 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 72 00 00 00 F4 03 04 00 E7 A8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 74 01 00 35 04 06 00 3C 52 96 0A 46 FB 0A 66 40 CD A3 F1 09 FB [13:23:42]CheckFolder [13:23:42]dirname=/storage/ofd_packets [13:23:42]CheckFolder done [13:23:42]ProducePacketName [13:23:42]name=ofd_packets/00095419 [13:23:42]NVStorageSaveData ofd_packets/00095419 [13:23:42]File name is /storage/ofd_packets/00095419 [13:23:42]Write 301 bytes [13:23:42]NVStorageSaveData done [13:23:42]OFDSenderStorePacket done [13:23:42]KKMCreateOFDPacket done [13:23:42]NVStorageSaveData kkm_last_timestamp [13:23:42]File name is /storage/kkm_last_timestamp [13:23:42]Write 4 bytes [13:23:42]NVStorageSaveData done [13:23:42]ExternCall_PrintAddStr [13:23:42]wPrintStart [13:23:42]Write to MH i2c: 01 00 00 8B 7F 0A [13:23:42]Write i2c OK [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: 01 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: 01 07 00 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: 01 07 00 8B 7F 00 80 00 00 00 FF 0F 9F [13:23:42]RasterBufferAndPrint [13:23:42]line Счет N : (1)196409 [13:23:42]line ИНН: 02508201610067 [13:23:42]line Контрольно-Кассовый Чек [13:23:42]line ПРОДАЖА [13:23:42]line ТРК (МРК, ГНК) : 42 [13:23:42]line Товар: 2710124130 [13:23:42]line Аи-92-К-5 [13:23:42]line 11.130 * 62.90 [13:23:42]line = 700.08 [13:23:42]line НДС 12% НСП 1% [13:23:42]line > о реализуемом товаре [13:23:42]line ОКРУГЛЕНИЕ: -0.08 [13:23:42]line ИТОГО: 700.00 [13:23:42]line Внесено: 700.00 [13:23:42]line СДАЧА: 0.00 [13:23:42]line НСП 1% : 6.19 [13:23:42]line НДС 12% : 74.34 [13:23:42]line Наличными: 700.00 [13:23:42]line Безнал.: 0.00 [13:23:42]line Место: АЗС № 6 "Партнер Нефть" [13:23:42]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:23:42]line СНО: Общий режим [13:23:42]line Чек 114 13.03.2024 13:23 [13:23:42]line Смена: 328 ФФД: 1.0 [13:23:42]line ЗНМ: 0300000009 [13:23:42]line РНМ: 0000000000090555 [13:23:42]line Версия ККМ: 001 [13:23:42]line ФМ: 0000000000874811 [13:23:42]line ФД: 95419 [13:23:42]line ФПД: 66325402240763 [13:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T132351&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95419&fm=66325402240763&tin=02508201610067®Number=0000000000090555&sum=70000 [13:23:42]OFD Sender: Processing packet 95419 [packets to send 30, broken 29] [13:23:42]ProducePacketName [13:23:42]name=ofd_packets/00095419 [13:23:42]OFD Sender: To server: pG, [13:23:42]CommunicateWithHost lk.salyk.kg:30040 [13:23:42]ConnectInit lk.salyk.kg [13:23:42]written 0, free lines is 4095 [13:23:42]Connected sock=10 [13:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 FE E6 07 01 41 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 72 00 00 00 F4 03 04 00 E7 A8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 74 01 00 35 04 06 00 3C 52 96 0A 46 FB 0A 66 40 CD A3 F1 09 FB [13:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 E1 B2 47 00 6C AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BB 74 01 00 F4 03 04 00 3A 54 F1 65 B6 04 01 00 00 68 DA 9D 68 17 D0 D0 32 [13:23:42]CommunicateWithHost err = 0 [13:23:42]CheckOFDResponse [13:23:42]1017 (14) - 77093643461234 [13:23:42]1041 (16) - 0000000000874811 [13:23:42]1040 (4) - 95419 [13:23:42]1012 (4) - 13.03.2024 07:22 [13:23:42]1206 (1) - 0 [13:23:42]OFD Sender: Remove packet 95419 [13:23:42]ProducePacketName [13:23:42]name=ofd_packets/00095419 [13:23:42]NVStorageDeleteData [13:23:42]Write to MH i2c: 01 00 00 B6 7F 35 [13:23:42]Write i2c OK [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: 01 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: 01 07 00 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: 01 07 00 B6 7F 00 80 00 00 00 45 0D 0E [13:23:42]RasterBufferAndPrint [13:23:42]line [13:23:42]line [13:23:42]line [13:23:42]line [13:23:42]line [13:23:42]written 0, free lines is 3403 [13:23:42]process_action close_receipt done [13:23:42]requested_data is exist [13:23:42]produce_requested_data [13:23:42]requested_item fm.sn is exist - process it [13:23:42]wFMCommunicate request_size=4 [13:23:42]MH_SAM_APDU [13:23:42]CAPDU: 80 11 00 00 [13:23:42]Write to MH i2c: E2 08 00 BD 7F 80 11 00 00 00 00 00 00 B6 [13:23:42]Write i2c OK [13:23:42]MH_I2C_Read... [13:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:42]Read from MH i2c: E2 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: E2 17 00 [13:23:42]MH_I2C_Read... [13:23:42]Read from MH i2c: E2 17 00 BD 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 06 [13:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:23:42]wFMCommunicate OK [13:23:42]requested_item fd.num is exist - process it [13:23:42]SAM_PROTO_GetFieldsCounters [13:23:42]wFMCommunicate request_size=4 [13:23:42]MH_SAM_APDU [13:23:42]CAPDU: 80 13 00 00 [13:23:42]Write to MH i2c: E2 08 00 BE 7F 80 13 00 00 00 00 00 00 B9 [13:23:42]Write i2c OK [13:23:42]MH_I2C_Read... [13:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:43]Read from MH i2c: E2 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 62 00 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 62 00 BE 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BB 74 01 00 0E 04 04 00 48 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 A5 [13:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BB 74 01 00 0E 04 04 00 48 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 [13:23:43]wFMCommunicate OK [13:23:43]SAM_PROTO_GetFieldsCounters done [13:23:43]requested_item shift.num is exist - process it [13:23:43]requested_item shift.opened is exist - process it [13:23:43]req_shift_opened [13:23:43]FM_GetShiftState [13:23:43]SAM_PROTO_GetShiftState [13:23:43]wFMCommunicate request_size=4 [13:23:43]MH_SAM_APDU [13:23:43]CAPDU: 80 13 01 00 [13:23:43]Write to MH i2c: E2 08 00 BF 7F 80 13 01 00 00 00 00 00 BB [13:23:43]Write i2c OK [13:23:43]MH_I2C_Read... [13:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:43]Read from MH i2c: E2 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 0E 00 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 0E 00 BF 7F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A0 [13:23:43]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:23:43]wFMCommunicate OK [13:23:43]SAM_PROTO_GetShiftState done [13:23:43]FM_GetShiftState done [13:23:43]req_shift_opened done [13:23:43]requested_item shift.open_date is exist - process it [13:23:43]req_shift_open_date [13:23:43]req_shift_open_date done [13:23:43]produce_requested_data done [13:23:43]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95419,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:23:43]process_action_free close_receipt [13:23:43]json_value_free [13:23:43]json_value_free done [13:23:43]process_json_proto returns [13:23:43]Send response to host [13:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95419,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:23:43]free response buf [13:23:43]execute_script done [13:23:43]execute_script returns [13:23:43]free content buf [13:23:43]Sock 8.Close socket [13:23:43]Sock 8.Thread stoped [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:13]accept exits with 9 [13:26:13]New connection [13:26:13]New thread 3066813796 created [13:26:13]Thread 3066957156 joined [13:26:13]Waiting for new connection... [13:26:13] Sock 9.Parse request [13:26:13]Sock 9.Check first char [13:26:13]Sock 9.First char is OK [13:26:13]request: POST /json_proto HTTP/1.0 [13:26:13]Method: POST [13:26:13]URL: /json_proto [13:26:13]Method is POST - this is cgi request [13:26:13]url: /json_proto [13:26:13]query_string will be loaded in cgi processing [13:26:13]execute_cgi json_proto POST (null) [13:26:13]execute_cgi path=json_proto method=POST [13:26:13]POST find Content-Length [13:26:13]Host: 172.17.62.67:8080 [13:26:13]Content-Length: 682 [13:26:13]Content-Type: application/json [13:26:13] [13:26:13]POST finish read [13:26:13]Found Content-Length = 682 [13:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:13]execute_script... [13:26: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)196410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 28.780, "sum" : 2000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:13]POST & json_proto [13:26:13]process_json_proto [13:26:13]json parsed OK: [13:26:13]protocol is kg_v1.0 [13:26:13]action value=close_receipt [13:26:13]process_action close_receipt [13:26:13]cmd_close_receipt [13:26:13]MH_GetDate [13:26:13]Write to MH i2c: F0 00 00 C0 7F 2E [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: F0 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: F0 05 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: F0 05 00 C0 7F 00 80 A9 F1 65 B2 [13:26:13]GetLastDocTimeStamp 1710336231 [13:26:13]current date 1710336384 [13:26:13]FM_GetShiftState [13:26:13]SAM_PROTO_GetShiftState [13:26:13]wFMCommunicate request_size=4 [13:26:13]MH_SAM_APDU [13:26:13]CAPDU: 80 13 01 00 [13:26:13]Write to MH i2c: E2 08 00 C1 7F 80 13 01 00 00 00 00 00 BD [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 0E 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 0E 00 C1 7F 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A2 [13:26:13]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:26:13]wFMCommunicate OK [13:26:13]SAM_PROTO_GetShiftState done [13:26:13]FM_GetShiftState done [13:26:13]opened in 1710288279 [13:26:13]opened+sec_in_day 1710374679 [13:26:13]quantity*price = 200021 [13:26:13]sum+1 = 200022 [13:26:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 115 13.03.2024 13:26 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95420 ФПД: 97811526051407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T132624&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95420&fm=97811526051407&tin=02508201610067®Number=0000000000090555&sum=200000 [13:26:14]StoreToDocumentArchive [13:26:14]shift 328 fd 95420 [13:26:14]save to /storage/0328/doc_00095420 [13:26:14]save last doc name /storage/0328/doc_00095420 to /storage/kkm_last_doc_name [13:26:14]save OK [13:26:14]Clear old archive folders... [13:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:14]tlvbuf is 01B89730 [13:26:14]SAM_PROTO_ClearQueue [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 09 00 00 [13:26:14]Write to MH i2c: E2 08 00 CE 7F 80 09 00 00 00 00 00 00 BF [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 CE 7F 00 90 00 C1 [13:26:14]RAPDU: 90 00 [13:26:14]wFMCommunicate OK [13:26:14]SAM_PROTO_ClearQueue done [13:26:14]KKMCreateOFDPacket [13:26:14]OFDProtocolAddRootSTLVToBuf [13:26:14]FM_MakeSignedData [13:26:14]FM_MakeSignedData [13:26:14]SAM_PROTO_SignData [13:26:14]wFMCommunicate request_size=4 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 0D 01 02 [13:26:14]Write to MH i2c: E2 08 00 CF 7F 80 0D 01 02 00 00 00 00 C7 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:14]Read from MH i2c: E2 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 [13:26:14]MH_I2C_Read... [13:26:14]Read from MH i2c: E2 03 00 CF 7F 00 90 00 C2 [13:26:14]RAPDU: 90 00 [13:26:14]wFMCommunicate OK [13:26:14]wFMCommunicate request_size=255 [13:26:14]MH_SAM_APDU [13:26:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 80 A9 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 74 01 00 35 04 06 00 58 [13:26:14]Write to MH i2c: E2 02 01 D0 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 80 A9 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 74 01 00 35 04 06 00 58 00 00 F2 [13:26:14]Write i2c OK [13:26:14]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:15]Read from MH i2c: E2 03 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 03 00 D0 7F 00 90 00 C3 [13:26:15]RAPDU: 90 00 [13:26:15]wFMCommunicate OK [13:26:15]wFMCommunicate request_size=10 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 0D 02 02 05 F5 85 43 E6 4F [13:26:15]Write to MH i2c: E2 0D 00 D1 7F 80 0D 02 02 05 00 F5 85 43 E6 4F 00 00 C6 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 03 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 03 00 D1 7F 00 90 00 C4 [13:26:15]RAPDU: 90 00 [13:26:15]wFMCommunicate OK [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 0D 03 02 [13:26:15]Write to MH i2c: E2 08 00 D2 7F 80 0D 03 02 00 00 00 00 CC [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0B 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0B 00 D2 7F 00 CC 5C 01 A3 BF B4 C0 8F 90 00 5B [13:26:15]RAPDU: CC 5C 01 A3 BF B4 C0 8F 90 00 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_SignData done [13:26:15]FM_MakeSignedData done [13:26:15]CreateOFDProtocolMessage [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 11 00 00 [13:26:15]Write to MH i2c: E2 08 00 D3 7F 80 11 00 00 00 00 00 00 CC [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 17 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 17 00 D3 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1C [13:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:26:15]wFMCommunicate OK [13:26:15]CreateOFDProtocolMessage done [13:26:15]OFDSenderStorePacket 95420 [13:26:15]StoreOFDPacket docnum=95420 [13:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 39 D8 07 01 E9 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 80 A9 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 74 01 00 35 04 06 00 58 F5 85 43 E6 4F CC 5C 01 A3 BF B4 C0 8F [13:26:15]CheckFolder [13:26:15]dirname=/storage/ofd_packets [13:26:15]CheckFolder done [13:26:15]ProducePacketName [13:26:15]name=ofd_packets/00095420 [13:26:15]NVStorageSaveData ofd_packets/00095420 [13:26:15]File name is /storage/ofd_packets/00095420 [13:26:15]Write 301 bytes [13:26:15]NVStorageSaveData done [13:26:15]OFDSenderStorePacket done [13:26:15]KKMCreateOFDPacket done [13:26:15]NVStorageSaveData kkm_last_timestamp [13:26:15]File name is /storage/kkm_last_timestamp [13:26:15]Write 4 bytes [13:26:15]NVStorageSaveData done [13:26:15]ExternCall_PrintAddStr [13:26:15]wPrintStart [13:26:15]Write to MH i2c: 01 00 00 D4 7F 53 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 07 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 07 00 D4 7F 00 80 00 00 00 FF 0F E8 [13:26:15]RasterBufferAndPrint [13:26:15]line Счет N : (1)196410 [13:26:15]line ИНН: 02508201610067 [13:26:15]line Контрольно-Кассовый Чек [13:26:15]line ПРОДАЖА [13:26:15]line ТРК (МРК, ГНК) : 21 [13:26:15]line Товар: 2710124500 [13:26:15]line Аи-95-К-5 [13:26:15]line 28.780 * 69.50 [13:26:15]line = 2000.21 [13:26:15]line НДС 12% НСП 1% [13:26:15]line > о реализуемом товаре [13:26:15]line ОКРУГЛЕНИЕ: -0.21 [13:26:15]line ИТОГО: 2000.00 [13:26:15]line Внесено: 2000.00 [13:26:15]line СДАЧА: 0.00 [13:26:15]line НСП 1% : 17.70 [13:26:15]line НДС 12% : 212.41 [13:26:15]line Наличными: 2000.00 [13:26:15]line Безнал.: 0.00 [13:26:15]line Место: АЗС № 6 "Партнер Нефть" [13:26:15]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:26:15]line СНО: Общий режим [13:26:15]line Чек 115 13.03.2024 13:26 [13:26:15]line Смена: 328 ФФД: 1.0 [13:26:15]line ЗНМ: 0300000009 [13:26:15]line РНМ: 0000000000090555 [13:26:15]line Версия ККМ: 001 [13:26:15]line ФМ: 0000000000874811 [13:26:15]line ФД: 95420 [13:26:15]line ФПД: 97811526051407 [13:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T132624&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95420&fm=97811526051407&tin=02508201610067®Number=0000000000090555&sum=200000 [13:26:15]OFD Sender: Processing packet 95420 [packets to send 30, broken 29] [13:26:15]ProducePacketName [13:26:15]name=ofd_packets/00095420 [13:26:15]OFD Sender: To server: pG, [13:26:15]CommunicateWithHost lk.salyk.kg:30040 [13:26:15]ConnectInit lk.salyk.kg [13:26:15]written 0, free lines is 4095 [13:26:15]Connected sock=10 [13:26:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 39 D8 07 01 E9 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 6C 70 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 55 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 F9 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 80 A9 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BC 74 01 00 35 04 06 00 58 F5 85 43 E6 4F CC 5C 01 A3 BF B4 C0 8F [13:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 ED E7 47 00 30 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 34 38 31 31 10 04 04 00 BC 74 01 00 F4 03 04 00 D3 54 F1 65 B6 04 01 00 00 E1 87 67 FE 5C 78 23 9D [13:26:15]CommunicateWithHost err = 0 [13:26:15]CheckOFDResponse [13:26:15]1017 (14) - 77093643461234 [13:26:15]1041 (16) - 0000000000874811 [13:26:15]1040 (4) - 95420 [13:26:15]1012 (4) - 13.03.2024 07:25 [13:26:15]1206 (1) - 0 [13:26:15]OFD Sender: Remove packet 95420 [13:26:15]ProducePacketName [13:26:15]name=ofd_packets/00095420 [13:26:15]NVStorageDeleteData [13:26:16]Write to MH i2c: 01 00 00 FF 7F 7E [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: 01 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: 01 07 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: 01 07 00 FF 7F 00 80 00 00 00 4C 0D 5E [13:26:16]RasterBufferAndPrint [13:26:16]line [13:26:16]line [13:26:16]line [13:26:16]line [13:26:16]line [13:26:16]written 0, free lines is 3410 [13:26:16]process_action close_receipt done [13:26:16]requested_data is exist [13:26:16]produce_requested_data [13:26:16]requested_item fm.sn is exist - process it [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 11 00 00 [13:26:16]Write to MH i2c: E2 08 00 06 80 80 11 00 00 00 00 00 00 00 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:16]E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 17 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 17 00 06 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 50 [13:26:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:26:16]wFMCommunicate OK [13:26:16]requested_item fd.num is exist - process it [13:26:16]SAM_PROTO_GetFieldsCounters [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 13 00 00 [13:26:16]Write to MH i2c: E2 08 00 07 80 80 13 00 00 00 00 00 00 03 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 62 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 62 00 07 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BC 74 01 00 0E 04 04 00 48 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 F3 [13:26:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BC 74 01 00 0E 04 04 00 48 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 [13:26:16]wFMCommunicate OK [13:26:16]SAM_PROTO_GetFieldsCounters done [13:26:16]requested_item shift.num is exist - process it [13:26:16]requested_item shift.opened is exist - process it [13:26:16]req_shift_opened [13:26:16]FM_GetShiftState [13:26:16]SAM_PROTO_GetShiftState [13:26:16]wFMCommunicate request_size=4 [13:26:16]MH_SAM_APDU [13:26:16]CAPDU: 80 13 01 00 [13:26:16]Write to MH i2c: E2 08 00 08 80 80 13 01 00 00 00 00 00 05 [13:26:16]Write i2c OK [13:26:16]MH_I2C_Read... [13:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:16]Read from MH i2c: E2 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 0E 00 [13:26:16]MH_I2C_Read... [13:26:16]Read from MH i2c: E2 0E 00 08 80 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 EA [13:26:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:26:16]wFMCommunicate OK [13:26:16]SAM_PROTO_GetShiftState done [13:26:16]FM_GetShiftState done [13:26:16]req_shift_opened done [13:26:16]requested_item shift.open_date is exist - process it [13:26:16]req_shift_open_date [13:26:16]req_shift_open_date done [13:26:16]produce_requested_data done [13:26:16]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95420,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:26:16]process_action_free close_receipt [13:26:16]json_value_free [13:26:16]json_value_free done [13:26:16]process_json_proto returns [13:26:16]Send response to host [13:26:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95420,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:26:16]free response buf [13:26:16]execute_script done [13:26:16]execute_script returns [13:26:16]free content buf [13:26:16]Sock 9.Close socket [13:26:16]Sock 9.Thread stoped [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:48]accept exits with 8 [13:30:48]New connection [13:30:48]New thread 3066957156 created [13:30:48]Thread 3066813796 joined [13:30:48]Waiting for new connection... [13:30:48] Sock 8.Parse request [13:30:48]Sock 8.Check first char [13:30:48]Sock 8.First char is OK [13:30:48]request: POST /json_proto HTTP/1.0 [13:30:48]Method: POST [13:30:48]URL: /json_proto [13:30:48]Method is POST - this is cgi request [13:30:48]url: /json_proto [13:30:48]query_string will be loaded in cgi processing [13:30:48]execute_cgi json_proto POST (null) [13:30:48]execute_cgi path=json_proto method=POST [13:30:48]POST find Content-Length [13:30:48]Host: 172.17.62.67:8080 [13:30:48]Content-Length: 677 [13:30:48]Content-Type: application/json [13:30:48] [13:30:48]POST finish read [13:30:48]Found Content-Length = 677 [13:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196411", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:48]execute_script... [13:30:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196411", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:48]POST & json_proto [13:30:48]process_json_proto [13:30:48]json parsed OK: [13:30:48]protocol is kg_v1.0 [13:30:48]action value=close_receipt [13:30:48]process_action close_receipt [13:30:48]cmd_close_receipt [13:30:48]MH_GetDate [13:30:48]Write to MH i2c: F0 00 00 09 80 78 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: F0 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: F0 05 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: F0 05 00 09 80 00 93 AA F1 65 10 [13:30:48]GetLastDocTimeStamp 1710336384 [13:30:48]current date 1710336659 [13:30:48]FM_GetShiftState [13:30:48]SAM_PROTO_GetShiftState [13:30:48]wFMCommunicate request_size=4 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 13 01 00 [13:30:48]Write to MH i2c: E2 08 00 0A 80 80 13 01 00 00 00 00 00 07 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 0E 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 0E 00 0A 80 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 EC [13:30:48]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:30:48]wFMCommunicate OK [13:30:48]SAM_PROTO_GetShiftState done [13:30:48]FM_GetShiftState done [13:30:48]opened in 1710288279 [13:30:48]opened+sec_in_day 1710374679 [13:30:48]quantity*price = 60006 [13:30:48]sum+1 = 60008 [13:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 116 13.03.2024 13:30 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95421 ФПД: 133375037640333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T133059&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95421&fm=133375037640333&tin=02508201610067®Number=0000000000090555&sum=60000 [13:30:49]StoreToDocumentArchive [13:30:49]shift 328 fd 95421 [13:30:49]save to /storage/0328/doc_00095421 [13:30:49]save last doc name /storage/0328/doc_00095421 to /storage/kkm_last_doc_name [13:30:49]save OK [13:30:49]Clear old archive folders... [13:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:49]tlvbuf is 01A54FB0 [13:30:49]SAM_PROTO_ClearQueue [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 09 00 00 [13:30:49]Write to MH i2c: E2 08 00 17 80 80 09 00 00 00 00 00 00 09 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 17 80 00 90 00 0B [13:30:49]RAPDU: 90 00 [13:30:49]wFMCommunicate OK [13:30:49]SAM_PROTO_ClearQueue done [13:30:49]KKMCreateOFDPacket [13:30:49]OFDProtocolAddRootSTLVToBuf [13:30:49]FM_MakeSignedData [13:30:49]FM_MakeSignedData [13:30:49]SAM_PROTO_SignData [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 0D 01 02 [13:30:49]Write to MH i2c: E2 08 00 18 80 80 0D 01 02 00 00 00 00 11 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 18 80 00 90 00 0C [13:30:49]RAPDU: 90 00 [13:30:49]wFMCommunicate OK [13:30:49]wFMCommunicate request_size=255 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 AA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 74 01 00 35 04 06 00 79 [13:30:49]Write to MH i2c: E2 02 01 19 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 AA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 74 01 00 35 04 06 00 79 00 00 1B [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 19 80 00 90 00 0D [13:30:49]RAPDU: 90 00 [13:30:49]wFMCommunicate OK [13:30:49]wFMCommunicate request_size=10 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 0D 02 02 05 4D CB BD 8E 8D [13:30:49]Write to MH i2c: E2 0D 00 1A 80 80 0D 02 02 05 00 4D CB BD 8E 8D 00 00 0E [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 03 00 1A 80 00 90 00 0E [13:30:49]RAPDU: 90 00 [13:30:49]wFMCommunicate OK [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 0D 03 02 [13:30:49]Write to MH i2c: E2 08 00 1B 80 80 0D 03 02 00 00 00 00 16 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 0B 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 0B 00 1B 80 00 CC 68 2E AB DE 19 AC 1D 90 00 E4 [13:30:49]RAPDU: CC 68 2E AB DE 19 AC 1D 90 00 [13:30:49]wFMCommunicate OK [13:30:49]SAM_PROTO_SignData done [13:30:49]FM_MakeSignedData done [13:30:49]CreateOFDProtocolMessage [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 11 00 00 [13:30:49]Write to MH i2c: E2 08 00 1C 80 80 11 00 00 00 00 00 00 16 [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 17 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 17 00 1C 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 66 [13:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:30:50]wFMCommunicate OK [13:30:50]CreateOFDProtocolMessage done [13:30:50]OFDSenderStorePacket 95421 [13:30:50]StoreOFDPacket docnum=95421 [13:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4E BB 07 01 66 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 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 AA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 74 01 00 35 04 06 00 79 4D CB BD 8E 8D CC 68 2E AB DE 19 AC 1D [13:30:50]CheckFolder [13:30:50]dirname=/storage/ofd_packets [13:30:50]CheckFolder done [13:30:50]ProducePacketName [13:30:50]name=ofd_packets/00095421 [13:30:50]NVStorageSaveData ofd_packets/00095421 [13:30:50]File name is /storage/ofd_packets/00095421 [13:30:50]Write 301 bytes [13:30:50]NVStorageSaveData done [13:30:50]OFDSenderStorePacket done [13:30:50]KKMCreateOFDPacket done [13:30:50]NVStorageSaveData kkm_last_timestamp [13:30:50]File name is /storage/kkm_last_timestamp [13:30:50]Write 4 bytes [13:30:50]NVStorageSaveData done [13:30:50]ExternCall_PrintAddStr [13:30:50]wPrintStart [13:30:50]Write to MH i2c: 01 00 00 1D 80 9D [13:30:50]OFD Sender: Processing packet 95421 [packets to send 30, broken 29] [13:30:50]ProducePacketName [13:30:50]name=ofd_packets/00095421 [13:30:50]OFD Sender: To server: pG, [13:30:50]CommunicateWithHost lk.salyk.kg:30040 [13:30:50]ConnectInit lk.salyk.kg [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 07 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 07 00 1D 80 00 80 00 00 00 FF 0F 32 [13:30:50]RasterBufferAndPrint [13:30:50]line Счет N : (1)196411 [13:30:50]line ИНН: 02508201610067 [13:30:50]line Контрольно-Кассовый Чек [13:30:50]line ПРОДАЖА [13:30:50]line ТРК (МРК, ГНК) : 22 [13:30:50]line Товар: 2710124130 [13:30:50]line Аи-92-К-5 [13:30:50]line 9.540 * 62.90 [13:30:50]line = 600.07 [13:30:50]line НДС 12% НСП 1% [13:30:50]line > о реализуемом товаре [13:30:50]line ОКРУГЛЕНИЕ: -0.07 [13:30:50]line ИТОГО: 600.00 [13:30:50]line Внесено: 600.00 [13:30:50]line СДАЧА: 0.00 [13:30:50]line НСП 1% : 5.31 [13:30:50]line НДС 12% : 63.72 [13:30:50]line Наличными: 600.00 [13:30:50]line Безнал.: 0.00 [13:30:50]line Место: АЗС № 6 "Партнер Нефть" [13:30:50]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:30:50]line СНО: Общий режим [13:30:50]line Чек 116 13.03.2024 13:30 [13:30:50]line Смена: 328 ФФД: 1.0 [13:30:50]line ЗНМ: 0300000009 [13:30:50]line РНМ: 0000000000090555 [13:30:50]line Версия ККМ: 001 [13:30:50]line ФМ: 0000000000874811 [13:30:50]line ФД: 95421 [13:30:50]line ФПД: 133375037640333 [13:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T133059&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95421&fm=133375037640333&tin=02508201610067®Number=0000000000090555&sum=60000 [13:30:50]Connected sock=10 [13:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4E BB 07 01 66 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 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 93 AA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 74 01 00 35 04 06 00 79 4D CB BD 8E 8D CC 68 2E AB DE 19 AC 1D [13:30:50]written 0, free lines is 4095 [13:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 5F BD 47 00 E4 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BD 74 01 00 F4 03 04 00 E6 55 F1 65 B6 04 01 00 00 29 C2 84 8D E6 C4 2D 5B [13:30:50]CommunicateWithHost err = 0 [13:30:50]CheckOFDResponse [13:30:50]1017 (14) - 77093643461234 [13:30:50]1041 (16) - 0000000000874811 [13:30:50]1040 (4) - 95421 [13:30:50]1012 (4) - 13.03.2024 07:29 [13:30:50]1206 (1) - 0 [13:30:50]OFD Sender: Remove packet 95421 [13:30:50]ProducePacketName [13:30:50]name=ofd_packets/00095421 [13:30:50]NVStorageDeleteData [13:30:50]Write to MH i2c: 01 00 00 48 80 C8 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 07 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: 01 07 00 48 80 00 80 00 00 00 4E 0D AA [13:30:50]RasterBufferAndPrint [13:30:50]line [13:30:50]line [13:30:50]line [13:30:50]line [13:30:50]line [13:30:50]written 0, free lines is 3412 [13:30:50]process_action close_receipt done [13:30:50]requested_data is exist [13:30:50]produce_requested_data [13:30:50]requested_item fm.sn is exist - process it [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 11 00 00 [13:30:50]Write to MH i2c: E2 08 00 4F 80 80 11 00 00 00 00 00 00 49 [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:50]Read from MH i2c: E2 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 17 00 [13:30:50]MH_I2C_Read... [13:30:50]Read from MH i2c: E2 17 00 4F 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 99 [13:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:30:50]wFMCommunicate OK [13:30:50]requested_item fd.num is exist - process it [13:30:50]SAM_PROTO_GetFieldsCounters [13:30:50]wFMCommunicate request_size=4 [13:30:50]MH_SAM_APDU [13:30:50]CAPDU: 80 13 00 00 [13:30:50]Write to MH i2c: E2 08 00 50 80 80 13 00 00 00 00 00 00 4C [13:30:50]Write i2c OK [13:30:50]MH_I2C_Read... [13:30:51]OFD Sender: No OFD packet to send [13:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 62 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 62 00 50 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BD 74 01 00 0E 04 04 00 48 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 40 [13:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BD 74 01 00 0E 04 04 00 48 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 [13:30:51]wFMCommunicate OK [13:30:51]SAM_PROTO_GetFieldsCounters done [13:30:51]requested_item shift.num is exist - process it [13:30:51]requested_item shift.opened is exist - process it [13:30:51]req_shift_opened [13:30:51]FM_GetShiftState [13:30:51]SAM_PROTO_GetShiftState [13:30:51]wFMCommunicate request_size=4 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 13 01 00 [13:30:51]Write to MH i2c: E2 08 00 51 80 80 13 01 00 00 00 00 00 4E [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 0E 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 0E 00 51 80 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 33 [13:30:51]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:30:51]wFMCommunicate OK [13:30:51]SAM_PROTO_GetShiftState done [13:30:51]FM_GetShiftState done [13:30:51]req_shift_opened done [13:30:51]requested_item shift.open_date is exist - process it [13:30:51]req_shift_open_date [13:30:51]req_shift_open_date done [13:30:51]produce_requested_data done [13:30:51]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95421,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:30:51]process_action_free close_receipt [13:30:51]json_value_free [13:30:51]json_value_free done [13:30:51]process_json_proto returns [13:30:51]Send response to host [13:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95421,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:30:51]free response buf [13:30:51]execute_script done [13:30:51]execute_script returns [13:30:51]free content buf [13:30:51]Sock 8.Close socket [13:30:51]Sock 8.Thread stoped [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:16]accept exits with 9 [13:32:16]New connection [13:32:16]New thread 3066813796 created [13:32:16]Thread 3066957156 joined [13:32:16]Waiting for new connection... [13:32:16] Sock 9.Parse request [13:32:16]Sock 9.Check first char [13:32:16]Sock 9.First char is OK [13:32:16]request: POST /json_proto HTTP/1.0 [13:32:16]Method: POST [13:32:16]URL: /json_proto [13:32:16]Method is POST - this is cgi request [13:32:16]url: /json_proto [13:32:16]query_string will be loaded in cgi processing [13:32:16]execute_cgi json_proto POST (null) [13:32:16]execute_cgi path=json_proto method=POST [13:32:16]POST find Content-Length [13:32:16]Host: 172.17.62.67:8080 [13:32:16]Content-Length: 812 [13:32:16]Content-Type: application/json [13:32:16] [13:32:16]POST finish read [13:32:16]Found Content-Length = 812 [13:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:16]execute_script... [13:32:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:16]POST & json_proto [13:32:16]process_json_proto [13:32:16]json parsed OK: [13:32:16]protocol is kg_v1.0 [13:32:16]action value=close_receipt [13:32:16]process_action close_receipt [13:32:16]cmd_close_receipt [13:32:16]MH_GetDate [13:32:16]Write to MH i2c: F0 00 00 52 80 C1 [13:32:16]Write i2c OK [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: F0 [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: F0 05 00 [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: F0 05 00 52 80 00 EB AA F1 65 B1 [13:32:16]GetLastDocTimeStamp 1710336659 [13:32:16]current date 1710336747 [13:32:16]FM_GetShiftState [13:32:16]SAM_PROTO_GetShiftState [13:32:16]wFMCommunicate request_size=4 [13:32:16]MH_SAM_APDU [13:32:16]CAPDU: 80 13 01 00 [13:32:16]Write to MH i2c: E2 08 00 53 80 80 13 01 00 00 00 00 00 50 [13:32:16]Write i2c OK [13:32:16]MH_I2C_Read... [13:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:16]Read from MH i2c: E2 [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: E2 0E 00 [13:32:16]MH_I2C_Read... [13:32:16]Read from MH i2c: E2 0E 00 53 80 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 35 [13:32:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:32:16]wFMCommunicate OK [13:32:16]SAM_PROTO_GetShiftState done [13:32:16]FM_GetShiftState done [13:32:16]opened in 1710288279 [13:32:16]opened+sec_in_day 1710374679 [13:32:16]quantity*price = 100003 [13:32:16]sum+1 = 100005 [13:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.04 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 117 13.03.2024 13:32 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95422 ФПД: 14104535734582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T133227&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95422&fm=14104535734582&tin=02508201610067®Number=0000000000090555&sum=100004 [13:32:17]StoreToDocumentArchive [13:32:17]shift 328 fd 95422 [13:32:17]save to /storage/0328/doc_00095422 [13:32:17]save last doc name /storage/0328/doc_00095422 to /storage/kkm_last_doc_name [13:32:17]save OK [13:32:17]Clear old archive folders... [13:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:32:17]tlvbuf is 01A80560 [13:32:17]SAM_PROTO_ClearQueue [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 09 00 00 [13:32:17]Write to MH i2c: E2 08 00 60 80 80 09 00 00 00 00 00 00 52 [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:17]Read from MH i2c: E2 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 [13:32:17]MH_I2C_Read... [13:32:17]Read from MH i2c: E2 03 00 60 80 00 90 00 54 [13:32:17]RAPDU: 90 00 [13:32:17]wFMCommunicate OK [13:32:17]SAM_PROTO_ClearQueue done [13:32:17]KKMCreateOFDPacket [13:32:17]OFDProtocolAddRootSTLVToBuf [13:32:17]FM_MakeSignedData [13:32:17]FM_MakeSignedData [13:32:17]SAM_PROTO_SignData [13:32:17]wFMCommunicate request_size=4 [13:32:17]MH_SAM_APDU [13:32:17]CAPDU: 80 0D 01 02 [13:32:17]Write to MH i2c: E2 08 00 61 80 80 0D 01 02 00 00 00 00 5A [13:32:17]Write i2c OK [13:32:17]MH_I2C_Read... [13:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 61 80 00 90 00 55 [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=255 [13:32:18]MH_SAM_APDU [13:32:18]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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 EB AA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 74 01 00 35 04 06 00 [13:32:18]Write to MH i2c: E2 02 01 62 80 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 EB AA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 74 01 00 35 04 06 00 00 00 E4 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 62 80 00 90 00 56 [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=11 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 02 02 06 0C D3 F7 D7 99 36 [13:32:18]Write to MH i2c: E2 0E 00 63 80 80 0D 02 02 06 00 0C D3 F7 D7 99 36 00 00 E5 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 03 00 63 80 00 90 00 57 [13:32:18]RAPDU: 90 00 [13:32:18]wFMCommunicate OK [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 0D 03 02 [13:32:18]Write to MH i2c: E2 08 00 64 80 80 0D 03 02 00 00 00 00 5F [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0B 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 0B 00 64 80 00 7B 81 90 92 E9 AE F2 BA 90 00 C1 [13:32:18]RAPDU: 7B 81 90 92 E9 AE F2 BA 90 00 [13:32:18]wFMCommunicate OK [13:32:18]SAM_PROTO_SignData done [13:32:18]FM_MakeSignedData done [13:32:18]CreateOFDProtocolMessage [13:32:18]wFMCommunicate request_size=4 [13:32:18]MH_SAM_APDU [13:32:18]CAPDU: 80 11 00 00 [13:32:18]Write to MH i2c: E2 08 00 65 80 80 11 00 00 00 00 00 00 5F [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:18]Read from MH i2c: E2 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: E2 17 00 65 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AF [13:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:32:18]wFMCommunicate OK [13:32:18]CreateOFDProtocolMessage done [13:32:18]OFDSenderStorePacket 95422 [13:32:18]StoreOFDPacket docnum=95422 [13:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 BB DC 08 01 5C C4 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 EB AA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 74 01 00 35 04 06 00 0C D3 F7 D7 99 36 7B 81 90 92 E9 AE F2 BA [13:32:18]CheckFolder [13:32:18]dirname=/storage/ofd_packets [13:32:18]CheckFolder done [13:32:18]ProducePacketName [13:32:18]name=ofd_packets/00095422 [13:32:18]NVStorageSaveData ofd_packets/00095422 [13:32:18]File name is /storage/ofd_packets/00095422 [13:32:18]Write 302 bytes [13:32:18]NVStorageSaveData done [13:32:18]OFDSenderStorePacket done [13:32:18]KKMCreateOFDPacket done [13:32:18]NVStorageSaveData kkm_last_timestamp [13:32:18]File name is /storage/kkm_last_timestamp [13:32:18]Write 4 bytes [13:32:18]NVStorageSaveData done [13:32:18]ExternCall_PrintAddStr [13:32:18]wPrintStart [13:32:18]Write to MH i2c: 01 00 00 66 80 E6 [13:32:18]Write i2c OK [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 [13:32:18]MH_I2C_Read... [13:32:18]Read from MH i2c: 01 07 00 66 80 00 80 00 00 00 FF 0F 7B [13:32:18]RasterBufferAndPrint [13:32:18]line Счет N : (1)196412 [13:32:18]line ИНН: 02508201610067 [13:32:18]line Контрольно-Кассовый Чек [13:32:18]line ПРОДАЖА [13:32:18]line ТРК (МРК, ГНК) : 43 [13:32:18]line Товар: 2710124130 [13:32:18]line SUPER 92-К-5 [13:32:18]line 15.650 * 63.90 [13:32:18]line = 1000.04 [13:32:18]line НДС 12% НСП 1% [13:32:18]line > о реализуемом товаре [13:32:18]line ИТОГО: 1000.04 [13:32:18]line НСП 1% : 8.85 [13:32:18]line НДС 12% : 106.20 [13:32:18]line Наличными: 0.00 [13:32:18]line Безнал.: 1000.04 [13:32:18]line Место: АЗС № 6 "Партнер Нефть" [13:32:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:32:18]line СНО: Общий режим [13:32:18]line Чек 117 13.03.2024 13:32 [13:32:18]line Смена: 328 ФФД: 1.0 [13:32:18]line ЗНМ: 0300000009 [13:32:18]line РНМ: 0000000000090555 [13:32:18]line Версия ККМ: 001 [13:32:18]line Платежная система: Бакай Банк [13:32:18]line ФМ: 0000000000874811 [13:32:18]line ФД: 95422 [13:32:18]line ФПД: 14104535734582 [13:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T133227&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95422&fm=14104535734582&tin=02508201610067®Number=0000000000090555&sum=100004 [13:32:18]OFD Sender: Processing packet 95422 [packets to send 30, broken 29] [13:32:18]ProducePacketName [13:32:18]name=ofd_packets/00095422 [13:32:18]OFD Sender: To server: pG, [13:32:18]CommunicateWithHost lk.salyk.kg:30040 [13:32:18]ConnectInit lk.salyk.kg [13:32:18]written 0, free lines is 4095 [13:32:18]Connected sock=10 [13:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 BB DC 08 01 5C C4 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 EB AA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 74 01 00 35 04 06 00 0C D3 F7 D7 99 36 7B 81 90 92 E9 AE F2 BA [13:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 71 48 47 00 BE 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BE 74 01 00 F4 03 04 00 3E 56 F1 65 B6 04 01 00 00 01 6B 00 37 6B 0E 4E F6 [13:32:19]CommunicateWithHost err = 0 [13:32:19]CheckOFDResponse [13:32:19]1017 (14) - 77093643461234 [13:32:19]1041 (16) - 0000000000874811 [13:32:19]1040 (4) - 95422 [13:32:19]1012 (4) - 13.03.2024 07:31 [13:32:19]1206 (1) - 0 [13:32:19]OFD Sender: Remove packet 95422 [13:32:19]ProducePacketName [13:32:19]name=ofd_packets/00095422 [13:32:19]NVStorageDeleteData [13:32:19]Write to MH i2c: 01 00 00 90 80 10 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 07 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: 01 07 00 90 80 00 80 00 00 00 69 0D 0D [13:32:19]RasterBufferAndPrint [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]line [13:32:19]written 0, free lines is 3439 [13:32:19]process_action close_receipt done [13:32:19]requested_data is exist [13:32:19]produce_requested_data [13:32:19]requested_item fm.sn is exist - process it [13:32:19]wFMCommunicate request_size=4 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 11 00 00 [13:32:19]Write to MH i2c: E2 08 00 97 80 80 11 00 00 00 00 00 00 91 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 17 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 17 00 97 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 E1 [13:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:32:19]wFMCommunicate OK [13:32:19]requested_item fd.num is exist - process it [13:32:19]SAM_PROTO_GetFieldsCounters [13:32:19]wFMCommunicate request_size=4 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 13 00 00 [13:32:19]Write to MH i2c: E2 08 00 98 80 80 13 00 00 00 00 00 00 94 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 62 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 62 00 98 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BE 74 01 00 0E 04 04 00 48 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 8C [13:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BE 74 01 00 0E 04 04 00 48 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 [13:32:19]wFMCommunicate OK [13:32:19]SAM_PROTO_GetFieldsCounters done [13:32:19]requested_item shift.num is exist - process it [13:32:19]requested_item shift.opened is exist - process it [13:32:19]req_shift_opened [13:32:19]FM_GetShiftState [13:32:19]SAM_PROTO_GetShiftState [13:32:19]wFMCommunicate request_size=4 [13:32:19]MH_SAM_APDU [13:32:19]CAPDU: 80 13 01 00 [13:32:19]Write to MH i2c: E2 08 00 99 80 80 13 01 00 00 00 00 00 96 [13:32:19]Write i2c OK [13:32:19]MH_I2C_Read... [13:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:19]Read from MH i2c: E2 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 0E 00 [13:32:19]MH_I2C_Read... [13:32:19]Read from MH i2c: E2 0E 00 99 80 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 7B [13:32:19]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:32:19]wFMCommunicate OK [13:32:19]SAM_PROTO_GetShiftState done [13:32:19]FM_GetShiftState done [13:32:19]req_shift_opened done [13:32:19]requested_item shift.open_date is exist - process it [13:32:19]req_shift_open_date [13:32:19]req_shift_open_date done [13:32:19]produce_requested_data done [13:32:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95422,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:32:19]process_action_free close_receipt [13:32:19]json_value_free [13:32:19]json_value_free done [13:32:19]process_json_proto returns [13:32:19]Send response to host [13:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95422,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:32:19]free response buf [13:32:19]execute_script done [13:32:19]execute_script returns [13:32:19]free content buf [13:32:19]Sock 9.Close socket [13:32:19]Sock 9.Thread stoped [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:35]accept exits with 8 [13:36:35]New connection [13:36:35]New thread 3066957156 created [13:36:35]Thread 3066813796 joined [13:36:35]Waiting for new connection... [13:36:35] Sock 8.Parse request [13:36:35]Sock 8.Check first char [13:36:35]Sock 8.First char is OK [13:36:35]request: POST /json_proto HTTP/1.0 [13:36:35]Method: POST [13:36:35]URL: /json_proto [13:36:35]Method is POST - this is cgi request [13:36:35]url: /json_proto [13:36:35]query_string will be loaded in cgi processing [13:36:35]execute_cgi json_proto POST (null) [13:36:35]execute_cgi path=json_proto method=POST [13:36:35]POST find Content-Length [13:36:35]Host: 172.17.62.67:8080 [13:36:35]Content-Length: 819 [13:36:35]Content-Type: application/json [13:36:35] [13:36:35]POST finish read [13:36:35]Found Content-Length = 819 [13:36:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196413", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:35]execute_script... [13:36:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196413", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:35]POST & json_proto [13:36:35]process_json_proto [13:36:35]json parsed OK: [13:36:35]protocol is kg_v1.0 [13:36:35]action value=close_receipt [13:36:35]process_action close_receipt [13:36:35]cmd_close_receipt [13:36:35]MH_GetDate [13:36:35]Write to MH i2c: F0 00 00 9A 80 09 [13:36:35]Write i2c OK [13:36:35]MH_I2C_Read... [13:36:35]Read from MH i2c: F0 [13:36:35]MH_I2C_Read... [13:36:35]Read from MH i2c: F0 05 00 [13:36:35]MH_I2C_Read... [13:36:35]Read from MH i2c: F0 05 00 9A 80 00 EE AB F1 65 FD [13:36:35]GetLastDocTimeStamp 1710336747 [13:36:35]current date 1710337006 [13:36:35]FM_GetShiftState [13:36:35]SAM_PROTO_GetShiftState [13:36:35]wFMCommunicate request_size=4 [13:36:35]MH_SAM_APDU [13:36:35]CAPDU: 80 13 01 00 [13:36:35]Write to MH i2c: E2 08 00 9B 80 80 13 01 00 00 00 00 00 98 [13:36:35]Write i2c OK [13:36:35]MH_I2C_Read... [13:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:35]Read from MH i2c: E2 [13:36:35]MH_I2C_Read... [13:36:35]Read from MH i2c: E2 0E 00 [13:36:35]MH_I2C_Read... [13:36:35]Read from MH i2c: E2 0E 00 9B 80 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 7D [13:36:35]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:36:35]wFMCommunicate OK [13:36:35]SAM_PROTO_GetShiftState done [13:36:35]FM_GetShiftState done [13:36:35]opened in 1710288279 [13:36:35]opened+sec_in_day 1710374679 [13:36:35]quantity*price = 100011 [13:36:35]sum+1 = 100012 [13:36:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.11 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.11 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 118 13.03.2024 13:36 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95423 ФПД: 181655157706941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T133646&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95423&fm=181655157706941&tin=02508201610067®Number=0000000000090555&sum=100011 [13:36:36]StoreToDocumentArchive [13:36:36]shift 328 fd 95423 [13:36:36]save to /storage/0328/doc_00095423 [13:36:36]save last doc name /storage/0328/doc_00095423 to /storage/kkm_last_doc_name [13:36:36]save OK [13:36:36]Clear old archive folders... [13:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:37]tlvbuf is 01AD1DF0 [13:36:37]SAM_PROTO_ClearQueue [13:36:37]wFMCommunicate request_size=4 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 09 00 00 [13:36:37]Write to MH i2c: E2 08 00 A8 80 80 09 00 00 00 00 00 00 9A [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 A8 80 00 90 00 9C [13:36:37]RAPDU: 90 00 [13:36:37]wFMCommunicate OK [13:36:37]SAM_PROTO_ClearQueue done [13:36:37]KKMCreateOFDPacket [13:36:37]OFDProtocolAddRootSTLVToBuf [13:36:37]FM_MakeSignedData [13:36:37]FM_MakeSignedData [13:36:37]SAM_PROTO_SignData [13:36:37]wFMCommunicate request_size=4 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 0D 01 02 [13:36:37]Write to MH i2c: E2 08 00 A9 80 80 0D 01 02 00 00 00 00 A2 [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 A9 80 00 90 00 9D [13:36:37]RAPDU: 90 00 [13:36:37]wFMCommunicate OK [13:36:37]wFMCommunicate request_size=255 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EE AB F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 74 01 00 35 04 06 00 A5 [13:36:37]Write to MH i2c: E2 02 01 AA 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EE AB F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 74 01 00 35 04 06 00 A5 00 00 E7 [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 AA 80 00 90 00 9E [13:36:37]RAPDU: 90 00 [13:36:37]wFMCommunicate OK [13:36:37]wFMCommunicate request_size=10 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 0D 02 02 05 36 E3 25 90 BD [13:36:37]Write to MH i2c: E2 0D 00 AB 80 80 0D 02 02 05 00 36 E3 25 90 BD 00 00 3A [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 03 00 AB 80 00 90 00 9F [13:36:37]RAPDU: 90 00 [13:36:37]wFMCommunicate OK [13:36:37]wFMCommunicate request_size=4 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 0D 03 02 [13:36:37]Write to MH i2c: E2 08 00 AC 80 80 0D 03 02 00 00 00 00 A7 [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 0B 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 0B 00 AC 80 00 25 1B 22 20 03 E9 CE 2C 90 00 10 [13:36:37]RAPDU: 25 1B 22 20 03 E9 CE 2C 90 00 [13:36:37]wFMCommunicate OK [13:36:37]SAM_PROTO_SignData done [13:36:37]FM_MakeSignedData done [13:36:37]CreateOFDProtocolMessage [13:36:37]wFMCommunicate request_size=4 [13:36:37]MH_SAM_APDU [13:36:37]CAPDU: 80 11 00 00 [13:36:37]Write to MH i2c: E2 08 00 AD 80 80 11 00 00 00 00 00 00 A7 [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:37]Read from MH i2c: E2 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 17 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: E2 17 00 AD 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F7 [13:36:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:36:37]wFMCommunicate OK [13:36:37]CreateOFDProtocolMessage done [13:36:37]OFDSenderStorePacket 95423 [13:36:37]StoreOFDPacket docnum=95423 [13:36:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 98 08 07 01 43 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EE AB F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 74 01 00 35 04 06 00 A5 36 E3 25 90 BD 25 1B 22 20 03 E9 CE 2C [13:36:37]CheckFolder [13:36:37]dirname=/storage/ofd_packets [13:36:37]CheckFolder done [13:36:37]ProducePacketName [13:36:37]name=ofd_packets/00095423 [13:36:37]NVStorageSaveData ofd_packets/00095423 [13:36:37]File name is /storage/ofd_packets/00095423 [13:36:37]Write 301 bytes [13:36:37]NVStorageSaveData done [13:36:37]OFDSenderStorePacket done [13:36:37]KKMCreateOFDPacket done [13:36:37]NVStorageSaveData kkm_last_timestamp [13:36:37]File name is /storage/kkm_last_timestamp [13:36:37]Write 4 bytes [13:36:37]NVStorageSaveData done [13:36:37]ExternCall_PrintAddStr [13:36:37]wPrintStart [13:36:37]Write to MH i2c: 01 00 00 AE 80 2E [13:36:37]Write i2c OK [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: 01 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: 01 07 00 [13:36:37]MH_I2C_Read... [13:36:37]Read from MH i2c: 01 07 00 AE 80 00 80 00 00 00 FF 0F C3 [13:36:37]RasterBufferAndPrint [13:36:37]line Счет N : (1)196413 [13:36:37]line ИНН: 02508201610067 [13:36:37]line Контрольно-Кассовый Чек [13:36:37]line ПРОДАЖА [13:36:37]line ТРК (МРК, ГНК) : 12 [13:36:37]line Товар: 2710124130 [13:36:37]line Аи-92-К-5 [13:36:37]line 15.900 * 62.90 [13:36:37]line = 1000.11 [13:36:37]line НДС 12% НСП 1% [13:36:37]line > о реализуемом товаре [13:36:37]line ИТОГО: 1000.11 [13:36:37]line НСП 1% : 8.85 [13:36:37]line НДС 12% : 106.21 [13:36:37]line Наличными: 0.00 [13:36:37]line Безнал.: 1000.11 [13:36:37]line Место: АЗС № 6 "Партнер Нефть" [13:36:37]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:36:37]line СНО: Общий режим [13:36:37]line Чек 118 13.03.2024 13:36 [13:36:37]line Смена: 328 ФФД: 1.0 [13:36:37]line ЗНМ: 0300000009 [13:36:37]line РНМ: 0000000000090555 [13:36:37]line Версия ККМ: 001 [13:36:37]line Платежная система: Бакай Банк [13:36:37]line ФМ: 0000000000874811 [13:36:37]line ФД: 95423 [13:36:37]line ФПД: 181655157706941 [13:36:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T133646&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95423&fm=181655157706941&tin=02508201610067®Number=0000000000090555&sum=100011 [13:36:37]OFD Sender: Processing packet 95423 [packets to send 30, broken 29] [13:36:37]ProducePacketName [13:36:37]name=ofd_packets/00095423 [13:36:37]OFD Sender: To server: pG, [13:36:37]CommunicateWithHost lk.salyk.kg:30040 [13:36:37]ConnectInit lk.salyk.kg [13:36:37]written 0, free lines is 4095 [13:36:37]Connected sock=10 [13:36:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 98 08 07 01 43 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 EE AB F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 74 01 00 35 04 06 00 A5 36 E3 25 90 BD 25 1B 22 20 03 E9 CE 2C [13:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F3 BD 47 00 B3 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 BF 74 01 00 F4 03 04 00 41 57 F1 65 B6 04 01 00 00 B5 82 AF 03 F7 2D 47 CE [13:36:38]CommunicateWithHost err = 0 [13:36:38]CheckOFDResponse [13:36:38]1017 (14) - 77093643461234 [13:36:38]1041 (16) - 0000000000874811 [13:36:38]1040 (4) - 95423 [13:36:38]1012 (4) - 13.03.2024 07:35 [13:36:38]1206 (1) - 0 [13:36:38]OFD Sender: Remove packet 95423 [13:36:38]ProducePacketName [13:36:38]name=ofd_packets/00095423 [13:36:38]NVStorageDeleteData [13:36:38]Write to MH i2c: 01 00 00 D8 80 58 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 07 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: 01 07 00 D8 80 00 80 00 00 00 58 0D 44 [13:36:38]RasterBufferAndPrint [13:36:38]line [13:36:38]line [13:36:38]line [13:36:38]line [13:36:38]line [13:36:38]written 0, free lines is 3422 [13:36:38]process_action close_receipt done [13:36:38]requested_data is exist [13:36:38]produce_requested_data [13:36:38]requested_item fm.sn is exist - process it [13:36:38]wFMCommunicate request_size=4 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 11 00 00 [13:36:38]Write to MH i2c: E2 08 00 DF 80 80 11 00 00 00 00 00 00 D9 [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 17 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 17 00 DF 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 29 [13:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:36:38]wFMCommunicate OK [13:36:38]requested_item fd.num is exist - process it [13:36:38]SAM_PROTO_GetFieldsCounters [13:36:38]wFMCommunicate request_size=4 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 13 00 00 [13:36:38]Write to MH i2c: E2 08 00 E0 80 80 13 00 00 00 00 00 00 DC [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:38]Read from MH i2c: E2 62 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 62 00 E0 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BF 74 01 00 0E 04 04 00 48 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 D8 [13:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 BF 74 01 00 0E 04 04 00 48 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 [13:36:38]wFMCommunicate OK [13:36:38]SAM_PROTO_GetFieldsCounters done [13:36:38]requested_item shift.num is exist - process it [13:36:38]requested_item shift.opened is exist - process it [13:36:38]req_shift_opened [13:36:38]FM_GetShiftState [13:36:38]SAM_PROTO_GetShiftState [13:36:38]wFMCommunicate request_size=4 [13:36:38]MH_SAM_APDU [13:36:38]CAPDU: 80 13 01 00 [13:36:38]Write to MH i2c: E2 08 00 E1 80 80 13 01 00 00 00 00 00 DE [13:36:38]Write i2c OK [13:36:38]MH_I2C_Read... [13:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:38]OFD Sender: No OFD packet to send [13:36:38]Read from MH i2c: E2 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 0E 00 [13:36:38]MH_I2C_Read... [13:36:38]Read from MH i2c: E2 0E 00 E1 80 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C3 [13:36:38]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:36:38]wFMCommunicate OK [13:36:38]SAM_PROTO_GetShiftState done [13:36:38]FM_GetShiftState done [13:36:38]req_shift_opened done [13:36:38]requested_item shift.open_date is exist - process it [13:36:38]req_shift_open_date [13:36:38]req_shift_open_date done [13:36:38]produce_requested_data done [13:36:38]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95423,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:36:38]process_action_free close_receipt [13:36:38]json_value_free [13:36:38]json_value_free done [13:36:38]process_json_proto returns [13:36:38]Send response to host [13:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95423,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:36:38]free response buf [13:36:38]execute_script done [13:36:38]execute_script returns [13:36:38]free content buf [13:36:38]Sock 8.Close socket [13:36:38]Sock 8.Thread stoped [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:07]accept exits with 9 [13:45:07]New connection [13:45:07]New thread 3066813796 created [13:45:07]Thread 3066957156 joined [13:45:07]Waiting for new connection... [13:45:07] Sock 9.Parse request [13:45:07]Sock 9.Check first char [13:45:07]Sock 9.First char is OK [13:45:07]request: POST /json_proto HTTP/1.0 [13:45:07]Method: POST [13:45:07]URL: /json_proto [13:45:07]Method is POST - this is cgi request [13:45:07]url: /json_proto [13:45:07]query_string will be loaded in cgi processing [13:45:07]execute_cgi json_proto POST (null) [13:45:07]execute_cgi path=json_proto method=POST [13:45:07]POST find Content-Length [13:45:07]Host: 172.17.62.67:8080 [13:45:07]Content-Length: 678 [13:45:07]Content-Type: application/json [13:45:07] [13:45:07]POST finish read [13:45:07]Found Content-Length = 678 [13:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196414", "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" : 62.90, "quantity" : 9.000, "sum" : 566.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 566.00, "payments": [ { "type": 0, "sum" : 566.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:07]execute_script... [13:45:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196414", "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" : 62.90, "quantity" : 9.000, "sum" : 566.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 566.00, "payments": [ { "type": 0, "sum" : 566.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:07]POST & json_proto [13:45:07]process_json_proto [13:45:07]json parsed OK: [13:45:07]protocol is kg_v1.0 [13:45:07]action value=close_receipt [13:45:07]process_action close_receipt [13:45:07]cmd_close_receipt [13:45:07]MH_GetDate [13:45:07]Write to MH i2c: F0 00 00 E2 80 51 [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: F0 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: F0 05 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: F0 05 00 E2 80 00 EE AD F1 65 47 [13:45:07]GetLastDocTimeStamp 1710337006 [13:45:07]current date 1710337518 [13:45:07]FM_GetShiftState [13:45:07]SAM_PROTO_GetShiftState [13:45:07]wFMCommunicate request_size=4 [13:45:07]MH_SAM_APDU [13:45:07]CAPDU: 80 13 01 00 [13:45:07]Write to MH i2c: E2 08 00 E3 80 80 13 01 00 00 00 00 00 E0 [13:45:07]Write i2c OK [13:45:07]MH_I2C_Read... [13:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:07]Read from MH i2c: E2 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 0E 00 [13:45:07]MH_I2C_Read... [13:45:07]Read from MH i2c: E2 0E 00 E3 80 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C5 [13:45:07]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:45:07]wFMCommunicate OK [13:45:07]SAM_PROTO_GetShiftState done [13:45:07]FM_GetShiftState done [13:45:07]opened in 1710288279 [13:45:07]opened+sec_in_day 1710374679 [13:45:07]quantity*price = 56610 [13:45:07]sum+1 = 56611 [13:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 566.00 Внесено: 1000.00 СДАЧА: 434.00 НСП 1% : 5.01 НДС 12% : 60.12 Наличными: 566.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 119 13.03.2024 13:45 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95424 ФПД: 263094592135132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T134518&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95424&fm=263094592135132&tin=02508201610067®Number=0000000000090555&sum=56600 [13:45:08]StoreToDocumentArchive [13:45:08]shift 328 fd 95424 [13:45:08]save to /storage/0328/doc_00095424 [13:45:08]save last doc name /storage/0328/doc_00095424 to /storage/kkm_last_doc_name [13:45:08]save OK [13:45:08]Clear old archive folders... [13:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:08]tlvbuf is 01A4A740 [13:45:08]SAM_PROTO_ClearQueue [13:45:08]wFMCommunicate request_size=4 [13:45:08]MH_SAM_APDU [13:45:08]CAPDU: 80 09 00 00 [13:45:08]Write to MH i2c: E2 08 00 F0 80 80 09 00 00 00 00 00 00 E2 [13:45:08]Write i2c OK [13:45:08]MH_I2C_Read... [13:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:08]Read from MH i2c: E2 [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: E2 03 00 [13:45:08]MH_I2C_Read... [13:45:08]Read from MH i2c: E2 03 00 F0 80 00 90 00 E4 [13:45:08]RAPDU: 90 00 [13:45:08]wFMCommunicate OK [13:45:08]SAM_PROTO_ClearQueue done [13:45:08]KKMCreateOFDPacket [13:45:08]OFDProtocolAddRootSTLVToBuf [13:45:08]FM_MakeSignedData [13:45:08]FM_MakeSignedData [13:45:08]SAM_PROTO_SignData [13:45:08]wFMCommunicate request_size=4 [13:45:08]MH_SAM_APDU [13:45:08]CAPDU: 80 0D 01 02 [13:45:08]Write to MH i2c: E2 08 00 F1 80 80 0D 01 02 00 00 00 00 EA [13:45:08]Write i2c OK [13:45:08]MH_I2C_Read... [13:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 03 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 03 00 F1 80 00 90 00 E5 [13:45:09]RAPDU: 90 00 [13:45:09]wFMCommunicate OK [13:45:09]wFMCommunicate request_size=255 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 DD 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 F5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 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 77 00 00 00 F4 03 04 00 EE AD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 74 01 00 35 04 06 00 EF [13:45:09]Write to MH i2c: E2 02 01 F2 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 DD 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 F5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 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 77 00 00 00 F4 03 04 00 EE AD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 74 01 00 35 04 06 00 EF 00 00 2C [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]OFD Sender: No OFD packet to send [13:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 03 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 03 00 F2 80 00 90 00 E6 [13:45:09]RAPDU: 90 00 [13:45:09]wFMCommunicate OK [13:45:09]wFMCommunicate request_size=10 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 0D 02 02 05 48 7B B4 DF DC [13:45:09]Write to MH i2c: E2 0D 00 F3 80 80 0D 02 02 05 00 48 7B B4 DF DC 00 00 29 [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 03 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 03 00 F3 80 00 90 00 E7 [13:45:09]RAPDU: 90 00 [13:45:09]wFMCommunicate OK [13:45:09]wFMCommunicate request_size=4 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 0D 03 02 [13:45:09]Write to MH i2c: E2 08 00 F4 80 80 0D 03 02 00 00 00 00 EF [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 0B 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 0B 00 F4 80 00 0F 90 32 55 81 51 72 23 90 00 7D [13:45:09]RAPDU: 0F 90 32 55 81 51 72 23 90 00 [13:45:09]wFMCommunicate OK [13:45:09]SAM_PROTO_SignData done [13:45:09]FM_MakeSignedData done [13:45:09]CreateOFDProtocolMessage [13:45:09]wFMCommunicate request_size=4 [13:45:09]MH_SAM_APDU [13:45:09]CAPDU: 80 11 00 00 [13:45:09]Write to MH i2c: E2 08 00 F5 80 80 11 00 00 00 00 00 00 EF [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:09]Read from MH i2c: E2 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 17 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: E2 17 00 F5 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3F [13:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:45:09]wFMCommunicate OK [13:45:09]CreateOFDProtocolMessage done [13:45:09]OFDSenderStorePacket 95424 [13:45:09]StoreOFDPacket docnum=95424 [13:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1F 98 07 01 86 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 DD 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 F5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 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 77 00 00 00 F4 03 04 00 EE AD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 74 01 00 35 04 06 00 EF 48 7B B4 DF DC 0F 90 32 55 81 51 72 23 [13:45:09]CheckFolder [13:45:09]dirname=/storage/ofd_packets [13:45:09]CheckFolder done [13:45:09]ProducePacketName [13:45:09]name=ofd_packets/00095424 [13:45:09]NVStorageSaveData ofd_packets/00095424 [13:45:09]File name is /storage/ofd_packets/00095424 [13:45:09]Write 301 bytes [13:45:09]NVStorageSaveData done [13:45:09]OFDSenderStorePacket done [13:45:09]KKMCreateOFDPacket done [13:45:09]NVStorageSaveData kkm_last_timestamp [13:45:09]File name is /storage/kkm_last_timestamp [13:45:09]Write 4 bytes [13:45:09]NVStorageSaveData done [13:45:09]ExternCall_PrintAddStr [13:45:09]wPrintStart [13:45:09]Write to MH i2c: 01 00 00 F6 80 76 [13:45:09]Write i2c OK [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: 01 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: 01 07 00 [13:45:09]MH_I2C_Read... [13:45:09]Read from MH i2c: 01 07 00 F6 80 00 80 00 00 00 FF 0F 0B [13:45:09]RasterBufferAndPrint [13:45:09]line Счет N : (1)196414 [13:45:09]line ИНН: 02508201610067 [13:45:09]line Контрольно-Кассовый Чек [13:45:09]line ПРОДАЖА [13:45:09]line ТРК (МРК, ГНК) : 32 [13:45:09]line Товар: 2710124130 [13:45:09]line Аи-92-К-5 [13:45:09]line 9.000 * 62.90 [13:45:09]line = 566.10 [13:45:09]line НДС 12% НСП 1% [13:45:09]line > о реализуемом товаре [13:45:09]line ОКРУГЛЕНИЕ: -0.10 [13:45:09]line ИТОГО: 566.00 [13:45:09]line Внесено: 1000.00 [13:45:09]line СДАЧА: 434.00 [13:45:09]line НСП 1% : 5.01 [13:45:09]line НДС 12% : 60.12 [13:45:09]line Наличными: 566.00 [13:45:09]line Безнал.: 0.00 [13:45:09]line Место: АЗС № 6 "Партнер Нефть" [13:45:09]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:45:09]line СНО: Общий режим [13:45:09]line Чек 119 13.03.2024 13:45 [13:45:09]line Смена: 328 ФФД: 1.0 [13:45:09]line ЗНМ: 0300000009 [13:45:09]line РНМ: 0000000000090555 [13:45:09]line Версия ККМ: 001 [13:45:09]line ФМ: 0000000000874811 [13:45:09]line ФД: 95424 [13:45:09]line ФПД: 263094592135132 [13:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T134518&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95424&fm=263094592135132&tin=02508201610067®Number=0000000000090555&sum=56600 [13:45:09]OFD Sender: Processing packet 95424 [packets to send 30, broken 29] [13:45:09]ProducePacketName [13:45:09]name=ofd_packets/00095424 [13:45:09]OFD Sender: To server: pG, [13:45:09]CommunicateWithHost lk.salyk.kg:30040 [13:45:09]ConnectInit lk.salyk.kg [13:45:09]written 0, free lines is 4095 [13:45:09]Connected sock=10 [13:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 1F 98 07 01 86 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 23 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 DD 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 F5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 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 77 00 00 00 F4 03 04 00 EE AD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 74 01 00 35 04 06 00 EF 48 7B B4 DF DC 0F 90 32 55 81 51 72 23 [13:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 16 32 47 00 42 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C0 74 01 00 F4 03 04 00 41 59 F1 65 B6 04 01 00 00 05 9D 90 A1 2F DF 5D 56 [13:45:10]CommunicateWithHost err = 0 [13:45:10]CheckOFDResponse [13:45:10]1017 (14) - 77093643461234 [13:45:10]1041 (16) - 0000000000874811 [13:45:10]1040 (4) - 95424 [13:45:10]1012 (4) - 13.03.2024 07:44 [13:45:10]1206 (1) - 0 [13:45:10]OFD Sender: Remove packet 95424 [13:45:10]ProducePacketName [13:45:10]name=ofd_packets/00095424 [13:45:10]NVStorageDeleteData [13:45:10]Write to MH i2c: 01 00 00 21 81 A2 [13:45:10]Write i2c OK [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: 01 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: 01 07 00 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: 01 07 00 21 81 00 80 00 00 00 51 0D 87 [13:45:10]RasterBufferAndPrint [13:45:10]line [13:45:10]line [13:45:10]line [13:45:10]line [13:45:10]line [13:45:10]written 0, free lines is 3415 [13:45:10]process_action close_receipt done [13:45:10]requested_data is exist [13:45:10]produce_requested_data [13:45:10]requested_item fm.sn is exist - process it [13:45:10]wFMCommunicate request_size=4 [13:45:10]MH_SAM_APDU [13:45:10]CAPDU: 80 11 00 00 [13:45:10]Write to MH i2c: E2 08 00 28 81 80 11 00 00 00 00 00 00 23 [13:45:10]Write i2c OK [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 [13:45:10]MH_I2C_Read... [13:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:10]Read from MH i2c: E2 17 00 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 17 00 28 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 73 [13:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:45:10]wFMCommunicate OK [13:45:10]requested_item fd.num is exist - process it [13:45:10]SAM_PROTO_GetFieldsCounters [13:45:10]wFMCommunicate request_size=4 [13:45:10]MH_SAM_APDU [13:45:10]CAPDU: 80 13 00 00 [13:45:10]Write to MH i2c: E2 08 00 29 81 80 13 00 00 00 00 00 00 26 [13:45:10]Write i2c OK [13:45:10]MH_I2C_Read... [13:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:10]Read from MH i2c: E2 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 62 00 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 62 00 29 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C0 74 01 00 0E 04 04 00 48 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 26 [13:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C0 74 01 00 0E 04 04 00 48 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 [13:45:10]wFMCommunicate OK [13:45:10]SAM_PROTO_GetFieldsCounters done [13:45:10]requested_item shift.num is exist - process it [13:45:10]requested_item shift.opened is exist - process it [13:45:10]req_shift_opened [13:45:10]FM_GetShiftState [13:45:10]SAM_PROTO_GetShiftState [13:45:10]wFMCommunicate request_size=4 [13:45:10]MH_SAM_APDU [13:45:10]CAPDU: 80 13 01 00 [13:45:10]Write to MH i2c: E2 08 00 2A 81 80 13 01 00 00 00 00 00 28 [13:45:10]Write i2c OK [13:45:10]MH_I2C_Read... [13:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:10]Read from MH i2c: E2 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 0E 00 [13:45:10]MH_I2C_Read... [13:45:10]Read from MH i2c: E2 0E 00 2A 81 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0D [13:45:10]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:45:10]wFMCommunicate OK [13:45:10]SAM_PROTO_GetShiftState done [13:45:10]FM_GetShiftState done [13:45:10]req_shift_opened done [13:45:10]requested_item shift.open_date is exist - process it [13:45:10]req_shift_open_date [13:45:10]req_shift_open_date done [13:45:10]produce_requested_data done [13:45:10]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95424,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:45:10]process_action_free close_receipt [13:45:10]json_value_free [13:45:10]json_value_free done [13:45:10]process_json_proto returns [13:45:10]Send response to host [13:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95424,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:45:10]free response buf [13:45:10]execute_script done [13:45:10]execute_script returns [13:45:10]free content buf [13:45:10]Sock 9.Close socket [13:45:10]Sock 9.Thread stoped [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:30]accept exits with 8 [13:49:30]New connection [13:49:30]New thread 3066957156 created [13:49:30]Thread 3066813796 joined [13:49:30]Waiting for new connection... [13:49:30] Sock 8.Parse request [13:49:30]Sock 8.Check first char [13:49:30]Sock 8.First char is OK [13:49:30]request: POST /json_proto HTTP/1.0 [13:49:30]Method: POST [13:49:30]URL: /json_proto [13:49:30]Method is POST - this is cgi request [13:49:30]url: /json_proto [13:49:30]query_string will be loaded in cgi processing [13:49:30]execute_cgi json_proto POST (null) [13:49:30]execute_cgi path=json_proto method=POST [13:49:30]POST find Content-Length [13:49:30]Host: 172.17.62.67:8080 [13:49:30]Content-Length: 805 [13:49:30]Content-Type: application/json [13:49:30] [13:49:30]POST finish read [13:49:30]Found Content-Length = 805 [13:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196415", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:30]execute_script... [13:49: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)196415", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:30]POST & json_proto [13:49:30]process_json_proto [13:49:30]json parsed OK: [13:49:30]protocol is kg_v1.0 [13:49:30]action value=close_receipt [13:49:30]process_action close_receipt [13:49:30]cmd_close_receipt [13:49:30]MH_GetDate [13:49:30]Write to MH i2c: F0 00 00 2B 81 9B [13:49:30]Write i2c OK [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: F0 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: F0 05 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: F0 05 00 2B 81 00 F5 AE F1 65 99 [13:49:30]GetLastDocTimeStamp 1710337518 [13:49:30]current date 1710337781 [13:49:30]FM_GetShiftState [13:49:30]SAM_PROTO_GetShiftState [13:49:30]wFMCommunicate request_size=4 [13:49:30]MH_SAM_APDU [13:49:30]CAPDU: 80 13 01 00 [13:49:30]Write to MH i2c: E2 08 00 2C 81 80 13 01 00 00 00 00 00 2A [13:49:30]Write i2c OK [13:49:30]MH_I2C_Read... [13:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:30]Read from MH i2c: E2 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 0E 00 [13:49:30]MH_I2C_Read... [13:49:30]Read from MH i2c: E2 0E 00 2C 81 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0F [13:49:30]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:49:30]wFMCommunicate OK [13:49:30]SAM_PROTO_GetShiftState done [13:49:30]FM_GetShiftState done [13:49:30]opened in 1710288279 [13:49:30]opened+sec_in_day 1710374679 [13:49:30]quantity*price = 50005 [13:49:30]sum+1 = 50007 [13:49:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.06 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.06 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 120 13.03.2024 13:49 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95425 ФПД: 62480738059003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T134941&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95425&fm=62480738059003&tin=02508201610067®Number=0000000000090555&sum=50006 [13:49:32]StoreToDocumentArchive [13:49:32]shift 328 fd 95425 [13:49:32]save to /storage/0328/doc_00095425 [13:49:32]save last doc name /storage/0328/doc_00095425 to /storage/kkm_last_doc_name [13:49:32]save OK [13:49:32]Clear old archive folders... [13:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:32]tlvbuf is 01A4A430 [13:49:32]SAM_PROTO_ClearQueue [13:49:32]wFMCommunicate request_size=4 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 09 00 00 [13:49:32]Write to MH i2c: E2 08 00 39 81 80 09 00 00 00 00 00 00 2C [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:32]Read from MH i2c: E2 03 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 39 81 00 90 00 2E [13:49:32]RAPDU: 90 00 [13:49:32]wFMCommunicate OK [13:49:32]SAM_PROTO_ClearQueue done [13:49:32]KKMCreateOFDPacket [13:49:32]OFDProtocolAddRootSTLVToBuf [13:49:32]FM_MakeSignedData [13:49:32]FM_MakeSignedData [13:49:32]SAM_PROTO_SignData [13:49:32]wFMCommunicate request_size=4 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 0D 01 02 [13:49:32]Write to MH i2c: E2 08 00 3A 81 80 0D 01 02 00 00 00 00 34 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 3A 81 00 90 00 2F [13:49:32]RAPDU: 90 00 [13:49:32]wFMCommunicate OK [13:49:32]wFMCommunicate request_size=255 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F5 AE F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 74 01 00 35 04 06 00 38 [13:49:32]Write to MH i2c: E2 02 01 3B 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F5 AE F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 74 01 00 35 04 06 00 38 00 00 11 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 3B 81 00 90 00 30 [13:49:32]RAPDU: 90 00 [13:49:32]wFMCommunicate OK [13:49:32]wFMCommunicate request_size=10 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 0D 02 02 05 D3 6E 32 82 FB [13:49:32]Write to MH i2c: E2 0D 00 3C 81 80 0D 02 02 05 00 D3 6E 32 82 FB 00 00 31 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 03 00 3C 81 00 90 00 31 [13:49:32]RAPDU: 90 00 [13:49:32]wFMCommunicate OK [13:49:32]wFMCommunicate request_size=4 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 0D 03 02 [13:49:32]Write to MH i2c: E2 08 00 3D 81 80 0D 03 02 00 00 00 00 39 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 0B 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 0B 00 3D 81 00 EF 2D 1C FA 49 81 92 F0 90 00 B8 [13:49:32]RAPDU: EF 2D 1C FA 49 81 92 F0 90 00 [13:49:32]wFMCommunicate OK [13:49:32]SAM_PROTO_SignData done [13:49:32]FM_MakeSignedData done [13:49:32]CreateOFDProtocolMessage [13:49:32]wFMCommunicate request_size=4 [13:49:32]MH_SAM_APDU [13:49:32]CAPDU: 80 11 00 00 [13:49:32]Write to MH i2c: E2 08 00 3E 81 80 11 00 00 00 00 00 00 39 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:32]Read from MH i2c: E2 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 17 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: E2 17 00 3E 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 89 [13:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:49:32]wFMCommunicate OK [13:49:32]CreateOFDProtocolMessage done [13:49:32]OFDSenderStorePacket 95425 [13:49:32]StoreOFDPacket docnum=95425 [13:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7C 7F 07 01 F1 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F5 AE F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 74 01 00 35 04 06 00 38 D3 6E 32 82 FB EF 2D 1C FA 49 81 92 F0 [13:49:32]CheckFolder [13:49:32]dirname=/storage/ofd_packets [13:49:32]CheckFolder done [13:49:32]ProducePacketName [13:49:32]name=ofd_packets/00095425 [13:49:32]NVStorageSaveData ofd_packets/00095425 [13:49:32]File name is /storage/ofd_packets/00095425 [13:49:32]Write 301 bytes [13:49:32]NVStorageSaveData done [13:49:32]OFDSenderStorePacket done [13:49:32]KKMCreateOFDPacket done [13:49:32]NVStorageSaveData kkm_last_timestamp [13:49:32]File name is /storage/kkm_last_timestamp [13:49:32]Write 4 bytes [13:49:32]NVStorageSaveData done [13:49:32]ExternCall_PrintAddStr [13:49:32]wPrintStart [13:49:32]Write to MH i2c: 01 00 00 3F 81 C0 [13:49:32]Write i2c OK [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: 01 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: 01 07 00 [13:49:32]MH_I2C_Read... [13:49:32]Read from MH i2c: 01 07 00 3F 81 00 80 00 00 00 FF 0F 55 [13:49:32]RasterBufferAndPrint [13:49:32]line Счет N : (1)196415 [13:49:32]line ИНН: 02508201610067 [13:49:32]line Контрольно-Кассовый Чек [13:49:32]line ПРОДАЖА [13:49:32]line ТРК (МРК, ГНК) : 22 [13:49:32]line Товар: 2710124130 [13:49:32]line Аи-92-К-5 [13:49:32]line 7.950 * 62.90 [13:49:32]line = 500.06 [13:49:32]line НДС 12% НСП 1% [13:49:32]line > о реализуемом товаре [13:49:32]line ИТОГО: 500.06 [13:49:32]line НСП 1% : 4.42 [13:49:32]line НДС 12% : 53.10 [13:49:32]line Наличными: 0.00 [13:49:32]line Безнал.: 500.06 [13:49:32]line Место: АЗС № 6 "Партнер Нефть" [13:49:32]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:49:32]line СНО: Общий режим [13:49:32]line Чек 120 13.03.2024 13:49 [13:49:32]line Смена: 328 ФФД: 1.0 [13:49:32]line ЗНМ: 0300000009 [13:49:32]line РНМ: 0000000000090555 [13:49:32]line Версия ККМ: 001 [13:49:32]line Платежная система: О! деньги [13:49:32]line ФМ: 0000000000874811 [13:49:32]line ФД: 95425 [13:49:32]line ФПД: 62480738059003 [13:49:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T134941&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95425&fm=62480738059003&tin=02508201610067®Number=0000000000090555&sum=50006 [13:49:32]written 0, free lines is 4095 [13:49:32]OFD Sender: Processing packet 95425 [packets to send 30, broken 29] [13:49:32]ProducePacketName [13:49:32]name=ofd_packets/00095425 [13:49:32]OFD Sender: To server: pG, [13:49:32]CommunicateWithHost lk.salyk.kg:30040 [13:49:32]ConnectInit lk.salyk.kg [13:49:32]Connected sock=10 [13:49:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 7C 7F 07 01 F1 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 F5 AE F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 74 01 00 35 04 06 00 38 D3 6E 32 82 FB EF 2D 1C FA 49 81 92 F0 [13:49:33]Write to MH i2c: 01 00 00 69 81 EA [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: 01 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: 01 07 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: 01 07 00 69 81 00 80 00 00 00 6C 0D EA [13:49:33]RasterBufferAndPrint [13:49:33]line [13:49:33]line [13:49:33]line [13:49:33]line [13:49:33]line [13:49:33]written 0, free lines is 3442 [13:49:33]process_action close_receipt done [13:49:33]requested_data is exist [13:49:33]produce_requested_data [13:49:33]requested_item fm.sn is exist - process it [13:49:33]wFMCommunicate request_size=4 [13:49:33]MH_SAM_APDU [13:49:33]CAPDU: 80 11 00 00 [13:49:33]Write to MH i2c: E2 08 00 70 81 80 11 00 00 00 00 00 00 6B [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:33]Read from MH i2c: E2 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: E2 17 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: E2 17 00 70 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BB [13:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:49:33]wFMCommunicate OK [13:49:33]requested_item fd.num is exist - process it [13:49:33]SAM_PROTO_GetFieldsCounters [13:49:33]wFMCommunicate request_size=4 [13:49:33]MH_SAM_APDU [13:49:33]CAPDU: 80 13 00 00 [13:49:33]Write to MH i2c: E2 08 00 71 81 80 13 00 00 00 00 00 00 6E [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 5A 93 47 00 FC 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C1 74 01 00 F4 03 04 00 48 5A F1 65 B6 04 01 00 00 03 10 7D BD 26 9C 32 6C [13:49:33]CommunicateWithHost err = 0 [13:49:33]CheckOFDResponse [13:49:33]1017 (14) - 77093643461234 [13:49:33]1041 (16) - 0000000000874811 [13:49:33]1040 (4) - 95425 [13:49:33]1012 (4) - 13.03.2024 07:48 [13:49:33]1206 (1) - 0 [13:49:33]OFD Sender: Remove packet 95425 [13:49:33]ProducePacketName [13:49:33]name=ofd_packets/00095425 [13:49:33]NVStorageDeleteData [13:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:33]Read from MH i2c: E2 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: E2 62 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: E2 62 00 71 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C1 74 01 00 0E 04 04 00 48 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 72 [13:49:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C1 74 01 00 0E 04 04 00 48 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 [13:49:33]wFMCommunicate OK [13:49:33]SAM_PROTO_GetFieldsCounters done [13:49:33]requested_item shift.num is exist - process it [13:49:33]requested_item shift.opened is exist - process it [13:49:33]req_shift_opened [13:49:33]FM_GetShiftState [13:49:33]SAM_PROTO_GetShiftState [13:49:33]wFMCommunicate request_size=4 [13:49:33]MH_SAM_APDU [13:49:33]CAPDU: 80 13 01 00 [13:49:33]Write to MH i2c: E2 08 00 72 81 80 13 01 00 00 00 00 00 70 [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:33]Read from MH i2c: E2 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: E2 0E 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: E2 0E 00 72 81 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 55 [13:49:33]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:49:33]wFMCommunicate OK [13:49:33]SAM_PROTO_GetShiftState done [13:49:33]FM_GetShiftState done [13:49:33]req_shift_opened done [13:49:33]requested_item shift.open_date is exist - process it [13:49:33]req_shift_open_date [13:49:33]req_shift_open_date done [13:49:33]produce_requested_data done [13:49:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95425,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:49:33]process_action_free close_receipt [13:49:33]json_value_free [13:49:33]json_value_free done [13:49:33]process_json_proto returns [13:49:33]Send response to host [13:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95425,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:49:33]free response buf [13:49:33]execute_script done [13:49:33]execute_script returns [13:49:33]free content buf [13:49:33]Sock 8.Close socket [13:49:33]Sock 8.Thread stoped [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:22]accept exits with 9 [13:51:22]New connection [13:51:22]New thread 3066813796 created [13:51:22]Thread 3066957156 joined [13:51:22]Waiting for new connection... [13:51:22] Sock 9.Parse request [13:51:22]Sock 9.Check first char [13:51:22]Sock 9.First char is OK [13:51:22]request: POST /json_proto HTTP/1.0 [13:51:22]Method: POST [13:51:22]URL: /json_proto [13:51:22]Method is POST - this is cgi request [13:51:22]url: /json_proto [13:51:22]query_string will be loaded in cgi processing [13:51:22]execute_cgi json_proto POST (null) [13:51:22]execute_cgi path=json_proto method=POST [13:51:22]POST find Content-Length [13:51:22]Host: 172.17.62.67:8080 [13:51:22]Content-Length: 682 [13:51:22]Content-Type: application/json [13:51:22] [13:51:22]POST finish read [13:51:22]Found Content-Length = 682 [13:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:22]execute_script... [13:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 14.390, "sum" : 1000.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:22]POST & json_proto [13:51:22]process_json_proto [13:51:22]json parsed OK: [13:51:22]protocol is kg_v1.0 [13:51:22]action value=close_receipt [13:51:22]process_action close_receipt [13:51:22]cmd_close_receipt [13:51:22]MH_GetDate [13:51:22]Write to MH i2c: F0 00 00 73 81 E3 [13:51:22]Write i2c OK [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: F0 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: F0 05 00 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: F0 05 00 73 81 00 65 AF F1 65 52 [13:51:22]GetLastDocTimeStamp 1710337781 [13:51:22]current date 1710337893 [13:51:22]FM_GetShiftState [13:51:22]SAM_PROTO_GetShiftState [13:51:22]wFMCommunicate request_size=4 [13:51:22]MH_SAM_APDU [13:51:22]CAPDU: 80 13 01 00 [13:51:22]Write to MH i2c: E2 08 00 74 81 80 13 01 00 00 00 00 00 72 [13:51:22]Write i2c OK [13:51:22]MH_I2C_Read... [13:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:22]Read from MH i2c: E2 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: E2 0E 00 [13:51:22]MH_I2C_Read... [13:51:22]Read from MH i2c: E2 0E 00 74 81 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 57 [13:51:22]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:51:22]wFMCommunicate OK [13:51:22]SAM_PROTO_GetShiftState done [13:51:22]FM_GetShiftState done [13:51:22]opened in 1710288279 [13:51:22]opened+sec_in_day 1710374679 [13:51:22]quantity*price = 100010 [13:51:22]sum+1 = 100012 [13:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 121 13.03.2024 13:51 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95426 ФПД: 91378006112660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T135133&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95426&fm=91378006112660&tin=02508201610067®Number=0000000000090555&sum=100000 [13:51:23]StoreToDocumentArchive [13:51:23]shift 328 fd 95426 [13:51:23]save to /storage/0328/doc_00095426 [13:51:23]save last doc name /storage/0328/doc_00095426 to /storage/kkm_last_doc_name [13:51:23]save OK [13:51:23]Clear old archive folders... [13:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:23]tlvbuf is 01A55040 [13:51:23]SAM_PROTO_ClearQueue [13:51:23]wFMCommunicate request_size=4 [13:51:23]MH_SAM_APDU [13:51:23]CAPDU: 80 09 00 00 [13:51:23]Write to MH i2c: E2 08 00 81 81 80 09 00 00 00 00 00 00 74 [13:51:23]Write i2c OK [13:51:23]MH_I2C_Read... [13:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:23]Read from MH i2c: E2 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: E2 03 00 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: E2 03 00 81 81 00 90 00 76 [13:51:23]RAPDU: 90 00 [13:51:23]wFMCommunicate OK [13:51:23]SAM_PROTO_ClearQueue done [13:51:23]KKMCreateOFDPacket [13:51:23]OFDProtocolAddRootSTLVToBuf [13:51:23]FM_MakeSignedData [13:51:23]FM_MakeSignedData [13:51:23]SAM_PROTO_SignData [13:51:23]wFMCommunicate request_size=4 [13:51:23]MH_SAM_APDU [13:51:23]CAPDU: 80 0D 01 02 [13:51:23]Write to MH i2c: E2 08 00 82 81 80 0D 01 02 00 00 00 00 7C [13:51:23]Write i2c OK [13:51:23]MH_I2C_Read... [13:51:23]OFD Sender: No OFD packet to send [13:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:23]Read from MH i2c: E2 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: E2 03 00 [13:51:23]MH_I2C_Read... [13:51:23]Read from MH i2c: E2 03 00 82 81 00 90 00 77 [13:51:23]RAPDU: 90 00 [13:51:23]wFMCommunicate OK [13:51:23]wFMCommunicate request_size=255 [13:51:23]MH_SAM_APDU [13:51:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 65 AF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 74 01 00 35 04 06 00 53 [13:51:23]Write to MH i2c: E2 02 01 83 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 65 AF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 74 01 00 35 04 06 00 53 00 00 89 [13:51:23]Write i2c OK [13:51:23]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 83 81 00 90 00 78 [13:51:24]RAPDU: 90 00 [13:51:24]wFMCommunicate OK [13:51:24]wFMCommunicate request_size=10 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 0D 02 02 05 1B 99 98 39 94 [13:51:24]Write to MH i2c: E2 0D 00 84 81 80 0D 02 02 05 00 1B 99 98 39 94 00 00 A2 [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 03 00 84 81 00 90 00 79 [13:51:24]RAPDU: 90 00 [13:51:24]wFMCommunicate OK [13:51:24]wFMCommunicate request_size=4 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 0D 03 02 [13:51:24]Write to MH i2c: E2 08 00 85 81 80 0D 03 02 00 00 00 00 81 [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 0B 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 0B 00 85 81 00 51 90 6D FC D0 77 07 59 90 00 73 [13:51:24]RAPDU: 51 90 6D FC D0 77 07 59 90 00 [13:51:24]wFMCommunicate OK [13:51:24]SAM_PROTO_SignData done [13:51:24]FM_MakeSignedData done [13:51:24]CreateOFDProtocolMessage [13:51:24]wFMCommunicate request_size=4 [13:51:24]MH_SAM_APDU [13:51:24]CAPDU: 80 11 00 00 [13:51:24]Write to MH i2c: E2 08 00 86 81 80 11 00 00 00 00 00 00 81 [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:24]Read from MH i2c: E2 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 17 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: E2 17 00 86 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D1 [13:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:51:24]wFMCommunicate OK [13:51:24]CreateOFDProtocolMessage done [13:51:24]OFDSenderStorePacket 95426 [13:51:24]StoreOFDPacket docnum=95426 [13:51:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2B E4 07 01 3B 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 65 AF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 74 01 00 35 04 06 00 53 1B 99 98 39 94 51 90 6D FC D0 77 07 59 [13:51:24]CheckFolder [13:51:24]dirname=/storage/ofd_packets [13:51:24]CheckFolder done [13:51:24]ProducePacketName [13:51:24]name=ofd_packets/00095426 [13:51:24]NVStorageSaveData ofd_packets/00095426 [13:51:24]File name is /storage/ofd_packets/00095426 [13:51:24]Write 301 bytes [13:51:24]NVStorageSaveData done [13:51:24]OFDSenderStorePacket done [13:51:24]KKMCreateOFDPacket done [13:51:24]NVStorageSaveData kkm_last_timestamp [13:51:24]File name is /storage/kkm_last_timestamp [13:51:24]Write 4 bytes [13:51:24]NVStorageSaveData done [13:51:24]ExternCall_PrintAddStr [13:51:24]wPrintStart [13:51:24]Write to MH i2c: 01 00 00 87 81 08 [13:51:24]Write i2c OK [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: 01 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: 01 07 00 [13:51:24]MH_I2C_Read... [13:51:24]Read from MH i2c: 01 07 00 87 81 00 80 00 00 00 FF 0F 9D [13:51:24]RasterBufferAndPrint [13:51:24]line Счет N : (1)196416 [13:51:24]line ИНН: 02508201610067 [13:51:24]line Контрольно-Кассовый Чек [13:51:24]line ПРОДАЖА [13:51:24]line ТРК (МРК, ГНК) : 41 [13:51:24]line Товар: 2710124500 [13:51:24]line Аи-95-К-5 [13:51:24]line 14.390 * 69.50 [13:51:24]line = 1000.11 [13:51:24]line НДС 12% НСП 1% [13:51:24]line > о реализуемом товаре [13:51:24]line ОКРУГЛЕНИЕ: -0.11 [13:51:24]line ИТОГО: 1000.00 [13:51:24]line Внесено: 1000.00 [13:51:24]line СДАЧА: 0.00 [13:51:24]line НСП 1% : 8.85 [13:51:24]line НДС 12% : 106.21 [13:51:24]line Наличными: 1000.00 [13:51:24]line Безнал.: 0.00 [13:51:24]line Место: АЗС № 6 "Партнер Нефть" [13:51:24]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:51:24]line СНО: Общий режим [13:51:24]line Чек 121 13.03.2024 13:51 [13:51:24]line Смена: 328 ФФД: 1.0 [13:51:24]line ЗНМ: 0300000009 [13:51:24]line РНМ: 0000000000090555 [13:51:24]line Версия ККМ: 001 [13:51:24]line ФМ: 0000000000874811 [13:51:24]line ФД: 95426 [13:51:24]line ФПД: 91378006112660 [13:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T135133&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95426&fm=91378006112660&tin=02508201610067®Number=0000000000090555&sum=100000 [13:51:24]OFD Sender: Processing packet 95426 [packets to send 30, broken 29] [13:51:24]ProducePacketName [13:51:24]name=ofd_packets/00095426 [13:51:24]OFD Sender: To server: pG, [13:51:24]CommunicateWithHost lk.salyk.kg:30040 [13:51:24]ConnectInit lk.salyk.kg [13:51:24]written 0, free lines is 4095 [13:51:24]Connected sock=10 [13:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 2B E4 07 01 3B 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 36 38 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 65 AF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 74 01 00 35 04 06 00 53 1B 99 98 39 94 51 90 6D FC D0 77 07 59 [13:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B2 B1 47 00 BA 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C2 74 01 00 F4 03 04 00 B8 5A F1 65 B6 04 01 00 00 1F A8 52 32 A9 95 02 36 [13:51:24]CommunicateWithHost err = 0 [13:51:24]CheckOFDResponse [13:51:24]1017 (14) - 77093643461234 [13:51:24]1041 (16) - 0000000000874811 [13:51:24]1040 (4) - 95426 [13:51:24]1012 (4) - 13.03.2024 07:50 [13:51:24]1206 (1) - 0 [13:51:24]OFD Sender: Remove packet 95426 [13:51:24]ProducePacketName [13:51:24]name=ofd_packets/00095426 [13:51:24]NVStorageDeleteData [13:51:25]Write to MH i2c: 01 00 00 B2 81 33 [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 07 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: 01 07 00 B2 81 00 80 00 00 00 4D 0D 14 [13:51:25]RasterBufferAndPrint [13:51:25]line [13:51:25]line [13:51:25]line [13:51:25]line [13:51:25]line [13:51:25]written 0, free lines is 3411 [13:51:25]process_action close_receipt done [13:51:25]requested_data is exist [13:51:25]produce_requested_data [13:51:25]requested_item fm.sn is exist - process it [13:51:25]wFMCommunicate request_size=4 [13:51:25]MH_SAM_APDU [13:51:25]CAPDU: 80 11 00 00 [13:51:25]Write to MH i2c: E2 08 00 B9 81 80 11 00 00 00 00 00 00 B4 [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:25]Read from MH i2c: E2 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 17 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 17 00 B9 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 04 [13:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:51:25]wFMCommunicate OK [13:51:25]requested_item fd.num is exist - process it [13:51:25]SAM_PROTO_GetFieldsCounters [13:51:25]wFMCommunicate request_size=4 [13:51:25]MH_SAM_APDU [13:51:25]CAPDU: 80 13 00 00 [13:51:25]Write to MH i2c: E2 08 00 BA 81 80 13 00 00 00 00 00 00 B7 [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:25]Read from MH i2c: E2 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 62 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 62 00 BA 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C2 74 01 00 0E 04 04 00 48 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 BF [13:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C2 74 01 00 0E 04 04 00 48 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 [13:51:25]wFMCommunicate OK [13:51:25]SAM_PROTO_GetFieldsCounters done [13:51:25]requested_item shift.num is exist - process it [13:51:25]requested_item shift.opened is exist - process it [13:51:25]req_shift_opened [13:51:25]FM_GetShiftState [13:51:25]SAM_PROTO_GetShiftState [13:51:25]wFMCommunicate request_size=4 [13:51:25]MH_SAM_APDU [13:51:25]CAPDU: 80 13 01 00 [13:51:25]Write to MH i2c: E2 08 00 BB 81 80 13 01 00 00 00 00 00 B9 [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:25]Read from MH i2c: E2 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 0E 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 0E 00 BB 81 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 9E [13:51:25]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:51:25]wFMCommunicate OK [13:51:25]SAM_PROTO_GetShiftState done [13:51:25]FM_GetShiftState done [13:51:25]req_shift_opened done [13:51:25]requested_item shift.open_date is exist - process it [13:51:25]req_shift_open_date [13:51:25]req_shift_open_date done [13:51:25]produce_requested_data done [13:51:25]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95426,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:51:25]process_action_free close_receipt [13:51:25]json_value_free [13:51:25]json_value_free done [13:51:25]process_json_proto returns [13:51:25]Send response to host [13:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95426,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:51:25]free response buf [13:51:25]execute_script done [13:51:25]execute_script returns [13:51:25]free content buf [13:51:25]Sock 9.Close socket [13:51:25]Sock 9.Thread stoped [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:29]accept exits with 8 [13:53:29]New connection [13:53:29]New thread 3066957156 created [13:53:29]Thread 3066813796 joined [13:53:29]Waiting for new connection... [13:53:29] Sock 8.Parse request [13:53:29]Sock 8.Check first char [13:53:29]Sock 8.First char is OK [13:53:29]request: POST /json_proto HTTP/1.0 [13:53:29]Method: POST [13:53:29]URL: /json_proto [13:53:29]Method is POST - this is cgi request [13:53:29]url: /json_proto [13:53:29]query_string will be loaded in cgi processing [13:53:29]execute_cgi json_proto POST (null) [13:53:29]execute_cgi path=json_proto method=POST [13:53:29]POST find Content-Length [13:53:29]Host: 172.17.62.67:8080 [13:53:29]Content-Length: 679 [13:53:29]Content-Type: application/json [13:53:29] [13:53:29]POST finish read [13:53:29]Found Content-Length = 679 [13:53:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196417", "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" : 70.90, "quantity" : 25.250, "sum" : 1790.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1790.00, "total" : 1790.00, "payments": [ { "type": 0, "sum" : 1790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:29]execute_script... [13:53:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196417", "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" : 70.90, "quantity" : 25.250, "sum" : 1790.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1790.00, "total" : 1790.00, "payments": [ { "type": 0, "sum" : 1790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:29]POST & json_proto [13:53:29]process_json_proto [13:53:29]json parsed OK: [13:53:29]protocol is kg_v1.0 [13:53:29]action value=close_receipt [13:53:29]process_action close_receipt [13:53:29]cmd_close_receipt [13:53:29]MH_GetDate [13:53:29]Write to MH i2c: F0 00 00 BC 81 2C [13:53:29]Write i2c OK [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: F0 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: F0 05 00 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: F0 05 00 BC 81 00 E4 AF F1 65 1A [13:53:29]GetLastDocTimeStamp 1710337893 [13:53:29]current date 1710338020 [13:53:29]FM_GetShiftState [13:53:29]SAM_PROTO_GetShiftState [13:53:29]wFMCommunicate request_size=4 [13:53:29]MH_SAM_APDU [13:53:29]CAPDU: 80 13 01 00 [13:53:29]Write to MH i2c: E2 08 00 BD 81 80 13 01 00 00 00 00 00 BB [13:53:29]Write i2c OK [13:53:29]MH_I2C_Read... [13:53:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:29]Read from MH i2c: E2 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: E2 0E 00 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: E2 0E 00 BD 81 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A0 [13:53:29]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:53:29]wFMCommunicate OK [13:53:29]SAM_PROTO_GetShiftState done [13:53:29]FM_GetShiftState done [13:53:29]opened in 1710288279 [13:53:29]opened+sec_in_day 1710374679 [13:53:29]quantity*price = 179022 [13:53:29]sum+1 = 179024 [13:53:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1790.00 Внесено: 1790.00 СДАЧА: 0.00 НСП 1% : 15.84 НДС 12% : 190.11 Наличными: 1790.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 122 13.03.2024 13:53 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95427 ФПД: 77649465973051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T135340&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95427&fm=77649465973051&tin=02508201610067®Number=0000000000090555&sum=179000 [13:53:30]StoreToDocumentArchive [13:53:30]shift 328 fd 95427 [13:53:30]save to /storage/0328/doc_00095427 [13:53:30]save last doc name /storage/0328/doc_00095427 to /storage/kkm_last_doc_name [13:53:30]save OK [13:53:30]Clear old archive folders... [13:53:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:30]tlvbuf is 01A8D7F0 [13:53:30]SAM_PROTO_ClearQueue [13:53:30]wFMCommunicate request_size=4 [13:53:30]MH_SAM_APDU [13:53:30]CAPDU: 80 09 00 00 [13:53:30]Write to MH i2c: E2 08 00 CA 81 80 09 00 00 00 00 00 00 BD [13:53:30]Write i2c OK [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 [13:53:30]MH_I2C_Read... [13:53:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:30]Read from MH i2c: E2 03 00 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 03 00 CA 81 00 90 00 BF [13:53:30]RAPDU: 90 00 [13:53:30]wFMCommunicate OK [13:53:30]SAM_PROTO_ClearQueue done [13:53:30]KKMCreateOFDPacket [13:53:30]OFDProtocolAddRootSTLVToBuf [13:53:30]FM_MakeSignedData [13:53:30]FM_MakeSignedData [13:53:30]SAM_PROTO_SignData [13:53:30]wFMCommunicate request_size=4 [13:53:30]MH_SAM_APDU [13:53:30]CAPDU: 80 0D 01 02 [13:53:30]Write to MH i2c: E2 08 00 CB 81 80 0D 01 02 00 00 00 00 C5 [13:53:30]Write i2c OK [13:53:30]MH_I2C_Read... [13:53:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:30]Read from MH i2c: E2 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 03 00 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 03 00 CB 81 00 90 00 C0 [13:53:30]RAPDU: 90 00 [13:53:30]wFMCommunicate OK [13:53:30]wFMCommunicate request_size=255 [13:53:30]MH_SAM_APDU [13:53:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 62 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 4F BB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 BB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 4A 00 00 00 00 07 04 06 00 38 BB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E4 AF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 74 01 00 35 04 06 00 46 9F 2C D6 [13:53:30]Write to MH i2c: E2 02 01 CC 81 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 62 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 4F BB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 BB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 4A 00 00 00 00 07 04 06 00 38 BB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E4 AF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 74 01 00 35 04 06 00 46 9F 2C D6 00 00 73 [13:53:30]Write i2c OK [13:53:30]MH_I2C_Read... [13:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:30]Read from MH i2c: E2 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 03 00 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 03 00 CC 81 00 90 00 C1 [13:53:30]RAPDU: 90 00 [13:53:30]wFMCommunicate OK [13:53:30]wFMCommunicate request_size=7 [13:53:30]MH_SAM_APDU [13:53:30]CAPDU: 80 0D 02 02 02 19 3B [13:53:30]Write to MH i2c: E2 0A 00 CD 81 80 0D 02 02 02 00 19 3B 00 00 20 [13:53:30]Write i2c OK [13:53:30]MH_I2C_Read... [13:53:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:30]Read from MH i2c: E2 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 03 00 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 03 00 CD 81 00 90 00 C2 [13:53:30]RAPDU: 90 00 [13:53:30]wFMCommunicate OK [13:53:30]wFMCommunicate request_size=4 [13:53:30]MH_SAM_APDU [13:53:30]CAPDU: 80 0D 03 02 [13:53:30]Write to MH i2c: E2 08 00 CE 81 80 0D 03 02 00 00 00 00 CA [13:53:30]Write i2c OK [13:53:30]MH_I2C_Read... [13:53:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:30]Read from MH i2c: E2 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 0B 00 [13:53:30]MH_I2C_Read... [13:53:30]Read from MH i2c: E2 0B 00 CE 81 00 DA 67 0F 8A 40 E5 26 CE 90 00 BE [13:53:30]RAPDU: DA 67 0F 8A 40 E5 26 CE 90 00 [13:53:30]wFMCommunicate OK [13:53:30]SAM_PROTO_SignData done [13:53:30]FM_MakeSignedData done [13:53:30]CreateOFDProtocolMessage [13:53:30]wFMCommunicate request_size=4 [13:53:30]MH_SAM_APDU [13:53:31]CAPDU: 80 11 00 00 [13:53:31]Write to MH i2c: E2 08 00 CF 81 80 11 00 00 00 00 00 00 CA [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 17 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 17 00 CF 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1A [13:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:53:31]wFMCommunicate OK [13:53:31]CreateOFDProtocolMessage done [13:53:31]OFDSenderStorePacket 95427 [13:53:31]StoreOFDPacket docnum=95427 [13:53:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 8B 6C 04 01 6F 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 62 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 4F BB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 BB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 4A 00 00 00 00 07 04 06 00 38 BB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E4 AF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 74 01 00 35 04 06 00 46 9F 2C D6 19 3B DA 67 0F 8A 40 E5 26 CE [13:53:31]CheckFolder [13:53:31]dirname=/storage/ofd_packets [13:53:31]CheckFolder done [13:53:31]ProducePacketName [13:53:31]name=ofd_packets/00095427 [13:53:31]NVStorageSaveData ofd_packets/00095427 [13:53:31]File name is /storage/ofd_packets/00095427 [13:53:31]Write 298 bytes [13:53:31]NVStorageSaveData done [13:53:31]OFDSenderStorePacket done [13:53:31]KKMCreateOFDPacket done [13:53:31]NVStorageSaveData kkm_last_timestamp [13:53:31]File name is /storage/kkm_last_timestamp [13:53:31]Write 4 bytes [13:53:31]NVStorageSaveData done [13:53:31]ExternCall_PrintAddStr [13:53:31]wPrintStart [13:53:31]Write to MH i2c: 01 00 00 D0 81 51 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 07 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 07 00 D0 81 00 80 00 00 00 FF 0F E6 [13:53:31]RasterBufferAndPrint [13:53:31]line Счет N : (1)196417 [13:53:31]line ИНН: 02508201610067 [13:53:31]line Контрольно-Кассовый Чек [13:53:31]line ПРОДАЖА [13:53:31]line ТРК (МРК, ГНК) : 51 [13:53:31]line Товар: 2710194210 [13:53:31]line ДТ-К-5 [13:53:31]line 25.250 * 70.90 [13:53:31]line = 1790.23 [13:53:31]line НДС 12% НСП 1% [13:53:31]line > о реализуемом товаре [13:53:31]line ОКРУГЛЕНИЕ: -0.23 [13:53:31]line ИТОГО: 1790.00 [13:53:31]line Внесено: 1790.00 [13:53:31]line СДАЧА: 0.00 [13:53:31]line НСП 1% : 15.84 [13:53:31]line НДС 12% : 190.11 [13:53:31]line Наличными: 1790.00 [13:53:31]line Безнал.: 0.00 [13:53:31]line Место: АЗС № 6 "Партнер Нефть" [13:53:31]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [13:53:31]line СНО: Общий режим [13:53:31]line Чек 122 13.03.2024 13:53 [13:53:31]line Смена: 328 ФФД: 1.0 [13:53:31]line ЗНМ: 0300000009 [13:53:31]line РНМ: 0000000000090555 [13:53:31]line Версия ККМ: 001 [13:53:31]line ФМ: 0000000000874811 [13:53:31]line ФД: 95427 [13:53:31]line ФПД: 77649465973051 [13:53:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T135340&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95427&fm=77649465973051&tin=02508201610067®Number=0000000000090555&sum=179000 [13:53:31]OFD Sender: Processing packet 95427 [packets to send 30, broken 29] [13:53:31]ProducePacketName [13:53:31]name=ofd_packets/00095427 [13:53:31]OFD Sender: To server: pG, [13:53:31]CommunicateWithHost lk.salyk.kg:30040 [13:53:31]ConnectInit lk.salyk.kg [13:53:31]written 0, free lines is 4095 [13:53:31]Connected sock=10 [13:53:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 8B 6C 04 01 6F 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 62 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 4F BB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 BB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 4A 00 00 00 00 07 04 06 00 38 BB 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 E4 AF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 74 01 00 35 04 06 00 46 9F 2C D6 19 3B DA 67 0F 8A 40 E5 26 CE [13:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 60 FA 47 00 A4 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C3 74 01 00 F4 03 04 00 37 5B F1 65 B6 04 01 00 00 34 B8 83 69 E4 76 C9 B6 [13:53:31]CommunicateWithHost err = 0 [13:53:31]CheckOFDResponse [13:53:31]1017 (14) - 77093643461234 [13:53:31]1041 (16) - 0000000000874811 [13:53:31]1040 (4) - 95427 [13:53:31]1012 (4) - 13.03.2024 07:52 [13:53:31]1206 (1) - 0 [13:53:31]OFD Sender: Remove packet 95427 [13:53:31]ProducePacketName [13:53:31]name=ofd_packets/00095427 [13:53:31]NVStorageDeleteData [13:53:31]Write to MH i2c: 01 00 00 FB 81 7C [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 07 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 07 00 FB 81 00 80 00 00 00 48 0D 58 [13:53:31]RasterBufferAndPrint [13:53:31]line [13:53:31]line [13:53:31]line [13:53:31]line [13:53:31]line [13:53:31]written 0, free lines is 3406 [13:53:31]process_action close_receipt done [13:53:31]requested_data is exist [13:53:31]produce_requested_data [13:53:31]requested_item fm.sn is exist - process it [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 11 00 00 [13:53:31]Write to MH i2c: E2 08 00 02 82 80 11 00 00 00 00 00 00 FE [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 17 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 17 00 02 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4E [13:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [13:53:31]wFMCommunicate OK [13:53:31]requested_item fd.num is exist - process it [13:53:31]SAM_PROTO_GetFieldsCounters [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 13 00 00 [13:53:31]Write to MH i2c: E2 08 00 03 82 80 13 00 00 00 00 00 00 01 [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:32]Read from MH i2c: E2 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 62 00 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 62 00 03 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C3 74 01 00 0E 04 04 00 48 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 0D [13:53:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C3 74 01 00 0E 04 04 00 48 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 [13:53:32]wFMCommunicate OK [13:53:32]SAM_PROTO_GetFieldsCounters done [13:53:32]requested_item shift.num is exist - process it [13:53:32]requested_item shift.opened is exist - process it [13:53:32]req_shift_opened [13:53:32]FM_GetShiftState [13:53:32]SAM_PROTO_GetShiftState [13:53:32]wFMCommunicate request_size=4 [13:53:32]MH_SAM_APDU [13:53:32]CAPDU: 80 13 01 00 [13:53:32]Write to MH i2c: E2 08 00 04 82 80 13 01 00 00 00 00 00 03 [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:32]Read from MH i2c: E2 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 0E 00 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 0E 00 04 82 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E8 [13:53:32]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [13:53:32]wFMCommunicate OK [13:53:32]SAM_PROTO_GetShiftState done [13:53:32]FM_GetShiftState done [13:53:32]req_shift_opened done [13:53:32]requested_item shift.open_date is exist - process it [13:53:32]req_shift_open_date [13:53:32]req_shift_open_date done [13:53:32]produce_requested_data done [13:53:32]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95427,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [13:53:32]process_action_free close_receipt [13:53:32]json_value_free [13:53:32]json_value_free done [13:53:32]process_json_proto returns [13:53:32]Send response to host [13:53:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95427,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [13:53:32]free response buf [13:53:32]execute_script done [13:53:32]execute_script returns [13:53:32]free content buf [13:53:32]Sock 8.Close socket [13:53:32]Sock 8.Thread stoped [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:28]accept exits with 9 [14:03:28]New connection [14:03:28]New thread 3066813796 created [14:03:28]Thread 3066957156 joined [14:03:28]Waiting for new connection... [14:03:28] Sock 9.Parse request [14:03:28]Sock 9.Check first char [14:03:28]Sock 9.First char is OK [14:03:28]request: POST /json_proto HTTP/1.0 [14:03:28]Method: POST [14:03:28]URL: /json_proto [14:03:28]Method is POST - this is cgi request [14:03:28]url: /json_proto [14:03:28]query_string will be loaded in cgi processing [14:03:28]execute_cgi json_proto POST (null) [14:03:28]execute_cgi path=json_proto method=POST [14:03:28]POST find Content-Length [14:03:28]Host: 172.17.62.67:8080 [14:03:28]Content-Length: 678 [14:03:28]Content-Type: application/json [14:03:28] [14:03:28]POST finish read [14:03:28]Found Content-Length = 678 [14:03:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196418", "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" : 62.90, "quantity" : 10.340, "sum" : 650.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:28]execute_script... [14:03:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196418", "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" : 62.90, "quantity" : 10.340, "sum" : 650.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:28]POST & json_proto [14:03:28]process_json_proto [14:03:28]json parsed OK: [14:03:28]protocol is kg_v1.0 [14:03:28]action value=close_receipt [14:03:28]process_action close_receipt [14:03:28]cmd_close_receipt [14:03:28]MH_GetDate [14:03:28]Write to MH i2c: F0 00 00 05 82 76 [14:03:28]Write i2c OK [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: F0 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: F0 05 00 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: F0 05 00 05 82 00 3B B2 F1 65 BE [14:03:28]GetLastDocTimeStamp 1710338020 [14:03:28]current date 1710338619 [14:03:28]FM_GetShiftState [14:03:28]SAM_PROTO_GetShiftState [14:03:28]wFMCommunicate request_size=4 [14:03:28]MH_SAM_APDU [14:03:28]CAPDU: 80 13 01 00 [14:03:28]Write to MH i2c: E2 08 00 06 82 80 13 01 00 00 00 00 00 05 [14:03:28]Write i2c OK [14:03:28]MH_I2C_Read... [14:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:28]Read from MH i2c: E2 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 0E 00 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 0E 00 06 82 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 EA [14:03:28]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:03:28]wFMCommunicate OK [14:03:28]SAM_PROTO_GetShiftState done [14:03:28]FM_GetShiftState done [14:03:28]opened in 1710288279 [14:03:28]opened+sec_in_day 1710374679 [14:03:28]quantity*price = 65038 [14:03:28]sum+1 = 65040 [14:03:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 123 13.03.2024 14:03 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95428 ФПД: 220909901108399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T140339&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95428&fm=220909901108399&tin=02508201610067®Number=0000000000090555&sum=65000 [14:03:29]StoreToDocumentArchive [14:03:29]shift 328 fd 95428 [14:03:29]save to /storage/0328/doc_00095428 [14:03:29]save last doc name /storage/0328/doc_00095428 to /storage/kkm_last_doc_name [14:03:29]save OK [14:03:29]Clear old archive folders... [14:03:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:29]tlvbuf is 01CEB400 [14:03:29]SAM_PROTO_ClearQueue [14:03:29]wFMCommunicate request_size=4 [14:03:29]MH_SAM_APDU [14:03:29]CAPDU: 80 09 00 00 [14:03:29]Write to MH i2c: E2 08 00 13 82 80 09 00 00 00 00 00 00 07 [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:29]Read from MH i2c: E2 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 03 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 03 00 13 82 00 90 00 09 [14:03:29]RAPDU: 90 00 [14:03:29]wFMCommunicate OK [14:03:29]SAM_PROTO_ClearQueue done [14:03:29]KKMCreateOFDPacket [14:03:29]OFDProtocolAddRootSTLVToBuf [14:03:29]FM_MakeSignedData [14:03:29]FM_MakeSignedData [14:03:29]SAM_PROTO_SignData [14:03:29]wFMCommunicate request_size=4 [14:03:29]MH_SAM_APDU [14:03:29]CAPDU: 80 0D 01 02 [14:03:29]Write to MH i2c: E2 08 00 14 82 80 0D 01 02 00 00 00 00 0F [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:29]Read from MH i2c: E2 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 03 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 03 00 14 82 00 90 00 0A [14:03:29]RAPDU: 90 00 [14:03:29]wFMCommunicate OK [14:03:29]wFMCommunicate request_size=255 [14:03:29]MH_SAM_APDU [14:03:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3B B2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 74 01 00 35 04 06 00 C8 [14:03:29]Write to MH i2c: E2 02 01 15 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3B B2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 74 01 00 35 04 06 00 C8 00 00 81 [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:29]Read from MH i2c: E2 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 03 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 03 00 15 82 00 90 00 0B [14:03:29]RAPDU: 90 00 [14:03:29]wFMCommunicate OK [14:03:29]wFMCommunicate request_size=10 [14:03:29]MH_SAM_APDU [14:03:29]CAPDU: 80 0D 02 02 05 EA 98 2E D4 AF [14:03:29]Write to MH i2c: E2 0D 00 16 82 80 0D 02 02 05 00 EA 98 2E D4 AF 00 00 4F [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:29]Read from MH i2c: E2 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 03 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 03 00 16 82 00 90 00 0C [14:03:29]RAPDU: 90 00 [14:03:29]wFMCommunicate OK [14:03:29]wFMCommunicate request_size=4 [14:03:29]MH_SAM_APDU [14:03:29]CAPDU: 80 0D 03 02 [14:03:29]Write to MH i2c: E2 08 00 17 82 80 0D 03 02 00 00 00 00 14 [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:29]Read from MH i2c: E2 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 0B 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 0B 00 17 82 00 6B F0 45 2D E3 79 50 99 90 00 27 [14:03:29]RAPDU: 6B F0 45 2D E3 79 50 99 90 00 [14:03:29]wFMCommunicate OK [14:03:29]SAM_PROTO_SignData done [14:03:29]FM_MakeSignedData done [14:03:29]CreateOFDProtocolMessage [14:03:29]wFMCommunicate request_size=4 [14:03:29]MH_SAM_APDU [14:03:29]CAPDU: 80 11 00 00 [14:03:29]Write to MH i2c: E2 08 00 18 82 80 11 00 00 00 00 00 00 14 [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:29]Read from MH i2c: E2 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 17 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 17 00 18 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 64 [14:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:03:29]wFMCommunicate OK [14:03:29]CreateOFDProtocolMessage done [14:03:29]OFDSenderStorePacket 95428 [14:03:29]StoreOFDPacket docnum=95428 [14:03:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A1 0B 07 01 66 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3B B2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 74 01 00 35 04 06 00 C8 EA 98 2E D4 AF 6B F0 45 2D E3 79 50 99 [14:03:29]CheckFolder [14:03:29]dirname=/storage/ofd_packets [14:03:29]CheckFolder done [14:03:29]ProducePacketName [14:03:29]name=ofd_packets/00095428 [14:03:29]NVStorageSaveData ofd_packets/00095428 [14:03:29]File name is /storage/ofd_packets/00095428 [14:03:29]Write 301 bytes [14:03:29]NVStorageSaveData done [14:03:29]OFDSenderStorePacket done [14:03:29]KKMCreateOFDPacket done [14:03:29]NVStorageSaveData kkm_last_timestamp [14:03:29]File name is /storage/kkm_last_timestamp [14:03:29]Write 4 bytes [14:03:29]NVStorageSaveData done [14:03:29]ExternCall_PrintAddStr [14:03:29]wPrintStart [14:03:29]Write to MH i2c: 01 00 00 19 82 9B [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: 01 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: 01 07 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: 01 07 00 19 82 00 80 00 00 00 FF 0F 30 [14:03:29]RasterBufferAndPrint [14:03:29]line Счет N : (1)196418 [14:03:29]line ИНН: 02508201610067 [14:03:29]line Контрольно-Кассовый Чек [14:03:29]line ПРОДАЖА [14:03:29]line ТРК (МРК, ГНК) : 32 [14:03:29]line Товар: 2710124130 [14:03:29]line Аи-92-К-5 [14:03:29]line 10.340 * 62.90 [14:03:29]line = 650.39 [14:03:29]line НДС 12% НСП 1% [14:03:29]line > о реализуемом товаре [14:03:29]line ОКРУГЛЕНИЕ: -0.39 [14:03:29]line ИТОГО: 650.00 [14:03:29]line Внесено: 650.00 [14:03:29]line СДАЧА: 0.00 [14:03:29]line НСП 1% : 5.76 [14:03:29]line НДС 12% : 69.07 [14:03:29]line Наличными: 650.00 [14:03:29]line Безнал.: 0.00 [14:03:29]line Место: АЗС № 6 "Партнер Нефть" [14:03:29]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:03:29]line СНО: Общий режим [14:03:29]line Чек 123 13.03.2024 14:03 [14:03:29]line Смена: 328 ФФД: 1.0 [14:03:29]line ЗНМ: 0300000009 [14:03:29]line РНМ: 0000000000090555 [14:03:29]line Версия ККМ: 001 [14:03:29]line ФМ: 0000000000874811 [14:03:29]line ФД: 95428 [14:03:29]line ФПД: 220909901108399 [14:03:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T140339&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95428&fm=220909901108399&tin=02508201610067®Number=0000000000090555&sum=65000 [14:03:30]OFD Sender: Processing packet 95428 [packets to send 30, broken 29] [14:03:30]ProducePacketName [14:03:30]name=ofd_packets/00095428 [14:03:30]OFD Sender: To server: pG, [14:03:30]CommunicateWithHost lk.salyk.kg:30040 [14:03:30]ConnectInit lk.salyk.kg [14:03:30]written 0, free lines is 4095 [14:03:30]Connected sock=10 [14:03:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A1 0B 07 01 66 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 0F FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 3B B2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 74 01 00 35 04 06 00 C8 EA 98 2E D4 AF 6B F0 45 2D E3 79 50 99 [14:03:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D8 5A 47 00 A5 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C4 74 01 00 F4 03 04 00 8E 5D F1 65 B6 04 01 00 00 A3 C4 F6 EB B2 4D 5B 41 [14:03:30]CommunicateWithHost err = 0 [14:03:30]CheckOFDResponse [14:03:30]1017 (14) - 77093643461234 [14:03:30]1041 (16) - 0000000000874811 [14:03:30]1040 (4) - 95428 [14:03:30]1012 (4) - 13.03.2024 08:02 [14:03:30]1206 (1) - 0 [14:03:30]OFD Sender: Remove packet 95428 [14:03:30]ProducePacketName [14:03:30]name=ofd_packets/00095428 [14:03:30]NVStorageDeleteData [14:03:30]Write to MH i2c: 01 00 00 44 82 C6 [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: 01 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: 01 07 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: 01 07 00 44 82 00 80 00 00 00 51 0D AB [14:03:30]RasterBufferAndPrint [14:03:30]line [14:03:30]line [14:03:30]line [14:03:30]line [14:03:30]line [14:03:30]written 0, free lines is 3415 [14:03:30]process_action close_receipt done [14:03:30]requested_data is exist [14:03:30]produce_requested_data [14:03:30]requested_item fm.sn is exist - process it [14:03:30]wFMCommunicate request_size=4 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 11 00 00 [14:03:30]Write to MH i2c: E2 08 00 4B 82 80 11 00 00 00 00 00 00 47 [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:30]Read from MH i2c: E2 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 17 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 17 00 4B 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 97 [14:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:03:30]wFMCommunicate OK [14:03:30]requested_item fd.num is exist - process it [14:03:30]SAM_PROTO_GetFieldsCounters [14:03:30]wFMCommunicate request_size=4 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 13 00 00 [14:03:30]Write to MH i2c: E2 08 00 4C 82 80 13 00 00 00 00 00 00 4A [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:30]Read from MH i2c: E2 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 62 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 62 00 4C 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C4 74 01 00 0E 04 04 00 48 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 5A [14:03:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C4 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:30]wFMCommunicate OK [14:03:30]SAM_PROTO_GetFieldsCounters done [14:03:30]requested_item shift.num is exist - process it [14:03:30]requested_item shift.opened is exist - process it [14:03:30]req_shift_opened [14:03:30]FM_GetShiftState [14:03:30]SAM_PROTO_GetShiftState [14:03:30]wFMCommunicate request_size=4 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 13 01 00 [14:03:30]Write to MH i2c: E2 08 00 4D 82 80 13 01 00 00 00 00 00 4C [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:31]Read from MH i2c: E2 [14:03:31]MH_I2C_Read... [14:03:31]Read from MH i2c: E2 0E 00 [14:03:31]MH_I2C_Read... [14:03:31]Read from MH i2c: E2 0E 00 4D 82 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 31 [14:03:31]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:03:31]wFMCommunicate OK [14:03:31]SAM_PROTO_GetShiftState done [14:03:31]FM_GetShiftState done [14:03:31]req_shift_opened done [14:03:31]requested_item shift.open_date is exist - process it [14:03:31]req_shift_open_date [14:03:31]req_shift_open_date done [14:03:31]produce_requested_data done [14:03:31]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95428,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:03:31]process_action_free close_receipt [14:03:31]json_value_free [14:03:31]json_value_free done [14:03:31]process_json_proto returns [14:03:31]Send response to host [14:03:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95428,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:03:31]free response buf [14:03:31]execute_script done [14:03:31]execute_script returns [14:03:31]free content buf [14:03:31]Sock 9.Close socket [14:03:31]Sock 9.Thread stoped [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]accept exits with 8 [14:05:11]New connection [14:05:11]New thread 3066957156 created [14:05:11]Thread 3066813796 joined [14:05:11]Waiting for new connection... [14:05:11] Sock 8.Parse request [14:05:11]Sock 8.Check first char [14:05:11]Sock 8.First char is OK [14:05:11]request: POST /json_proto HTTP/1.0 [14:05:11]Method: POST [14:05:11]URL: /json_proto [14:05:11]Method is POST - this is cgi request [14:05:11]url: /json_proto [14:05:11]query_string will be loaded in cgi processing [14:05:11]execute_cgi json_proto POST (null) [14:05:11]execute_cgi path=json_proto method=POST [14:05:11]POST find Content-Length [14:05:11]Host: 172.17.62.67:8080 [14:05:11]Content-Length: 819 [14:05:11]Content-Type: application/json [14:05:11] [14:05:11]POST finish read [14:05:11]Found Content-Length = 819 [14:05:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:11]execute_script... [14:05:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:11]POST & json_proto [14:05:11]process_json_proto [14:05:11]json parsed OK: [14:05:11]protocol is kg_v1.0 [14:05:11]action value=close_receipt [14:05:11]process_action close_receipt [14:05:11]cmd_close_receipt [14:05:11]MH_GetDate [14:05:11]Write to MH i2c: F0 00 00 4E 82 BF [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: F0 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: F0 05 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: F0 05 00 4E 82 00 A2 B2 F1 65 6E [14:05:11]GetLastDocTimeStamp 1710338619 [14:05:11]current date 1710338722 [14:05:11]FM_GetShiftState [14:05:11]SAM_PROTO_GetShiftState [14:05:11]wFMCommunicate request_size=4 [14:05:11]MH_SAM_APDU [14:05:11]CAPDU: 80 13 01 00 [14:05:11]Write to MH i2c: E2 08 00 4F 82 80 13 01 00 00 00 00 00 4E [14:05:11]Write i2c OK [14:05:11]MH_I2C_Read... [14:05:11]OFD Sender: No OFD packet to send [14:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:11]Read from MH i2c: E2 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 0E 00 [14:05:11]MH_I2C_Read... [14:05:11]Read from MH i2c: E2 0E 00 4F 82 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 33 [14:05:11]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:05:11]wFMCommunicate OK [14:05:11]SAM_PROTO_GetShiftState done [14:05:11]FM_GetShiftState done [14:05:11]opened in 1710288279 [14:05:11]opened+sec_in_day 1710374679 [14:05:11]quantity*price = 300031 [14:05:11]sum+1 = 300033 [14:05:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.32 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 0.00 Безнал.: 3000.32 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 124 13.03.2024 14:05 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95429 ФПД: 164988757000530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T140522&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95429&fm=164988757000530&tin=02508201610067®Number=0000000000090555&sum=300032 [14:05:12]StoreToDocumentArchive [14:05:12]shift 328 fd 95429 [14:05:12]save to /storage/0328/doc_00095429 [14:05:12]save last doc name /storage/0328/doc_00095429 to /storage/kkm_last_doc_name [14:05:12]save OK [14:05:12]Clear old archive folders... [14:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:12]tlvbuf is 01A340C0 [14:05:12]SAM_PROTO_ClearQueue [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 09 00 00 [14:05:12]Write to MH i2c: E2 08 00 5C 82 80 09 00 00 00 00 00 00 50 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 5C 82 00 90 00 52 [14:05:12]RAPDU: 90 00 [14:05:12]wFMCommunicate OK [14:05:12]SAM_PROTO_ClearQueue done [14:05:12]KKMCreateOFDPacket [14:05:12]OFDProtocolAddRootSTLVToBuf [14:05:12]FM_MakeSignedData [14:05:12]FM_MakeSignedData [14:05:12]SAM_PROTO_SignData [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 0D 01 02 [14:05:12]Write to MH i2c: E2 08 00 5D 82 80 0D 01 02 00 00 00 00 58 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 5D 82 00 90 00 53 [14:05:12]RAPDU: 90 00 [14:05:12]wFMCommunicate OK [14:05:12]wFMCommunicate request_size=255 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A2 B2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 74 01 00 35 04 06 00 96 [14:05:12]Write to MH i2c: E2 02 01 5E 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A2 B2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 74 01 00 35 04 06 00 96 00 00 4F [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 5E 82 00 90 00 54 [14:05:12]RAPDU: 90 00 [14:05:12]wFMCommunicate OK [14:05:12]wFMCommunicate request_size=10 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 0D 02 02 05 0E 70 40 C1 52 [14:05:12]Write to MH i2c: E2 0D 00 5F 82 80 0D 02 02 05 00 0E 70 40 C1 52 00 00 36 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 03 00 5F 82 00 90 00 55 [14:05:12]RAPDU: 90 00 [14:05:12]wFMCommunicate OK [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 0D 03 02 [14:05:12]Write to MH i2c: E2 08 00 60 82 80 0D 03 02 00 00 00 00 5D [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 0B 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 0B 00 60 82 00 16 01 F0 C1 1C B9 C1 56 90 00 12 [14:05:12]RAPDU: 16 01 F0 C1 1C B9 C1 56 90 00 [14:05:12]wFMCommunicate OK [14:05:12]SAM_PROTO_SignData done [14:05:12]FM_MakeSignedData done [14:05:12]CreateOFDProtocolMessage [14:05:12]wFMCommunicate request_size=4 [14:05:12]MH_SAM_APDU [14:05:12]CAPDU: 80 11 00 00 [14:05:12]Write to MH i2c: E2 08 00 61 82 80 11 00 00 00 00 00 00 5D [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:12]Read from MH i2c: E2 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 17 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: E2 17 00 61 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 AD [14:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:05:12]wFMCommunicate OK [14:05:12]CreateOFDProtocolMessage done [14:05:12]OFDSenderStorePacket 95429 [14:05:12]StoreOFDPacket docnum=95429 [14:05:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B5 51 07 01 3F 01 5A 03 01 00 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 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A2 B2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 74 01 00 35 04 06 00 96 0E 70 40 C1 52 16 01 F0 C1 1C B9 C1 56 [14:05:12]CheckFolder [14:05:12]dirname=/storage/ofd_packets [14:05:12]CheckFolder done [14:05:12]ProducePacketName [14:05:12]name=ofd_packets/00095429 [14:05:12]NVStorageSaveData ofd_packets/00095429 [14:05:12]File name is /storage/ofd_packets/00095429 [14:05:12]Write 301 bytes [14:05:12]NVStorageSaveData done [14:05:12]OFDSenderStorePacket done [14:05:12]KKMCreateOFDPacket done [14:05:12]NVStorageSaveData kkm_last_timestamp [14:05:12]File name is /storage/kkm_last_timestamp [14:05:12]Write 4 bytes [14:05:12]NVStorageSaveData done [14:05:12]ExternCall_PrintAddStr [14:05:12]wPrintStart [14:05:12]Write to MH i2c: 01 00 00 62 82 E4 [14:05:12]Write i2c OK [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 07 00 [14:05:12]MH_I2C_Read... [14:05:12]Read from MH i2c: 01 07 00 62 82 00 80 00 00 00 FF 0F 79 [14:05:12]RasterBufferAndPrint [14:05:12]line Счет N : (1)196419 [14:05:12]line ИНН: 02508201610067 [14:05:12]line Контрольно-Кассовый Чек [14:05:12]line ПРОДАЖА [14:05:12]line ТРК (МРК, ГНК) : 41 [14:05:12]line Товар: 2710124500 [14:05:12]line Аи-95-К-5 [14:05:12]line 43.170 * 69.50 [14:05:12]line = 3000.32 [14:05:12]line НДС 12% НСП 1% [14:05:12]line > о реализуемом товаре [14:05:12]line ИТОГО: 3000.32 [14:05:12]line НСП 1% : 26.55 [14:05:12]line НДС 12% : 318.62 [14:05:12]line Наличными: 0.00 [14:05:12]line Безнал.: 3000.32 [14:05:12]line Место: АЗС № 6 "Партнер Нефть" [14:05:12]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:05:12]line СНО: Общий режим [14:05:12]line Чек 124 13.03.2024 14:05 [14:05:12]line Смена: 328 ФФД: 1.0 [14:05:12]line ЗНМ: 0300000009 [14:05:12]line РНМ: 0000000000090555 [14:05:12]line Версия ККМ: 001 [14:05:12]line Платежная система: Бакай Банк [14:05:12]line ФМ: 0000000000874811 [14:05:12]line ФД: 95429 [14:05:12]line ФПД: 164988757000530 [14:05:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T140522&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95429&fm=164988757000530&tin=02508201610067®Number=0000000000090555&sum=300032 [14:05:13]OFD Sender: Processing packet 95429 [packets to send 30, broken 29] [14:05:13]ProducePacketName [14:05:13]name=ofd_packets/00095429 [14:05:13]OFD Sender: To server: pG, [14:05:13]CommunicateWithHost lk.salyk.kg:30040 [14:05:13]ConnectInit lk.salyk.kg [14:05:13]written 0, free lines is 4095 [14:05:13]Connected sock=10 [14:05:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B5 51 07 01 3F 01 5A 03 01 00 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 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A2 B2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 74 01 00 35 04 06 00 96 0E 70 40 C1 52 16 01 F0 C1 1C B9 C1 56 [14:05:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 F2 7A 47 00 F8 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C5 74 01 00 F4 03 04 00 F4 5D F1 65 B6 04 01 00 00 30 FA 9B D3 73 35 4F 84 [14:05:13]CommunicateWithHost err = 0 [14:05:13]CheckOFDResponse [14:05:13]1017 (14) - 77093643461234 [14:05:13]1041 (16) - 0000000000874811 [14:05:13]1040 (4) - 95429 [14:05:13]1012 (4) - 13.03.2024 08:04 [14:05:13]1206 (1) - 0 [14:05:13]OFD Sender: Remove packet 95429 [14:05:13]ProducePacketName [14:05:13]name=ofd_packets/00095429 [14:05:13]NVStorageDeleteData [14:05:13]Write to MH i2c: 01 00 00 8C 82 0E [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: 01 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: 01 07 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: 01 07 00 8C 82 00 80 00 00 00 66 0D 08 [14:05:13]RasterBufferAndPrint [14:05:13]line [14:05:13]line [14:05:13]line [14:05:13]line [14:05:13]line [14:05:13]written 0, free lines is 3436 [14:05:13]process_action close_receipt done [14:05:13]requested_data is exist [14:05:13]produce_requested_data [14:05:13]requested_item fm.sn is exist - process it [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 11 00 00 [14:05:13]Write to MH i2c: E2 08 00 93 82 80 11 00 00 00 00 00 00 8F [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 17 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 17 00 93 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DF [14:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:05:13]wFMCommunicate OK [14:05:13]requested_item fd.num is exist - process it [14:05:13]SAM_PROTO_GetFieldsCounters [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 13 00 00 [14:05:13]Write to MH i2c: E2 08 00 94 82 80 13 00 00 00 00 00 00 92 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 62 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 62 00 94 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C5 74 01 00 0E 04 04 00 48 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 A6 [14:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C5 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:13]wFMCommunicate OK [14:05:13]SAM_PROTO_GetFieldsCounters done [14:05:13]requested_item shift.num is exist - process it [14:05:13]requested_item shift.opened is exist - process it [14:05:13]req_shift_opened [14:05:13]FM_GetShiftState [14:05:13]SAM_PROTO_GetShiftState [14:05:13]wFMCommunicate request_size=4 [14:05:13]MH_SAM_APDU [14:05:13]CAPDU: 80 13 01 00 [14:05:13]Write to MH i2c: E2 08 00 95 82 80 13 01 00 00 00 00 00 94 [14:05:13]Write i2c OK [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 [14:05:13]MH_I2C_Read... [14:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:13]Read from MH i2c: E2 0E 00 [14:05:13]MH_I2C_Read... [14:05:13]Read from MH i2c: E2 0E 00 95 82 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 79 [14:05:13]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:05:13]wFMCommunicate OK [14:05:13]SAM_PROTO_GetShiftState done [14:05:13]FM_GetShiftState done [14:05:13]req_shift_opened done [14:05:13]requested_item shift.open_date is exist - process it [14:05:13]req_shift_open_date [14:05:13]req_shift_open_date done [14:05:13]produce_requested_data done [14:05:13]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95429,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:05:13]process_action_free close_receipt [14:05:13]json_value_free [14:05:13]json_value_free done [14:05:13]process_json_proto returns [14:05:13]Send response to host [14:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95429,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:05:13]free response buf [14:05:13]execute_script done [14:05:13]execute_script returns [14:05:13]free content buf [14:05:13]Sock 8.Close socket [14:05:13]Sock 8.Thread stoped [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:11]accept exits with 9 [14:07:11]New connection [14:07:11]New thread 3066813796 created [14:07:11]Thread 3066957156 joined [14:07:11]Waiting for new connection... [14:07:11] Sock 9.Parse request [14:07:11]Sock 9.Check first char [14:07:11]Sock 9.First char is OK [14:07:11]request: POST /json_proto HTTP/1.0 [14:07:11]Method: POST [14:07:11]URL: /json_proto [14:07:11]Method is POST - this is cgi request [14:07:11]url: /json_proto [14:07:11]query_string will be loaded in cgi processing [14:07:11]execute_cgi json_proto POST (null) [14:07:11]execute_cgi path=json_proto method=POST [14:07:11]POST find Content-Length [14:07:11]Host: 172.17.62.67:8080 [14:07:11]Content-Length: 816 [14:07:11]Content-Type: application/json [14:07:11] [14:07:11]POST finish read [14:07:11]Found Content-Length = 816 [14:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196420", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:11]execute_script... [14:07:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196420", "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" : 62.90, "quantity" : 4.770, "sum" : 300.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:11]POST & json_proto [14:07:11]process_json_proto [14:07:11]json parsed OK: [14:07:11]protocol is kg_v1.0 [14:07:11]action value=close_receipt [14:07:11]process_action close_receipt [14:07:11]cmd_close_receipt [14:07:11]MH_GetDate [14:07:11]Write to MH i2c: F0 00 00 96 82 07 [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 05 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: F0 05 00 96 82 00 1A B3 F1 65 2F [14:07:11]GetLastDocTimeStamp 1710338722 [14:07:11]current date 1710338842 [14:07:11]FM_GetShiftState [14:07:11]SAM_PROTO_GetShiftState [14:07:11]wFMCommunicate request_size=4 [14:07:11]MH_SAM_APDU [14:07:11]CAPDU: 80 13 01 00 [14:07:11]Write to MH i2c: E2 08 00 97 82 80 13 01 00 00 00 00 00 96 [14:07:11]Write i2c OK [14:07:11]MH_I2C_Read... [14:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:11]Read from MH i2c: E2 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0E 00 [14:07:11]MH_I2C_Read... [14:07:11]Read from MH i2c: E2 0E 00 97 82 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 7B [14:07:11]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:07:11]wFMCommunicate OK [14:07:11]SAM_PROTO_GetShiftState done [14:07:11]FM_GetShiftState done [14:07:11]opened in 1710288279 [14:07:11]opened+sec_in_day 1710374679 [14:07:11]quantity*price = 30003 [14:07:11]sum+1 = 30004 [14:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.03 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 0.00 Безнал.: 300.03 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 125 13.03.2024 14:07 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95430 ФПД: 56357112121266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T140723&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95430&fm=56357112121266&tin=02508201610067®Number=0000000000090555&sum=30003 [14:07:12]StoreToDocumentArchive [14:07:12]shift 328 fd 95430 [14:07:12]save to /storage/0328/doc_00095430 [14:07:12]save last doc name /storage/0328/doc_00095430 to /storage/kkm_last_doc_name [14:07:12]save OK [14:07:12]Clear old archive folders... [14:07:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:12]tlvbuf is 01A03780 [14:07:12]SAM_PROTO_ClearQueue [14:07:12]wFMCommunicate request_size=4 [14:07:12]MH_SAM_APDU [14:07:12]CAPDU: 80 09 00 00 [14:07:12]Write to MH i2c: E2 08 00 A4 82 80 09 00 00 00 00 00 00 98 [14:07:12]Write i2c OK [14:07:12]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 A4 82 00 90 00 9A [14:07:13]RAPDU: 90 00 [14:07:13]wFMCommunicate OK [14:07:13]SAM_PROTO_ClearQueue done [14:07:13]KKMCreateOFDPacket [14:07:13]OFDProtocolAddRootSTLVToBuf [14:07:13]FM_MakeSignedData [14:07:13]FM_MakeSignedData [14:07:13]SAM_PROTO_SignData [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 0D 01 02 [14:07:13]Write to MH i2c: E2 08 00 A5 82 80 0D 01 02 00 00 00 00 A0 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 A5 82 00 90 00 9B [14:07:13]RAPDU: 90 00 [14:07:13]wFMCommunicate OK [14:07:13]wFMCommunicate request_size=255 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 1B B3 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 74 01 00 35 04 06 00 33 [14:07:13]Write to MH i2c: E2 02 01 A6 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 1B B3 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 74 01 00 35 04 06 00 33 00 00 DC [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 A6 82 00 90 00 9C [14:07:13]RAPDU: 90 00 [14:07:13]wFMCommunicate OK [14:07:13]wFMCommunicate request_size=10 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 0D 02 02 05 41 A9 A6 07 B2 [14:07:13]Write to MH i2c: E2 0D 00 A7 82 80 0D 02 02 05 00 41 A9 A6 07 B2 00 00 F6 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 03 00 A7 82 00 90 00 9D [14:07:13]RAPDU: 90 00 [14:07:13]wFMCommunicate OK [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 0D 03 02 [14:07:13]Write to MH i2c: E2 08 00 A8 82 80 0D 03 02 00 00 00 00 A5 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0B 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 0B 00 A8 82 00 76 C7 78 2F 01 FD 6D 3A 90 00 2F [14:07:13]RAPDU: 76 C7 78 2F 01 FD 6D 3A 90 00 [14:07:13]wFMCommunicate OK [14:07:13]SAM_PROTO_SignData done [14:07:13]FM_MakeSignedData done [14:07:13]CreateOFDProtocolMessage [14:07:13]wFMCommunicate request_size=4 [14:07:13]MH_SAM_APDU [14:07:13]CAPDU: 80 11 00 00 [14:07:13]Write to MH i2c: E2 08 00 A9 82 80 11 00 00 00 00 00 00 A5 [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:13]Read from MH i2c: E2 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 17 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: E2 17 00 A9 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F5 [14:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:07:13]wFMCommunicate OK [14:07:13]CreateOFDProtocolMessage done [14:07:13]OFDSenderStorePacket 95430 [14:07:13]StoreOFDPacket docnum=95430 [14:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 32 A8 07 01 44 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 1B B3 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 74 01 00 35 04 06 00 33 41 A9 A6 07 B2 76 C7 78 2F 01 FD 6D 3A [14:07:13]CheckFolder [14:07:13]dirname=/storage/ofd_packets [14:07:13]CheckFolder done [14:07:13]ProducePacketName [14:07:13]name=ofd_packets/00095430 [14:07:13]NVStorageSaveData ofd_packets/00095430 [14:07:13]File name is /storage/ofd_packets/00095430 [14:07:13]Write 301 bytes [14:07:13]NVStorageSaveData done [14:07:13]OFDSenderStorePacket done [14:07:13]KKMCreateOFDPacket done [14:07:13]NVStorageSaveData kkm_last_timestamp [14:07:13]File name is /storage/kkm_last_timestamp [14:07:13]Write 4 bytes [14:07:13]NVStorageSaveData done [14:07:13]ExternCall_PrintAddStr [14:07:13]wPrintStart [14:07:13]Write to MH i2c: 01 00 00 AA 82 2C [14:07:13]Write i2c OK [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 [14:07:13]MH_I2C_Read... [14:07:13]Read from MH i2c: 01 07 00 AA 82 00 80 00 00 00 FF 0F C1 [14:07:13]RasterBufferAndPrint [14:07:13]line Счет N : (1)196420 [14:07:13]line ИНН: 02508201610067 [14:07:13]line Контрольно-Кассовый Чек [14:07:13]line ПРОДАЖА [14:07:13]line ТРК (МРК, ГНК) : 22 [14:07:13]line Товар: 2710124130 [14:07:13]line Аи-92-К-5 [14:07:13]line 4.770 * 62.90 [14:07:13]line = 300.03 [14:07:13]line НДС 12% НСП 1% [14:07:13]line > о реализуемом товаре [14:07:13]line ИТОГО: 300.03 [14:07:13]line НСП 1% : 2.65 [14:07:13]line НДС 12% : 31.86 [14:07:13]line Наличными: 0.00 [14:07:13]line Безнал.: 300.03 [14:07:13]line Место: АЗС № 6 "Партнер Нефть" [14:07:13]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:07:13]line СНО: Общий режим [14:07:13]line Чек 125 13.03.2024 14:07 [14:07:13]line Смена: 328 ФФД: 1.0 [14:07:13]line ЗНМ: 0300000009 [14:07:13]line РНМ: 0000000000090555 [14:07:13]line Версия ККМ: 001 [14:07:13]line Платежная система: Бакай Банк [14:07:13]line ФМ: 0000000000874811 [14:07:13]line ФД: 95430 [14:07:13]line ФПД: 56357112121266 [14:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T140723&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95430&fm=56357112121266&tin=02508201610067®Number=0000000000090555&sum=30003 [14:07:13]OFD Sender: Processing packet 95430 [packets to send 30, broken 29] [14:07:13]ProducePacketName [14:07:13]name=ofd_packets/00095430 [14:07:13]OFD Sender: To server: pG, [14:07:13]CommunicateWithHost lk.salyk.kg:30040 [14:07:13]ConnectInit lk.salyk.kg [14:07:13]written 0, free lines is 4095 [14:07:13]Connected sock=10 [14:07:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 32 A8 07 01 44 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 33 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 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 72 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 1B B3 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 74 01 00 35 04 06 00 33 41 A9 A6 07 B2 76 C7 78 2F 01 FD 6D 3A [14:07:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B7 72 47 00 31 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C6 74 01 00 F4 03 04 00 6D 5E F1 65 B6 04 01 00 00 BD 03 0E 37 7F 4A 9A 6E [14:07:14]CommunicateWithHost err = 0 [14:07:14]CheckOFDResponse [14:07:14]1017 (14) - 77093643461234 [14:07:14]1041 (16) - 0000000000874811 [14:07:14]1040 (4) - 95430 [14:07:14]1012 (4) - 13.03.2024 08:06 [14:07:14]1206 (1) - 0 [14:07:14]OFD Sender: Remove packet 95430 [14:07:14]ProducePacketName [14:07:14]name=ofd_packets/00095430 [14:07:14]NVStorageDeleteData [14:07:14]Write to MH i2c: 01 00 00 D4 82 56 [14:07:14]Write i2c OK [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: 01 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: 01 07 00 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: 01 07 00 D4 82 00 80 00 00 00 59 0D 43 [14:07:14]RasterBufferAndPrint [14:07:14]line [14:07:14]line [14:07:14]line [14:07:14]line [14:07:14]line [14:07:14]written 0, free lines is 3423 [14:07:14]process_action close_receipt done [14:07:14]requested_data is exist [14:07:14]produce_requested_data [14:07:14]requested_item fm.sn is exist - process it [14:07:14]wFMCommunicate request_size=4 [14:07:14]MH_SAM_APDU [14:07:14]CAPDU: 80 11 00 00 [14:07:14]Write to MH i2c: E2 08 00 DB 82 80 11 00 00 00 00 00 00 D7 [14:07:14]Write i2c OK [14:07:14]MH_I2C_Read... [14:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:14]Read from MH i2c: E2 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 17 00 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 17 00 DB 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 27 [14:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:07:14]wFMCommunicate OK [14:07:14]requested_item fd.num is exist - process it [14:07:14]SAM_PROTO_GetFieldsCounters [14:07:14]wFMCommunicate request_size=4 [14:07:14]MH_SAM_APDU [14:07:14]CAPDU: 80 13 00 00 [14:07:14]Write to MH i2c: E2 08 00 DC 82 80 13 00 00 00 00 00 00 DA [14:07:14]Write i2c OK [14:07:14]MH_I2C_Read... [14:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:14]Read from MH i2c: E2 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 62 00 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 62 00 DC 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C6 74 01 00 0E 04 04 00 48 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 F2 [14:07:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C6 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:14]wFMCommunicate OK [14:07:14]SAM_PROTO_GetFieldsCounters done [14:07:14]requested_item shift.num is exist - process it [14:07:14]requested_item shift.opened is exist - process it [14:07:14]req_shift_opened [14:07:14]FM_GetShiftState [14:07:14]SAM_PROTO_GetShiftState [14:07:14]wFMCommunicate request_size=4 [14:07:14]MH_SAM_APDU [14:07:14]CAPDU: 80 13 01 00 [14:07:14]Write to MH i2c: E2 08 00 DD 82 80 13 01 00 00 00 00 00 DC [14:07:14]Write i2c OK [14:07:14]MH_I2C_Read... [14:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:14]Read from MH i2c: E2 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 0E 00 [14:07:14]MH_I2C_Read... [14:07:14]Read from MH i2c: E2 0E 00 DD 82 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C1 [14:07:14]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:07:14]wFMCommunicate OK [14:07:14]SAM_PROTO_GetShiftState done [14:07:14]FM_GetShiftState done [14:07:14]req_shift_opened done [14:07:14]requested_item shift.open_date is exist - process it [14:07:14]req_shift_open_date [14:07:14]req_shift_open_date done [14:07:14]produce_requested_data done [14:07:14]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95430,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:07:14]process_action_free close_receipt [14:07:14]json_value_free [14:07:14]json_value_free done [14:07:14]process_json_proto returns [14:07:14]Send response to host [14:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95430,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:07:14]free response buf [14:07:14]execute_script done [14:07:14]execute_script returns [14:07:14]free content buf [14:07:14]Sock 9.Close socket [14:07:14]Sock 9.Thread stoped [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:38]accept exits with 8 [14:09:38]New connection [14:09:38]New thread 3066957156 created [14:09:38]Thread 3066813796 joined [14:09:38]Waiting for new connection... [14:09:38] Sock 8.Parse request [14:09:38]Sock 8.Check first char [14:09:38]Sock 8.First char is OK [14:09:38]request: POST /json_proto HTTP/1.0 [14:09:38]Method: POST [14:09:38]URL: /json_proto [14:09:38]Method is POST - this is cgi request [14:09:38]url: /json_proto [14:09:38]query_string will be loaded in cgi processing [14:09:38]execute_cgi json_proto POST (null) [14:09:38]execute_cgi path=json_proto method=POST [14:09:38]POST find Content-Length [14:09:38]Host: 172.17.62.67:8080 [14:09:38]Content-Length: 812 [14:09:38]Content-Type: application/json [14:09:38] [14:09:38]POST finish read [14:09:38]Found Content-Length = 812 [14:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:38]execute_script... [14:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:38]POST & json_proto [14:09:38]process_json_proto [14:09:38]json parsed OK: [14:09:38]protocol is kg_v1.0 [14:09:38]action value=close_receipt [14:09:38]process_action close_receipt [14:09:38]cmd_close_receipt [14:09:38]MH_GetDate [14:09:38]Write to MH i2c: F0 00 00 DE 82 4F [14:09:38]Write i2c OK [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: F0 [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: F0 05 00 [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: F0 05 00 DE 82 00 AD B3 F1 65 0A [14:09:38]GetLastDocTimeStamp 1710338843 [14:09:38]current date 1710338989 [14:09:38]FM_GetShiftState [14:09:38]SAM_PROTO_GetShiftState [14:09:38]wFMCommunicate request_size=4 [14:09:38]MH_SAM_APDU [14:09:38]CAPDU: 80 13 01 00 [14:09:38]Write to MH i2c: E2 08 00 DF 82 80 13 01 00 00 00 00 00 DE [14:09:38]Write i2c OK [14:09:38]MH_I2C_Read... [14:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:38]Read from MH i2c: E2 [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: E2 0E 00 [14:09:38]MH_I2C_Read... [14:09:38]Read from MH i2c: E2 0E 00 DF 82 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C3 [14:09:38]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:09:38]wFMCommunicate OK [14:09:38]SAM_PROTO_GetShiftState done [14:09:38]FM_GetShiftState done [14:09:38]opened in 1710288279 [14:09:38]opened+sec_in_day 1710374679 [14:09:38]quantity*price = 100003 [14:09:38]sum+1 = 100005 [14:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.04 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.04 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 126 13.03.2024 14:09 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95431 ФПД: 217448523127441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T140949&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95431&fm=217448523127441&tin=02508201610067®Number=0000000000090555&sum=100004 [14:09:39]StoreToDocumentArchive [14:09:39]shift 328 fd 95431 [14:09:39]save to /storage/0328/doc_00095431 [14:09:39]save last doc name /storage/0328/doc_00095431 to /storage/kkm_last_doc_name [14:09:39]save OK [14:09:39]Clear old archive folders... [14:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:09:39]tlvbuf is 01AC65D0 [14:09:39]SAM_PROTO_ClearQueue [14:09:39]wFMCommunicate request_size=4 [14:09:39]MH_SAM_APDU [14:09:39]CAPDU: 80 09 00 00 [14:09:39]Write to MH i2c: E2 08 00 EC 82 80 09 00 00 00 00 00 00 E0 [14:09:39]Write i2c OK [14:09:39]MH_I2C_Read... [14:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:39]Read from MH i2c: E2 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 03 00 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 03 00 EC 82 00 90 00 E2 [14:09:39]RAPDU: 90 00 [14:09:39]wFMCommunicate OK [14:09:39]SAM_PROTO_ClearQueue done [14:09:39]KKMCreateOFDPacket [14:09:39]OFDProtocolAddRootSTLVToBuf [14:09:39]FM_MakeSignedData [14:09:39]FM_MakeSignedData [14:09:39]SAM_PROTO_SignData [14:09:39]wFMCommunicate request_size=4 [14:09:39]MH_SAM_APDU [14:09:39]CAPDU: 80 0D 01 02 [14:09:39]Write to MH i2c: E2 08 00 ED 82 80 0D 01 02 00 00 00 00 E8 [14:09:39]Write i2c OK [14:09:39]MH_I2C_Read... [14:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:39]Read from MH i2c: E2 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 03 00 [14:09:39]MH_I2C_Read... [14:09:39]Read from MH i2c: E2 03 00 ED 82 00 90 00 E3 [14:09:39]RAPDU: 90 00 [14:09:39]wFMCommunicate OK [14:09:39]wFMCommunicate request_size=255 [14:09:39]MH_SAM_APDU [14:09:39]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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AD B3 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 74 01 00 35 04 06 00 [14:09:39]Write to MH i2c: E2 02 01 EE 82 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AD B3 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 74 01 00 35 04 06 00 00 00 4F [14:09:39]Write i2c OK [14:09:39]MH_I2C_Read... [14:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:40]Read from MH i2c: E2 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: E2 03 00 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: E2 03 00 EE 82 00 90 00 E4 [14:09:40]RAPDU: 90 00 [14:09:40]wFMCommunicate OK [14:09:40]wFMCommunicate request_size=11 [14:09:40]MH_SAM_APDU [14:09:40]CAPDU: 80 0D 02 02 06 C5 C4 AD FA 5A 91 [14:09:40]Write to MH i2c: E2 0E 00 EF 82 80 0D 02 02 06 00 C5 C4 AD FA 5A 91 00 00 12 [14:09:40]Write i2c OK [14:09:40]MH_I2C_Read... [14:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:40]Read from MH i2c: E2 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: E2 03 00 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: E2 03 00 EF 82 00 90 00 E5 [14:09:40]RAPDU: 90 00 [14:09:40]wFMCommunicate OK [14:09:40]wFMCommunicate request_size=4 [14:09:40]MH_SAM_APDU [14:09:40]CAPDU: 80 0D 03 02 [14:09:40]Write to MH i2c: E2 08 00 F0 82 80 0D 03 02 00 00 00 00 ED [14:09:40]Write i2c OK [14:09:40]MH_I2C_Read... [14:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:40]Read from MH i2c: E2 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: E2 0B 00 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: E2 0B 00 F0 82 00 13 17 31 BB 48 50 EB B9 90 00 40 [14:09:40]RAPDU: 13 17 31 BB 48 50 EB B9 90 00 [14:09:40]wFMCommunicate OK [14:09:40]SAM_PROTO_SignData done [14:09:40]FM_MakeSignedData done [14:09:40]CreateOFDProtocolMessage [14:09:40]wFMCommunicate request_size=4 [14:09:40]MH_SAM_APDU [14:09:40]CAPDU: 80 11 00 00 [14:09:40]Write to MH i2c: E2 08 00 F1 82 80 11 00 00 00 00 00 00 ED [14:09:40]Write i2c OK [14:09:40]MH_I2C_Read... [14:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:40]Read from MH i2c: E2 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: E2 17 00 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: E2 17 00 F1 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 3D [14:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:09:40]wFMCommunicate OK [14:09:40]CreateOFDProtocolMessage done [14:09:40]OFDSenderStorePacket 95431 [14:09:40]StoreOFDPacket docnum=95431 [14:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 18 F4 08 01 F0 5F 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AD B3 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 74 01 00 35 04 06 00 C5 C4 AD FA 5A 91 13 17 31 BB 48 50 EB B9 [14:09:40]CheckFolder [14:09:40]dirname=/storage/ofd_packets [14:09:40]CheckFolder done [14:09:40]ProducePacketName [14:09:40]name=ofd_packets/00095431 [14:09:40]NVStorageSaveData ofd_packets/00095431 [14:09:40]File name is /storage/ofd_packets/00095431 [14:09:40]Write 302 bytes [14:09:40]NVStorageSaveData done [14:09:40]OFDSenderStorePacket done [14:09:40]KKMCreateOFDPacket done [14:09:40]NVStorageSaveData kkm_last_timestamp [14:09:40]File name is /storage/kkm_last_timestamp [14:09:40]Write 4 bytes [14:09:40]NVStorageSaveData done [14:09:40]ExternCall_PrintAddStr [14:09:40]wPrintStart [14:09:40]Write to MH i2c: 01 00 00 F2 82 74 [14:09:40]Write i2c OK [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: 01 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: 01 07 00 [14:09:40]MH_I2C_Read... [14:09:40]Read from MH i2c: 01 07 00 F2 82 00 80 00 00 00 FF 0F 09 [14:09:40]RasterBufferAndPrint [14:09:40]line Счет N : (1)196421 [14:09:40]line ИНН: 02508201610067 [14:09:40]line Контрольно-Кассовый Чек [14:09:40]line ПРОДАЖА [14:09:40]line ТРК (МРК, ГНК) : 33 [14:09:40]line Товар: 2710124130 [14:09:40]line SUPER 92-К-5 [14:09:40]line 15.650 * 63.90 [14:09:40]line = 1000.04 [14:09:40]line НДС 12% НСП 1% [14:09:40]line > о реализуемом товаре [14:09:40]line ИТОГО: 1000.04 [14:09:40]line НСП 1% : 8.85 [14:09:40]line НДС 12% : 106.20 [14:09:40]line Наличными: 0.00 [14:09:40]line Безнал.: 1000.04 [14:09:40]line Место: АЗС № 6 "Партнер Нефть" [14:09:40]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:09:40]line СНО: Общий режим [14:09:40]line Чек 126 13.03.2024 14:09 [14:09:40]line Смена: 328 ФФД: 1.0 [14:09:40]line ЗНМ: 0300000009 [14:09:40]line РНМ: 0000000000090555 [14:09:40]line Версия ККМ: 001 [14:09:40]line Платежная система: Бакай Банк [14:09:40]line ФМ: 0000000000874811 [14:09:40]line ФД: 95431 [14:09:40]line ФПД: 217448523127441 [14:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T140949&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95431&fm=217448523127441&tin=02508201610067®Number=0000000000090555&sum=100004 [14:09:40]OFD Sender: Processing packet 95431 [packets to send 30, broken 29] [14:09:40]ProducePacketName [14:09:40]name=ofd_packets/00095431 [14:09:40]OFD Sender: To server: pG, [14:09:40]CommunicateWithHost lk.salyk.kg:30040 [14:09:40]ConnectInit lk.salyk.kg [14:09:40]written 0, free lines is 4095 [14:09:40]Connected sock=10 [14:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 18 F4 08 01 F0 5F 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 AD B3 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 74 01 00 35 04 06 00 C5 C4 AD FA 5A 91 13 17 31 BB 48 50 EB B9 [14:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 47 B1 47 00 50 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C7 74 01 00 F4 03 04 00 00 5F F1 65 B6 04 01 00 00 86 66 A2 BD 1C 1B 07 F6 [14:09:40]CommunicateWithHost err = 0 [14:09:40]CheckOFDResponse [14:09:40]1017 (14) - 77093643461234 [14:09:40]1041 (16) - 0000000000874811 [14:09:40]1040 (4) - 95431 [14:09:40]1012 (4) - 13.03.2024 08:08 [14:09:40]1206 (1) - 0 [14:09:40]OFD Sender: Remove packet 95431 [14:09:40]ProducePacketName [14:09:40]name=ofd_packets/00095431 [14:09:40]NVStorageDeleteData [14:09:41]Write to MH i2c: 01 00 00 1C 83 9F [14:09:41]Write i2c OK [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 07 00 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: 01 07 00 1C 83 00 80 00 00 00 67 0D 9A [14:09:41]RasterBufferAndPrint [14:09:41]line [14:09:41]line [14:09:41]line [14:09:41]line [14:09:41]line [14:09:41]written 0, free lines is 3437 [14:09:41]process_action close_receipt done [14:09:41]requested_data is exist [14:09:41]produce_requested_data [14:09:41]requested_item fm.sn is exist - process it [14:09:41]wFMCommunicate request_size=4 [14:09:41]MH_SAM_APDU [14:09:41]CAPDU: 80 11 00 00 [14:09:41]Write to MH i2c: E2 08 00 23 83 80 11 00 00 00 00 00 00 20 [14:09:41]Write i2c OK [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: E2 [14:09:41]MH_I2C_Read... [14:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:41]Read from MH i2c: E2 17 00 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: E2 17 00 23 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 70 [14:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:09:41]wFMCommunicate OK [14:09:41]requested_item fd.num is exist - process it [14:09:41]SAM_PROTO_GetFieldsCounters [14:09:41]wFMCommunicate request_size=4 [14:09:41]MH_SAM_APDU [14:09:41]CAPDU: 80 13 00 00 [14:09:41]Write to MH i2c: E2 08 00 24 83 80 13 00 00 00 00 00 00 23 [14:09:41]Write i2c OK [14:09:41]MH_I2C_Read... [14:09:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:41]Read from MH i2c: E2 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: E2 62 00 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: E2 62 00 24 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C7 74 01 00 0E 04 04 00 48 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 3F [14:09:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C7 74 01 00 0E 04 04 00 48 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 [14:09:41]wFMCommunicate OK [14:09:41]SAM_PROTO_GetFieldsCounters done [14:09:41]requested_item shift.num is exist - process it [14:09:41]requested_item shift.opened is exist - process it [14:09:41]req_shift_opened [14:09:41]FM_GetShiftState [14:09:41]SAM_PROTO_GetShiftState [14:09:41]wFMCommunicate request_size=4 [14:09:41]MH_SAM_APDU [14:09:41]CAPDU: 80 13 01 00 [14:09:41]Write to MH i2c: E2 08 00 25 83 80 13 01 00 00 00 00 00 25 [14:09:41]Write i2c OK [14:09:41]MH_I2C_Read... [14:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:41]OFD Sender: No OFD packet to send [14:09:41]Read from MH i2c: E2 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: E2 0E 00 [14:09:41]MH_I2C_Read... [14:09:41]Read from MH i2c: E2 0E 00 25 83 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0A [14:09:41]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:09:41]wFMCommunicate OK [14:09:41]SAM_PROTO_GetShiftState done [14:09:41]FM_GetShiftState done [14:09:41]req_shift_opened done [14:09:41]requested_item shift.open_date is exist - process it [14:09:41]req_shift_open_date [14:09:41]req_shift_open_date done [14:09:41]produce_requested_data done [14:09:41]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95431,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:09:41]process_action_free close_receipt [14:09:41]json_value_free [14:09:41]json_value_free done [14:09:41]process_json_proto returns [14:09:41]Send response to host [14:09:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95431,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:09:41]free response buf [14:09:41]execute_script done [14:09:41]execute_script returns [14:09:41]free content buf [14:09:41]Sock 8.Close socket [14:09:41]Sock 8.Thread stoped [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]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]accept exits with 9 [14:13:16]New connection [14:13:16]New thread 3066813796 created [14:13:16]Thread 3066957156 joined [14:13:16]Waiting for new connection... [14:13:16] Sock 9.Parse request [14:13:16]Sock 9.Check first char [14:13:16]Sock 9.First char is OK [14:13:16]request: POST /json_proto HTTP/1.0 [14:13:16]Method: POST [14:13:16]URL: /json_proto [14:13:16]Method is POST - this is cgi request [14:13:16]url: /json_proto [14:13:16]query_string will be loaded in cgi processing [14:13:16]execute_cgi json_proto POST (null) [14:13:16]execute_cgi path=json_proto method=POST [14:13:16]POST find Content-Length [14:13:16]Host: 172.17.62.67:8080 [14:13:16]Content-Length: 682 [14:13:16]Content-Type: application/json [14:13:16] [14:13:16]POST finish read [14:13:16]Found Content-Length = 682 [14:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196422", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:13:16]execute_script... [14:13:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196422", "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" : 62.90, "quantity" : 15.900, "sum" : 1000.11, "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:13:16]POST & json_proto [14:13:16]process_json_proto [14:13:16]json parsed OK: [14:13:16]protocol is kg_v1.0 [14:13:16]action value=close_receipt [14:13:16]process_action close_receipt [14:13:16]cmd_close_receipt [14:13:16]MH_GetDate [14:13:16]Write to MH i2c: F0 00 00 26 83 98 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 05 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 05 00 26 83 00 87 B4 F1 65 2E [14:13:16]GetLastDocTimeStamp 1710338989 [14:13:16]current date 1710339207 [14:13:16]FM_GetShiftState [14:13:16]SAM_PROTO_GetShiftState [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 13 01 00 [14:13:16]Write to MH i2c: E2 08 00 27 83 80 13 01 00 00 00 00 00 27 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 0E 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 0E 00 27 83 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0C [14:13:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:13:16]wFMCommunicate OK [14:13:16]SAM_PROTO_GetShiftState done [14:13:16]FM_GetShiftState done [14:13:16]opened in 1710288279 [14:13:16]opened+sec_in_day 1710374679 [14:13:16]quantity*price = 100011 [14:13:16]sum+1 = 100012 [14:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 127 13.03.2024 14:13 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95432 ФПД: 85070296495764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T141327&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95432&fm=85070296495764&tin=02508201610067®Number=0000000000090555&sum=100000 [14:13:17]StoreToDocumentArchive [14:13:17]shift 328 fd 95432 [14:13:17]save to /storage/0328/doc_00095432 [14:13:17]save last doc name /storage/0328/doc_00095432 to /storage/kkm_last_doc_name [14:13:17]save OK [14:13:17]Clear old archive folders... [14:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:17]tlvbuf is 01CD3DC0 [14:13:17]SAM_PROTO_ClearQueue [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 09 00 00 [14:13:17]Write to MH i2c: E2 08 00 34 83 80 09 00 00 00 00 00 00 29 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 34 83 00 90 00 2B [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_ClearQueue done [14:13:17]KKMCreateOFDPacket [14:13:17]OFDProtocolAddRootSTLVToBuf [14:13:17]FM_MakeSignedData [14:13:17]FM_MakeSignedData [14:13:17]SAM_PROTO_SignData [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 01 02 [14:13:17]Write to MH i2c: E2 08 00 35 83 80 0D 01 02 00 00 00 00 31 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 35 83 00 90 00 2C [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=255 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7F 00 00 00 F4 03 04 00 87 B4 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 74 01 00 35 04 06 00 4D [14:13:17]Write to MH i2c: E2 02 01 36 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7F 00 00 00 F4 03 04 00 87 B4 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 74 01 00 35 04 06 00 4D 00 00 BC [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 36 83 00 90 00 2D [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=10 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 02 02 05 5E F8 CD B6 94 [14:13:17]Write to MH i2c: E2 0D 00 37 83 80 0D 02 02 05 00 5E F8 CD B6 94 00 00 AB [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 37 83 00 90 00 2E [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 03 02 [14:13:17]Write to MH i2c: E2 08 00 38 83 80 0D 03 02 00 00 00 00 36 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0B 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0B 00 38 83 00 9C 1D 21 5A 35 55 78 C5 90 00 32 [14:13:17]RAPDU: 9C 1D 21 5A 35 55 78 C5 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_SignData done [14:13:17]FM_MakeSignedData done [14:13:17]CreateOFDProtocolMessage [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 11 00 00 [14:13:17]Write to MH i2c: E2 08 00 39 83 80 11 00 00 00 00 00 00 36 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 17 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 17 00 39 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 86 [14:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:13:18]wFMCommunicate OK [14:13:18]CreateOFDProtocolMessage done [14:13:18]OFDSenderStorePacket 95432 [14:13:18]StoreOFDPacket docnum=95432 [14:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3B AD 07 01 9B EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7F 00 00 00 F4 03 04 00 87 B4 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 74 01 00 35 04 06 00 4D 5E F8 CD B6 94 9C 1D 21 5A 35 55 78 C5 [14:13:18]CheckFolder [14:13:18]dirname=/storage/ofd_packets [14:13:18]CheckFolder done [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00095432 [14:13:18]NVStorageSaveData ofd_packets/00095432 [14:13:18]File name is /storage/ofd_packets/00095432 [14:13:18]Write 301 bytes [14:13:18]NVStorageSaveData done [14:13:18]OFDSenderStorePacket done [14:13:18]KKMCreateOFDPacket done [14:13:18]NVStorageSaveData kkm_last_timestamp [14:13:18]File name is /storage/kkm_last_timestamp [14:13:18]Write 4 bytes [14:13:18]NVStorageSaveData done [14:13:18]ExternCall_PrintAddStr [14:13:18]wPrintStart [14:13:18]Write to MH i2c: 01 00 00 3A 83 BD [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 3A 83 00 80 00 00 00 FF 0F 52 [14:13:18]RasterBufferAndPrint [14:13:18]line Счет N : (1)196422 [14:13:18]line ИНН: 02508201610067 [14:13:18]line Контрольно-Кассовый Чек [14:13:18]line ПРОДАЖА [14:13:18]line ТРК (МРК, ГНК) : 12 [14:13:18]line Товар: 2710124130 [14:13:18]line Аи-92-К-5 [14:13:18]line 15.900 * 62.90 [14:13:18]line = 1000.11 [14:13:18]line НДС 12% НСП 1% [14:13:18]line > о реализуемом товаре [14:13:18]line ОКРУГЛЕНИЕ: -0.11 [14:13:18]line ИТОГО: 1000.00 [14:13:18]line Внесено: 1000.00 [14:13:18]line СДАЧА: 0.00 [14:13:18]line НСП 1% : 8.85 [14:13:18]line НДС 12% : 106.21 [14:13:18]line Наличными: 1000.00 [14:13:18]line Безнал.: 0.00 [14:13:18]line Место: АЗС № 6 "Партнер Нефть" [14:13:18]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:13:18]line СНО: Общий режим [14:13:18]line Чек 127 13.03.2024 14:13 [14:13:18]line Смена: 328 ФФД: 1.0 [14:13:18]line ЗНМ: 0300000009 [14:13:18]line РНМ: 0000000000090555 [14:13:18]line Версия ККМ: 001 [14:13:18]line ФМ: 0000000000874811 [14:13:18]line ФД: 95432 [14:13:18]line ФПД: 85070296495764 [14:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T141327&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95432&fm=85070296495764&tin=02508201610067®Number=0000000000090555&sum=100000 [14:13:18]OFD Sender: Processing packet 95432 [packets to send 30, broken 29] [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00095432 [14:13:18]OFD Sender: To server: pG, [14:13:18]CommunicateWithHost lk.salyk.kg:30040 [14:13:18]ConnectInit lk.salyk.kg [14:13:18]written 0, free lines is 4095 [14:13:18]Connected sock=10 [14:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 3B AD 07 01 9B EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7F 00 00 00 F4 03 04 00 87 B4 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C8 74 01 00 35 04 06 00 4D 5E F8 CD B6 94 9C 1D 21 5A 35 55 78 C5 [14:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 14 82 47 00 EA 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 34 38 31 31 10 04 04 00 C8 74 01 00 F4 03 04 00 DA 5F F1 65 B6 04 01 00 00 26 64 E0 8E 4A 39 82 39 [14:13:18]CommunicateWithHost err = 0 [14:13:18]CheckOFDResponse [14:13:18]1017 (14) - 77093643461234 [14:13:18]1041 (16) - 0000000000874811 [14:13:18]1040 (4) - 95432 [14:13:18]1012 (4) - 13.03.2024 08:12 [14:13:18]1206 (1) - 0 [14:13:18]OFD Sender: Remove packet 95432 [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00095432 [14:13:18]NVStorageDeleteData [14:13:18]Write to MH i2c: 01 00 00 65 83 E8 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 65 83 00 80 00 00 00 59 0D D5 [14:13:18]RasterBufferAndPrint [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]written 0, free lines is 3423 [14:13:18]process_action close_receipt done [14:13:18]requested_data is exist [14:13:18]produce_requested_data [14:13:18]requested_item fm.sn is exist - process it [14:13:18]wFMCommunicate request_size=4 [14:13:18]MH_SAM_APDU [14:13:18]CAPDU: 80 11 00 00 [14:13:18]Write to MH i2c: E2 08 00 6C 83 80 11 00 00 00 00 00 00 69 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 [14:13:18]MH_I2C_Read... [14:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:18]Read from MH i2c: E2 17 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: E2 17 00 6C 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B9 [14:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:13:18]wFMCommunicate OK [14:13:18]requested_item fd.num is exist - process it [14:13:18]SAM_PROTO_GetFieldsCounters [14:13:18]wFMCommunicate request_size=4 [14:13:18]MH_SAM_APDU [14:13:18]CAPDU: 80 13 00 00 [14:13:18]Write to MH i2c: E2 08 00 6D 83 80 13 00 00 00 00 00 00 6C [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:19]Read from MH i2c: E2 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: E2 62 00 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: E2 62 00 6D 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C8 74 01 00 0E 04 04 00 48 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 8C [14:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C8 74 01 00 0E 04 04 00 48 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 [14:13:19]wFMCommunicate OK [14:13:19]SAM_PROTO_GetFieldsCounters done [14:13:19]requested_item shift.num is exist - process it [14:13:19]requested_item shift.opened is exist - process it [14:13:19]req_shift_opened [14:13:19]FM_GetShiftState [14:13:19]SAM_PROTO_GetShiftState [14:13:19]wFMCommunicate request_size=4 [14:13:19]MH_SAM_APDU [14:13:19]CAPDU: 80 13 01 00 [14:13:19]Write to MH i2c: E2 08 00 6E 83 80 13 01 00 00 00 00 00 6E [14:13:19]Write i2c OK [14:13:19]MH_I2C_Read... [14:13:19]OFD Sender: No OFD packet to send [14:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:19]Read from MH i2c: E2 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: E2 0E 00 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: E2 0E 00 6E 83 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 53 [14:13:19]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:13:19]wFMCommunicate OK [14:13:19]SAM_PROTO_GetShiftState done [14:13:19]FM_GetShiftState done [14:13:19]req_shift_opened done [14:13:19]requested_item shift.open_date is exist - process it [14:13:19]req_shift_open_date [14:13:19]req_shift_open_date done [14:13:19]produce_requested_data done [14:13:19]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95432,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:13:19]process_action_free close_receipt [14:13:19]json_value_free [14:13:19]json_value_free done [14:13:19]process_json_proto returns [14:13:19]Send response to host [14:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95432,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:13:19]free response buf [14:13:19]execute_script done [14:13:19]execute_script returns [14:13:19]free content buf [14:13:19]Sock 9.Close socket [14:13:19]Sock 9.Thread stoped [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:15:59]accept exits with 8 [14:15:59]New connection [14:15:59]New thread 3066957156 created [14:15:59]Thread 3066813796 joined [14:15:59]Waiting for new connection... [14:15:59] Sock 8.Parse request [14:15:59]Sock 8.Check first char [14:15:59]Sock 8.First char is OK [14:15:59]request: POST /json_proto HTTP/1.0 [14:15:59]Method: POST [14:15:59]URL: /json_proto [14:15:59]Method is POST - this is cgi request [14:15:59]url: /json_proto [14:15:59]query_string will be loaded in cgi processing [14:15:59]execute_cgi json_proto POST (null) [14:15:59]execute_cgi path=json_proto method=POST [14:15:59]POST find Content-Length [14:15:59]Host: 172.17.62.67:8080 [14:15:59]Content-Length: 671 [14:15:59]Content-Type: application/json [14:15:59] [14:15:59]POST finish read [14:15:59]Found Content-Length = 671 [14:15:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.020, "sum" : 640.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:59]execute_script... [14:15:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.020, "sum" : 640.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:59]POST & json_proto [14:15:59]process_json_proto [14:15:59]json parsed OK: [14:15:59]protocol is kg_v1.0 [14:15:59]action value=close_receipt [14:15:59]process_action close_receipt [14:15:59]cmd_close_receipt [14:15:59]MH_GetDate [14:15:59]Write to MH i2c: F0 00 00 6F 83 E1 [14:15:59]Write i2c OK [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: F0 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: F0 05 00 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: F0 05 00 6F 83 00 2A B5 F1 65 1B [14:15:59]GetLastDocTimeStamp 1710339207 [14:15:59]current date 1710339370 [14:15:59]FM_GetShiftState [14:15:59]SAM_PROTO_GetShiftState [14:15:59]wFMCommunicate request_size=4 [14:15:59]MH_SAM_APDU [14:15:59]CAPDU: 80 13 01 00 [14:15:59]Write to MH i2c: E2 08 00 70 83 80 13 01 00 00 00 00 00 70 [14:15:59]Write i2c OK [14:15:59]MH_I2C_Read... [14:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:59]Read from MH i2c: E2 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 0E 00 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 0E 00 70 83 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 55 [14:15:59]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:15:59]wFMCommunicate OK [14:15:59]SAM_PROTO_GetShiftState done [14:15:59]FM_GetShiftState done [14:15:59]opened in 1710288279 [14:15:59]opened+sec_in_day 1710374679 [14:15:59]quantity*price = 64027 [14:15:59]sum+1 = 64029 [14:15:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 67.99 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 128 13.03.2024 14:16 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95433 ФПД: 151349167978839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T141610&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95433&fm=151349167978839&tin=02508201610067®Number=0000000000090555&sum=64000 [14:16:00]StoreToDocumentArchive [14:16:00]shift 328 fd 95433 [14:16:00]save to /storage/0328/doc_00095433 [14:16:00]save last doc name /storage/0328/doc_00095433 to /storage/kkm_last_doc_name [14:16:00]save OK [14:16:00]Clear old archive folders... [14:16:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:16:00]tlvbuf is 01C76FD0 [14:16:00]SAM_PROTO_ClearQueue [14:16:00]wFMCommunicate request_size=4 [14:16:00]MH_SAM_APDU [14:16:00]CAPDU: 80 09 00 00 [14:16:00]Write to MH i2c: E2 08 00 7D 83 80 09 00 00 00 00 00 00 72 [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:00]Read from MH i2c: E2 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 03 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 03 00 7D 83 00 90 00 74 [14:16:00]RAPDU: 90 00 [14:16:00]wFMCommunicate OK [14:16:00]SAM_PROTO_ClearQueue done [14:16:00]KKMCreateOFDPacket [14:16:00]OFDProtocolAddRootSTLVToBuf [14:16:00]FM_MakeSignedData [14:16:00]FM_MakeSignedData [14:16:00]SAM_PROTO_SignData [14:16:00]wFMCommunicate request_size=4 [14:16:00]MH_SAM_APDU [14:16:00]CAPDU: 80 0D 01 02 [14:16:00]Write to MH i2c: E2 08 00 7E 83 80 0D 01 02 00 00 00 00 7A [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:00]Read from MH i2c: E2 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 03 00 [14:16:00]MH_I2C_Read... [14:16:00]Read from MH i2c: E2 03 00 7E 83 00 90 00 75 [14:16:00]RAPDU: 90 00 [14:16:00]wFMCommunicate OK [14:16:00]wFMCommunicate request_size=255 [14:16:00]MH_SAM_APDU [14:16:00]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 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 2A B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 74 01 00 35 04 06 00 [14:16:00]Write to MH i2c: E2 02 01 7F 83 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 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 2A B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 74 01 00 35 04 06 00 00 00 9E [14:16:00]Write i2c OK [14:16:00]MH_I2C_Read... [14:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:01]Read from MH i2c: E2 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 03 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 03 00 7F 83 00 90 00 76 [14:16:01]RAPDU: 90 00 [14:16:01]wFMCommunicate OK [14:16:01]wFMCommunicate request_size=11 [14:16:01]MH_SAM_APDU [14:16:01]CAPDU: 80 0D 02 02 06 89 A6 B9 64 F9 57 [14:16:01]Write to MH i2c: E2 0E 00 80 83 80 0D 02 02 06 00 89 A6 B9 64 F9 57 00 00 25 [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:01]Read from MH i2c: E2 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 03 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 03 00 80 83 00 90 00 77 [14:16:01]RAPDU: 90 00 [14:16:01]wFMCommunicate OK [14:16:01]wFMCommunicate request_size=4 [14:16:01]MH_SAM_APDU [14:16:01]CAPDU: 80 0D 03 02 [14:16:01]Write to MH i2c: E2 08 00 81 83 80 0D 03 02 00 00 00 00 7F [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:01]Read from MH i2c: E2 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 0B 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 0B 00 81 83 00 63 EE 43 D0 0D 42 57 5A 90 00 E4 [14:16:01]RAPDU: 63 EE 43 D0 0D 42 57 5A 90 00 [14:16:01]wFMCommunicate OK [14:16:01]SAM_PROTO_SignData done [14:16:01]FM_MakeSignedData done [14:16:01]CreateOFDProtocolMessage [14:16:01]wFMCommunicate request_size=4 [14:16:01]MH_SAM_APDU [14:16:01]CAPDU: 80 11 00 00 [14:16:01]Write to MH i2c: E2 08 00 82 83 80 11 00 00 00 00 00 00 7F [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:01]Read from MH i2c: E2 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 17 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: E2 17 00 82 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CF [14:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:16:01]wFMCommunicate OK [14:16:01]CreateOFDProtocolMessage done [14:16:01]OFDSenderStorePacket 95433 [14:16:01]StoreOFDPacket docnum=95433 [14:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 0E AA 08 01 89 1F 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 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 2A B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 74 01 00 35 04 06 00 89 A6 B9 64 F9 57 63 EE 43 D0 0D 42 57 5A [14:16:01]CheckFolder [14:16:01]dirname=/storage/ofd_packets [14:16:01]CheckFolder done [14:16:01]ProducePacketName [14:16:01]name=ofd_packets/00095433 [14:16:01]NVStorageSaveData ofd_packets/00095433 [14:16:01]File name is /storage/ofd_packets/00095433 [14:16:01]Write 302 bytes [14:16:01]NVStorageSaveData done [14:16:01]OFDSenderStorePacket done [14:16:01]KKMCreateOFDPacket done [14:16:01]NVStorageSaveData kkm_last_timestamp [14:16:01]File name is /storage/kkm_last_timestamp [14:16:01]Write 4 bytes [14:16:01]NVStorageSaveData done [14:16:01]ExternCall_PrintAddStr [14:16:01]wPrintStart [14:16:01]Write to MH i2c: 01 00 00 83 83 06 [14:16:01]Write i2c OK [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: 01 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: 01 07 00 [14:16:01]MH_I2C_Read... [14:16:01]Read from MH i2c: 01 07 00 83 83 00 80 00 00 00 FF 0F 9B [14:16:01]RasterBufferAndPrint [14:16:01]line Счет N : (1)196423 [14:16:01]line ИНН: 02508201610067 [14:16:01]line Контрольно-Кассовый Чек [14:16:01]line ПРОДАЖА [14:16:01]line ТРК (МРК, ГНК) : 23 [14:16:01]line Товар: 2710124130 [14:16:01]line SUPER 92-К-5 [14:16:01]line 10.020 * 63.90 [14:16:01]line = 640.28 [14:16:01]line НДС 12% НСП 1% [14:16:01]line > о реализуемом товаре [14:16:01]line ОКРУГЛЕНИЕ: -0.28 [14:16:01]line ИТОГО: 640.00 [14:16:01]line Внесено: 640.00 [14:16:01]line СДАЧА: 0.00 [14:16:01]line НСП 1% : 5.67 [14:16:01]line НДС 12% : 67.99 [14:16:01]line Наличными: 640.00 [14:16:01]line Безнал.: 0.00 [14:16:01]line Место: АЗС № 6 "Партнер Нефть" [14:16:01]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:16:01]line СНО: Общий режим [14:16:01]line Чек 128 13.03.2024 14:16 [14:16:01]line Смена: 328 ФФД: 1.0 [14:16:01]line ЗНМ: 0300000009 [14:16:01]line РНМ: 0000000000090555 [14:16:01]line Версия ККМ: 001 [14:16:01]line ФМ: 0000000000874811 [14:16:01]line ФД: 95433 [14:16:01]line ФПД: 151349167978839 [14:16:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T141610&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95433&fm=151349167978839&tin=02508201610067®Number=0000000000090555&sum=64000 [14:16:01]OFD Sender: Processing packet 95433 [packets to send 30, broken 29] [14:16:01]ProducePacketName [14:16:01]name=ofd_packets/00095433 [14:16:01]OFD Sender: To server: pG, [14:16:01]CommunicateWithHost lk.salyk.kg:30040 [14:16:01]ConnectInit lk.salyk.kg [14:16:01]written 0, free lines is 4095 [14:16:01]Connected sock=10 [14:16:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 0E AA 08 01 89 1F 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 24 27 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 1C FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 1A 00 00 00 00 07 04 06 00 00 FA 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 2A B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 74 01 00 35 04 06 00 89 A6 B9 64 F9 57 63 EE 43 D0 0D 42 57 5A [14:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D8 AC 47 00 B2 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 C9 74 01 00 F4 03 04 00 7D 60 F1 65 B6 04 01 00 00 B5 64 63 D7 85 65 E0 FA [14:16:02]CommunicateWithHost err = 0 [14:16:02]CheckOFDResponse [14:16:02]1017 (14) - 77093643461234 [14:16:02]1041 (16) - 0000000000874811 [14:16:02]1040 (4) - 95433 [14:16:02]1012 (4) - 13.03.2024 08:14 [14:16:02]1206 (1) - 0 [14:16:02]OFD Sender: Remove packet 95433 [14:16:02]ProducePacketName [14:16:02]name=ofd_packets/00095433 [14:16:02]NVStorageDeleteData [14:16:02]Write to MH i2c: 01 00 00 AE 83 31 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 07 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: 01 07 00 AE 83 00 80 00 00 00 52 0D 17 [14:16:02]RasterBufferAndPrint [14:16:02]line [14:16:02]line [14:16:02]line [14:16:02]line [14:16:02]line [14:16:02]written 0, free lines is 3415 [14:16:02]process_action close_receipt done [14:16:02]requested_data is exist [14:16:02]produce_requested_data [14:16:02]requested_item fm.sn is exist - process it [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 11 00 00 [14:16:02]Write to MH i2c: E2 08 00 B5 83 80 11 00 00 00 00 00 00 B2 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 17 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 17 00 B5 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 02 [14:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:16:02]wFMCommunicate OK [14:16:02]requested_item fd.num is exist - process it [14:16:02]SAM_PROTO_GetFieldsCounters [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 13 00 00 [14:16:02]Write to MH i2c: E2 08 00 B6 83 80 13 00 00 00 00 00 00 B5 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 62 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 62 00 B6 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C9 74 01 00 0E 04 04 00 48 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 D9 [14:16:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 C9 74 01 00 0E 04 04 00 48 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 [14:16:02]wFMCommunicate OK [14:16:02]SAM_PROTO_GetFieldsCounters done [14:16:02]requested_item shift.num is exist - process it [14:16:02]requested_item shift.opened is exist - process it [14:16:02]req_shift_opened [14:16:02]FM_GetShiftState [14:16:02]SAM_PROTO_GetShiftState [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 13 01 00 [14:16:02]Write to MH i2c: E2 08 00 B7 83 80 13 01 00 00 00 00 00 B7 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:02]Read from MH i2c: E2 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0E 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: E2 0E 00 B7 83 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 9C [14:16:02]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:16:02]wFMCommunicate OK [14:16:02]SAM_PROTO_GetShiftState done [14:16:02]FM_GetShiftState done [14:16:02]req_shift_opened done [14:16:02]requested_item shift.open_date is exist - process it [14:16:02]req_shift_open_date [14:16:02]req_shift_open_date done [14:16:02]produce_requested_data done [14:16:02]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95433,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:16:02]process_action_free close_receipt [14:16:02]json_value_free [14:16:02]json_value_free done [14:16:02]process_json_proto returns [14:16:02]Send response to host [14:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95433,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:16:02]free response buf [14:16:02]execute_script done [14:16:02]execute_script returns [14:16:02]free content buf [14:16:02]Sock 8.Close socket [14:16:02]Sock 8.Thread stoped [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:15]accept exits with 9 [14:17:15]New connection [14:17:15]New thread 3066813796 created [14:17:15]Thread 3066957156 joined [14:17:15]Waiting for new connection... [14:17:15] Sock 9.Parse request [14:17:15]Sock 9.Check first char [14:17:15]Sock 9.First char is OK [14:17:15]request: POST /json_proto HTTP/1.0 [14:17:15]Method: POST [14:17:15]URL: /json_proto [14:17:15]Method is POST - this is cgi request [14:17:15]url: /json_proto [14:17:15]query_string will be loaded in cgi processing [14:17:15]execute_cgi json_proto POST (null) [14:17:15]execute_cgi path=json_proto method=POST [14:17:15]POST find Content-Length [14:17:15]Host: 172.17.62.67:8080 [14:17:15]Content-Length: 674 [14:17:15]Content-Type: application/json [14:17:15] [14:17:15]POST finish read [14:17:15]Found Content-Length = 674 [14:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196424", "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" : 70.90, "quantity" : 9.880, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:15]execute_script... [14:17:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196424", "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" : 70.90, "quantity" : 9.880, "sum" : 700.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:15]POST & json_proto [14:17:15]process_json_proto [14:17:15]json parsed OK: [14:17:15]protocol is kg_v1.0 [14:17:15]action value=close_receipt [14:17:15]process_action close_receipt [14:17:15]cmd_close_receipt [14:17:15]MH_GetDate [14:17:15]Write to MH i2c: F0 00 00 B8 83 2A [14:17:15]Write i2c OK [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: F0 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: F0 05 00 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: F0 05 00 B8 83 00 76 B5 F1 65 B0 [14:17:15]GetLastDocTimeStamp 1710339370 [14:17:15]current date 1710339446 [14:17:15]FM_GetShiftState [14:17:15]SAM_PROTO_GetShiftState [14:17:15]wFMCommunicate request_size=4 [14:17:15]MH_SAM_APDU [14:17:15]CAPDU: 80 13 01 00 [14:17:15]Write to MH i2c: E2 08 00 B9 83 80 13 01 00 00 00 00 00 B9 [14:17:15]Write i2c OK [14:17:15]MH_I2C_Read... [14:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:15]Read from MH i2c: E2 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: E2 0E 00 [14:17:15]MH_I2C_Read... [14:17:15]Read from MH i2c: E2 0E 00 B9 83 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 9E [14:17:15]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:17:15]wFMCommunicate OK [14:17:15]SAM_PROTO_GetShiftState done [14:17:15]FM_GetShiftState done [14:17:15]opened in 1710288279 [14:17:15]opened+sec_in_day 1710374679 [14:17:15]quantity*price = 70049 [14:17:15]sum+1 = 70050 [14:17:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 129 13.03.2024 14:17 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95434 ФПД: 146836218503466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T141726&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95434&fm=146836218503466&tin=02508201610067®Number=0000000000090555&sum=70000 [14:17:16]StoreToDocumentArchive [14:17:16]shift 328 fd 95434 [14:17:16]save to /storage/0328/doc_00095434 [14:17:16]save last doc name /storage/0328/doc_00095434 to /storage/kkm_last_doc_name [14:17:16]save OK [14:17:16]Clear old archive folders... [14:17:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:17:16]tlvbuf is 01AB22E0 [14:17:16]SAM_PROTO_ClearQueue [14:17:16]wFMCommunicate request_size=4 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 09 00 00 [14:17:16]Write to MH i2c: E2 08 00 C6 83 80 09 00 00 00 00 00 00 BB [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:16]Read from MH i2c: E2 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 03 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 03 00 C6 83 00 90 00 BD [14:17:16]RAPDU: 90 00 [14:17:16]wFMCommunicate OK [14:17:16]SAM_PROTO_ClearQueue done [14:17:16]KKMCreateOFDPacket [14:17:16]OFDProtocolAddRootSTLVToBuf [14:17:16]FM_MakeSignedData [14:17:16]FM_MakeSignedData [14:17:16]SAM_PROTO_SignData [14:17:16]wFMCommunicate request_size=4 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 0D 01 02 [14:17:16]Write to MH i2c: E2 08 00 C7 83 80 0D 01 02 00 00 00 00 C3 [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:16]Read from MH i2c: E2 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 03 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 03 00 C7 83 00 90 00 BE [14:17:16]RAPDU: 90 00 [14:17:16]wFMCommunicate OK [14:17:16]wFMCommunicate request_size=255 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A1 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 0F 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 81 00 00 00 F4 03 04 00 76 B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 74 01 00 35 04 06 00 85 8B F8 A4 [14:17:16]Write to MH i2c: E2 02 01 C8 83 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 98 26 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A1 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 0F 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 81 00 00 00 F4 03 04 00 76 B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 74 01 00 35 04 06 00 85 8B F8 A4 00 00 2E [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:16]Read from MH i2c: E2 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 03 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 03 00 C8 83 00 90 00 BF [14:17:16]RAPDU: 90 00 [14:17:16]wFMCommunicate OK [14:17:16]wFMCommunicate request_size=7 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 0D 02 02 02 E1 2A [14:17:16]Write to MH i2c: E2 0A 00 C9 83 80 0D 02 02 02 00 E1 2A 00 00 D5 [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:16]Read from MH i2c: E2 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 03 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 03 00 C9 83 00 90 00 C0 [14:17:16]RAPDU: 90 00 [14:17:16]wFMCommunicate OK [14:17:16]wFMCommunicate request_size=4 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 0D 03 02 [14:17:16]Write to MH i2c: E2 08 00 CA 83 80 0D 03 02 00 00 00 00 C8 [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:16]Read from MH i2c: E2 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 0B 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 0B 00 CA 83 00 CF 28 25 4C 96 8E C3 BD 90 00 D5 [14:17:16]RAPDU: CF 28 25 4C 96 8E C3 BD 90 00 [14:17:16]wFMCommunicate OK [14:17:16]SAM_PROTO_SignData done [14:17:16]FM_MakeSignedData done [14:17:16]CreateOFDProtocolMessage [14:17:16]wFMCommunicate request_size=4 [14:17:16]MH_SAM_APDU [14:17:16]CAPDU: 80 11 00 00 [14:17:16]Write to MH i2c: E2 08 00 CB 83 80 11 00 00 00 00 00 00 C8 [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:16]Read from MH i2c: E2 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 17 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: E2 17 00 CB 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 18 [14:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:17:16]wFMCommunicate OK [14:17:16]CreateOFDProtocolMessage done [14:17:16]OFDSenderStorePacket 95434 [14:17:16]StoreOFDPacket docnum=95434 [14:17:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 0C 3F 04 01 AB B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A1 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 0F 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 81 00 00 00 F4 03 04 00 76 B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 74 01 00 35 04 06 00 85 8B F8 A4 E1 2A CF 28 25 4C 96 8E C3 BD [14:17:16]CheckFolder [14:17:16]dirname=/storage/ofd_packets [14:17:16]CheckFolder done [14:17:16]ProducePacketName [14:17:16]name=ofd_packets/00095434 [14:17:16]NVStorageSaveData ofd_packets/00095434 [14:17:16]File name is /storage/ofd_packets/00095434 [14:17:16]Write 298 bytes [14:17:16]NVStorageSaveData done [14:17:16]OFDSenderStorePacket done [14:17:16]KKMCreateOFDPacket done [14:17:16]NVStorageSaveData kkm_last_timestamp [14:17:16]File name is /storage/kkm_last_timestamp [14:17:16]Write 4 bytes [14:17:16]NVStorageSaveData done [14:17:16]ExternCall_PrintAddStr [14:17:16]wPrintStart [14:17:16]Write to MH i2c: 01 00 00 CC 83 4F [14:17:16]Write i2c OK [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: 01 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: 01 07 00 [14:17:16]MH_I2C_Read... [14:17:16]Read from MH i2c: 01 07 00 CC 83 00 80 00 00 00 FF 0F E4 [14:17:16]RasterBufferAndPrint [14:17:16]line Счет N : (1)196424 [14:17:16]line ИНН: 02508201610067 [14:17:16]line Контрольно-Кассовый Чек [14:17:16]line ПРОДАЖА [14:17:16]line ТРК (МРК, ГНК) : 51 [14:17:16]line Товар: 2710194210 [14:17:16]line ДТ-К-5 [14:17:16]line 9.880 * 70.90 [14:17:16]line = 700.49 [14:17:16]line НДС 12% НСП 1% [14:17:16]line > о реализуемом товаре [14:17:16]line ОКРУГЛЕНИЕ: -0.49 [14:17:16]line ИТОГО: 700.00 [14:17:16]line Внесено: 700.00 [14:17:16]line СДАЧА: 0.00 [14:17:16]line НСП 1% : 6.20 [14:17:16]line НДС 12% : 74.39 [14:17:16]line Наличными: 700.00 [14:17:16]line Безнал.: 0.00 [14:17:16]line Место: АЗС № 6 "Партнер Нефть" [14:17:16]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:17:16]line СНО: Общий режим [14:17:16]line Чек 129 13.03.2024 14:17 [14:17:16]line Смена: 328 ФФД: 1.0 [14:17:16]line ЗНМ: 0300000009 [14:17:16]line РНМ: 0000000000090555 [14:17:16]line Версия ККМ: 001 [14:17:16]line ФМ: 0000000000874811 [14:17:16]line ФД: 95434 [14:17:16]line ФПД: 146836218503466 [14:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T141726&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95434&fm=146836218503466&tin=02508201610067®Number=0000000000090555&sum=70000 [14:17:17]OFD Sender: Processing packet 95434 [packets to send 30, broken 29] [14:17:17]ProducePacketName [14:17:17]name=ofd_packets/00095434 [14:17:17]OFD Sender: To server: pG, [14:17:17]CommunicateWithHost lk.salyk.kg:30040 [14:17:17]ConnectInit lk.salyk.kg [14:17:17]written 0, free lines is 4095 [14:17:17]Connected sock=10 [14:17:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 0C 3F 04 01 AB B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 26 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 A1 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 0F 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 81 00 00 00 F4 03 04 00 76 B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 74 01 00 35 04 06 00 85 8B F8 A4 E1 2A CF 28 25 4C 96 8E C3 BD [14:17:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6C E4 47 00 C8 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CA 74 01 00 F4 03 04 00 C8 60 F1 65 B6 04 01 00 00 71 B8 FE D2 C5 60 9D 31 [14:17:17]CommunicateWithHost err = 0 [14:17:17]CheckOFDResponse [14:17:17]1017 (14) - 77093643461234 [14:17:17]1041 (16) - 0000000000874811 [14:17:17]1040 (4) - 95434 [14:17:17]1012 (4) - 13.03.2024 08:16 [14:17:17]1206 (1) - 0 [14:17:17]OFD Sender: Remove packet 95434 [14:17:17]ProducePacketName [14:17:17]name=ofd_packets/00095434 [14:17:17]NVStorageDeleteData [14:17:17]Write to MH i2c: 01 00 00 F7 83 7A [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: 01 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: 01 07 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: 01 07 00 F7 83 00 80 00 00 00 51 0D 5F [14:17:17]RasterBufferAndPrint [14:17:17]line [14:17:17]line [14:17:17]line [14:17:17]line [14:17:17]line [14:17:17]written 0, free lines is 3415 [14:17:17]process_action close_receipt done [14:17:17]requested_data is exist [14:17:17]produce_requested_data [14:17:17]requested_item fm.sn is exist - process it [14:17:17]wFMCommunicate request_size=4 [14:17:17]MH_SAM_APDU [14:17:17]CAPDU: 80 11 00 00 [14:17:17]Write to MH i2c: E2 08 00 FE 83 80 11 00 00 00 00 00 00 FB [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:17]Read from MH i2c: E2 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 17 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 17 00 FE 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4B [14:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:17:17]wFMCommunicate OK [14:17:17]requested_item fd.num is exist - process it [14:17:17]SAM_PROTO_GetFieldsCounters [14:17:17]wFMCommunicate request_size=4 [14:17:17]MH_SAM_APDU [14:17:17]CAPDU: 80 13 00 00 [14:17:17]Write to MH i2c: E2 08 00 FF 83 80 13 00 00 00 00 00 00 FE [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:17]Read from MH i2c: E2 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 62 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 62 00 FF 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CA 74 01 00 0E 04 04 00 48 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 26 [14:17:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CA 74 01 00 0E 04 04 00 48 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 [14:17:17]wFMCommunicate OK [14:17:17]SAM_PROTO_GetFieldsCounters done [14:17:17]requested_item shift.num is exist - process it [14:17:17]requested_item shift.opened is exist - process it [14:17:17]req_shift_opened [14:17:17]FM_GetShiftState [14:17:17]SAM_PROTO_GetShiftState [14:17:17]wFMCommunicate request_size=4 [14:17:17]MH_SAM_APDU [14:17:17]CAPDU: 80 13 01 00 [14:17:17]Write to MH i2c: E2 08 00 00 84 80 13 01 00 00 00 00 00 01 [14:17:17]Write i2c OK [14:17:17]MH_I2C_Read... [14:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:17]Read from MH i2c: E2 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 0E 00 [14:17:17]MH_I2C_Read... [14:17:17]Read from MH i2c: E2 0E 00 00 84 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E6 [14:17:17]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:17:17]wFMCommunicate OK [14:17:17]SAM_PROTO_GetShiftState done [14:17:17]FM_GetShiftState done [14:17:17]req_shift_opened done [14:17:17]requested_item shift.open_date is exist - process it [14:17:17]req_shift_open_date [14:17:17]req_shift_open_date done [14:17:17]produce_requested_data done [14:17:17]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95434,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:17:17]process_action_free close_receipt [14:17:17]json_value_free [14:17:17]json_value_free done [14:17:17]process_json_proto returns [14:17:17]Send response to host [14:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95434,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:17:17]free response buf [14:17:17]execute_script done [14:17:17]execute_script returns [14:17:17]free content buf [14:17:17]Sock 9.Close socket [14:17:17]Sock 9.Thread stoped [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:36]accept exits with 8 [14:17:36]New connection [14:17:36]New thread 3066957156 created [14:17:36]Thread 3066813796 joined [14:17:36]Waiting for new connection... [14:17:36] Sock 8.Parse request [14:17:36]Sock 8.Check first char [14:17:36]Sock 8.First char is OK [14:17:36]request: POST /json_proto HTTP/1.0 [14:17:36]Method: POST [14:17:36]URL: /json_proto [14:17:36]Method is POST - this is cgi request [14:17:36]url: /json_proto [14:17:36]query_string will be loaded in cgi processing [14:17:36]execute_cgi json_proto POST (null) [14:17:36]execute_cgi path=json_proto method=POST [14:17:36]POST find Content-Length [14:17:36]Host: 172.17.62.67:8080 [14:17:36]Content-Length: 677 [14:17:36]Content-Type: application/json [14:17:36] [14:17:36]POST finish read [14:17:36]Found Content-Length = 677 [14:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196425", "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" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:36]execute_script... [14:17:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196425", "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" : 62.90, "quantity" : 3.180, "sum" : 200.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:36]POST & json_proto [14:17:36]process_json_proto [14:17:36]json parsed OK: [14:17:36]protocol is kg_v1.0 [14:17:36]action value=close_receipt [14:17:36]process_action close_receipt [14:17:36]cmd_close_receipt [14:17:36]MH_GetDate [14:17:36]Write to MH i2c: F0 00 00 01 84 74 [14:17:36]Write i2c OK [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: F0 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: F0 05 00 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: F0 05 00 01 84 00 8B B5 F1 65 0F [14:17:36]GetLastDocTimeStamp 1710339446 [14:17:36]current date 1710339467 [14:17:36]FM_GetShiftState [14:17:36]SAM_PROTO_GetShiftState [14:17:36]wFMCommunicate request_size=4 [14:17:36]MH_SAM_APDU [14:17:36]CAPDU: 80 13 01 00 [14:17:36]Write to MH i2c: E2 08 00 02 84 80 13 01 00 00 00 00 00 03 [14:17:36]Write i2c OK [14:17:36]MH_I2C_Read... [14:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:36]Read from MH i2c: E2 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: E2 0E 00 [14:17:36]MH_I2C_Read... [14:17:36]Read from MH i2c: E2 0E 00 02 84 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E8 [14:17:36]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:17:36]wFMCommunicate OK [14:17:36]SAM_PROTO_GetShiftState done [14:17:36]FM_GetShiftState done [14:17:36]opened in 1710288279 [14:17:36]opened+sec_in_day 1710374679 [14:17:36]quantity*price = 20002 [14:17:36]sum+1 = 20003 [14:17:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 130 13.03.2024 14:17 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95435 ФПД: 253109454220764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T141747&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95435&fm=253109454220764&tin=02508201610067®Number=0000000000090555&sum=20000 [14:17:37]StoreToDocumentArchive [14:17:37]shift 328 fd 95435 [14:17:37]save to /storage/0328/doc_00095435 [14:17:37]save last doc name /storage/0328/doc_00095435 to /storage/kkm_last_doc_name [14:17:37]save OK [14:17:37]Clear old archive folders... [14:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:37]tlvbuf is 01AFA5B0 [14:17:37]SAM_PROTO_ClearQueue [14:17:37]wFMCommunicate request_size=4 [14:17:37]MH_SAM_APDU [14:17:37]CAPDU: 80 09 00 00 [14:17:37]Write to MH i2c: E2 08 00 0F 84 80 09 00 00 00 00 00 00 05 [14:17:37]Write i2c OK [14:17:37]MH_I2C_Read... [14:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:37]Read from MH i2c: E2 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: E2 03 00 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: E2 03 00 0F 84 00 90 00 07 [14:17:37]RAPDU: 90 00 [14:17:37]wFMCommunicate OK [14:17:37]SAM_PROTO_ClearQueue done [14:17:37]KKMCreateOFDPacket [14:17:37]OFDProtocolAddRootSTLVToBuf [14:17:37]FM_MakeSignedData [14:17:37]FM_MakeSignedData [14:17:37]SAM_PROTO_SignData [14:17:37]wFMCommunicate request_size=4 [14:17:37]MH_SAM_APDU [14:17:37]CAPDU: 80 0D 01 02 [14:17:37]Write to MH i2c: E2 08 00 10 84 80 0D 01 02 00 00 00 00 0D [14:17:37]Write i2c OK [14:17:37]MH_I2C_Read... [14:17:37]OFD Sender: No OFD packet to send [14:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:37]Read from MH i2c: E2 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: E2 03 00 [14:17:37]MH_I2C_Read... [14:17:37]Read from MH i2c: E2 03 00 10 84 00 90 00 08 [14:17:37]RAPDU: 90 00 [14:17:37]wFMCommunicate OK [14:17:37]wFMCommunicate request_size=255 [14:17:37]MH_SAM_APDU [14:17:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 8B B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 74 01 00 35 04 06 00 E6 [14:17:37]Write to MH i2c: E2 02 01 11 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 8B B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 74 01 00 35 04 06 00 E6 00 00 0D [14:17:37]Write i2c OK [14:17:37]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 11 84 00 90 00 09 [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]wFMCommunicate request_size=10 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 02 02 05 33 A3 1B AD DC [14:17:38]Write to MH i2c: E2 0D 00 12 84 80 0D 02 02 05 00 33 A3 1B AD DC 00 00 94 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 03 00 12 84 00 90 00 0A [14:17:38]RAPDU: 90 00 [14:17:38]wFMCommunicate OK [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 0D 03 02 [14:17:38]Write to MH i2c: E2 08 00 13 84 80 0D 03 02 00 00 00 00 12 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 0B 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 0B 00 13 84 00 47 2B 2C B2 99 60 B7 95 90 00 A8 [14:17:38]RAPDU: 47 2B 2C B2 99 60 B7 95 90 00 [14:17:38]wFMCommunicate OK [14:17:38]SAM_PROTO_SignData done [14:17:38]FM_MakeSignedData done [14:17:38]CreateOFDProtocolMessage [14:17:38]wFMCommunicate request_size=4 [14:17:38]MH_SAM_APDU [14:17:38]CAPDU: 80 11 00 00 [14:17:38]Write to MH i2c: E2 08 00 14 84 80 11 00 00 00 00 00 00 12 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:38]Read from MH i2c: E2 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 17 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: E2 17 00 14 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 62 [14:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:17:38]wFMCommunicate OK [14:17:38]CreateOFDProtocolMessage done [14:17:38]OFDSenderStorePacket 95435 [14:17:38]StoreOFDPacket docnum=95435 [14:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 9C 53 07 01 A8 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 8B B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 74 01 00 35 04 06 00 E6 33 A3 1B AD DC 47 2B 2C B2 99 60 B7 95 [14:17:38]CheckFolder [14:17:38]dirname=/storage/ofd_packets [14:17:38]CheckFolder done [14:17:38]ProducePacketName [14:17:38]name=ofd_packets/00095435 [14:17:38]NVStorageSaveData ofd_packets/00095435 [14:17:38]File name is /storage/ofd_packets/00095435 [14:17:38]Write 301 bytes [14:17:38]NVStorageSaveData done [14:17:38]OFDSenderStorePacket done [14:17:38]KKMCreateOFDPacket done [14:17:38]NVStorageSaveData kkm_last_timestamp [14:17:38]File name is /storage/kkm_last_timestamp [14:17:38]Write 4 bytes [14:17:38]NVStorageSaveData done [14:17:38]ExternCall_PrintAddStr [14:17:38]wPrintStart [14:17:38]Write to MH i2c: 01 00 00 15 84 99 [14:17:38]Write i2c OK [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: 01 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: 01 07 00 [14:17:38]MH_I2C_Read... [14:17:38]Read from MH i2c: 01 07 00 15 84 00 80 00 00 00 FF 0F 2E [14:17:38]RasterBufferAndPrint [14:17:38]line Счет N : (1)196425 [14:17:38]line ИНН: 02508201610067 [14:17:38]line Контрольно-Кассовый Чек [14:17:38]line ПРОДАЖА [14:17:38]line ТРК (МРК, ГНК) : 42 [14:17:38]line Товар: 2710124130 [14:17:38]line Аи-92-К-5 [14:17:38]line 3.180 * 62.90 [14:17:38]line = 200.02 [14:17:38]line НДС 12% НСП 1% [14:17:38]line > о реализуемом товаре [14:17:38]line ОКРУГЛЕНИЕ: -0.02 [14:17:38]line ИТОГО: 200.00 [14:17:38]line Внесено: 200.00 [14:17:38]line СДАЧА: 0.00 [14:17:38]line НСП 1% : 1.77 [14:17:38]line НДС 12% : 21.24 [14:17:38]line Наличными: 200.00 [14:17:38]line Безнал.: 0.00 [14:17:38]line Место: АЗС № 6 "Партнер Нефть" [14:17:38]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:17:38]line СНО: Общий режим [14:17:38]line Чек 130 13.03.2024 14:17 [14:17:38]line Смена: 328 ФФД: 1.0 [14:17:38]line ЗНМ: 0300000009 [14:17:38]line РНМ: 0000000000090555 [14:17:38]line Версия ККМ: 001 [14:17:38]line ФМ: 0000000000874811 [14:17:38]line ФД: 95435 [14:17:38]line ФПД: 253109454220764 [14:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T141747&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95435&fm=253109454220764&tin=02508201610067®Number=0000000000090555&sum=20000 [14:17:38]OFD Sender: Processing packet 95435 [packets to send 30, broken 29] [14:17:38]ProducePacketName [14:17:38]name=ofd_packets/00095435 [14:17:38]OFD Sender: To server: pG, [14:17:38]CommunicateWithHost lk.salyk.kg:30040 [14:17:38]ConnectInit lk.salyk.kg [14:17:38]written 0, free lines is 4095 [14:17:38]Connected sock=10 [14:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 9C 53 07 01 A8 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 0C 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 22 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 8B B5 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 74 01 00 35 04 06 00 E6 33 A3 1B AD DC 47 2B 2C B2 99 60 B7 95 [14:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 67 9E 47 00 5E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CB 74 01 00 F4 03 04 00 DE 60 F1 65 B6 04 01 00 00 AD A2 93 73 AF 81 80 21 [14:17:39]CommunicateWithHost err = 0 [14:17:39]CheckOFDResponse [14:17:39]1017 (14) - 77093643461234 [14:17:39]1041 (16) - 0000000000874811 [14:17:39]1040 (4) - 95435 [14:17:39]1012 (4) - 13.03.2024 08:16 [14:17:39]1206 (1) - 0 [14:17:39]OFD Sender: Remove packet 95435 [14:17:39]ProducePacketName [14:17:39]name=ofd_packets/00095435 [14:17:39]NVStorageDeleteData [14:17:39]Write to MH i2c: 01 00 00 40 84 C4 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 07 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: 01 07 00 40 84 00 80 00 00 00 49 0D A1 [14:17:39]RasterBufferAndPrint [14:17:39]line [14:17:39]line [14:17:39]line [14:17:39]line [14:17:39]line [14:17:39]written 0, free lines is 3407 [14:17:39]process_action close_receipt done [14:17:39]requested_data is exist [14:17:39]produce_requested_data [14:17:39]requested_item fm.sn is exist - process it [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 11 00 00 [14:17:39]Write to MH i2c: E2 08 00 47 84 80 11 00 00 00 00 00 00 45 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 17 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 17 00 47 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 95 [14:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:17:39]wFMCommunicate OK [14:17:39]requested_item fd.num is exist - process it [14:17:39]SAM_PROTO_GetFieldsCounters [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 13 00 00 [14:17:39]Write to MH i2c: E2 08 00 48 84 80 13 00 00 00 00 00 00 48 [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 62 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 62 00 48 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CB 74 01 00 0E 04 04 00 48 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 74 [14: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CB 74 01 00 0E 04 04 00 48 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 [14:17:39]wFMCommunicate OK [14:17:39]SAM_PROTO_GetFieldsCounters done [14:17:39]requested_item shift.num is exist - process it [14:17:39]requested_item shift.opened is exist - process it [14:17:39]req_shift_opened [14:17:39]FM_GetShiftState [14:17:39]SAM_PROTO_GetShiftState [14:17:39]wFMCommunicate request_size=4 [14:17:39]MH_SAM_APDU [14:17:39]CAPDU: 80 13 01 00 [14:17:39]Write to MH i2c: E2 08 00 49 84 80 13 01 00 00 00 00 00 4A [14:17:39]Write i2c OK [14:17:39]MH_I2C_Read... [14:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:39]Read from MH i2c: E2 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 0E 00 [14:17:39]MH_I2C_Read... [14:17:39]Read from MH i2c: E2 0E 00 49 84 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2F [14:17:39]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:17:39]wFMCommunicate OK [14:17:39]SAM_PROTO_GetShiftState done [14:17:39]FM_GetShiftState done [14:17:39]req_shift_opened done [14:17:39]requested_item shift.open_date is exist - process it [14:17:39]req_shift_open_date [14:17:39]req_shift_open_date done [14:17:39]produce_requested_data done [14:17:39]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95435,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:17:39]process_action_free close_receipt [14:17:39]json_value_free [14:17:39]json_value_free done [14:17:39]process_json_proto returns [14:17:39]Send response to host [14:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95435,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:17:39]free response buf [14:17:39]execute_script done [14:17:39]execute_script returns [14:17:39]free content buf [14:17:39]Sock 8.Close socket [14:17:39]Sock 8.Thread stoped [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:32]accept exits with 9 [14:20:32]New connection [14:20:32]New thread 3066813796 created [14:20:32]Thread 3066957156 joined [14:20:32]Waiting for new connection... [14:20:32] Sock 9.Parse request [14:20:32]Sock 9.Check first char [14:20:32]Sock 9.First char is OK [14:20:32]request: POST /json_proto HTTP/1.0 [14:20:32]Method: POST [14:20:32]URL: /json_proto [14:20:32]Method is POST - this is cgi request [14:20:32]url: /json_proto [14:20:32]query_string will be loaded in cgi processing [14:20:32]execute_cgi json_proto POST (null) [14:20:32]execute_cgi path=json_proto method=POST [14:20:32]POST find Content-Length [14:20:32]Host: 172.17.62.67:8080 [14:20:32]Content-Length: 215 [14:20:32]Content-Type: application/json [14:20:32] [14:20:32]POST finish read [14:20:32]Found Content-Length = 215 [14:20: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" ] } } [14:20:32]execute_script... [14:20: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" ] } } [14:20:32]POST & json_proto [14:20:32]process_json_proto [14:20:32]json parsed OK: [14:20:32]protocol is kg_v1.0 [14:20:32]action value=get_value [14:20:32]process_action get_value [14:20:32]cmd_get_value [14:20:32]process_action get_value done [14:20:32]requested_data is exist [14:20:32]produce_requested_data [14:20:32]requested_item kkm.sn is exist - process it [14:20:32]requested_item kkm.ver is exist - process it [14:20:32]requested_item fm.sn is exist - process it [14:20:32]wFMCommunicate request_size=4 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 11 00 00 [14:20:32]Write to MH i2c: E2 08 00 4A 84 80 11 00 00 00 00 00 00 48 [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:32]Read from MH i2c: E2 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 17 00 [14:20:32]MH_I2C_Read... [14:20:32]Read from MH i2c: E2 17 00 4A 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 98 [14:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:20:32]wFMCommunicate OK [14:20:32]requested_item fd.num is exist - process it [14:20:32]SAM_PROTO_GetFieldsCounters [14:20:32]wFMCommunicate request_size=4 [14:20:32]MH_SAM_APDU [14:20:32]CAPDU: 80 13 00 00 [14:20:32]Write to MH i2c: E2 08 00 4B 84 80 13 00 00 00 00 00 00 4B [14:20:32]Write i2c OK [14:20:32]MH_I2C_Read... [14:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:33]Read from MH i2c: E2 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 62 00 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 62 00 4B 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CB 74 01 00 0E 04 04 00 48 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 77 [14:20:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CB 74 01 00 0E 04 04 00 48 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 [14:20:33]wFMCommunicate OK [14:20:33]SAM_PROTO_GetFieldsCounters done [14:20:33]requested_item shift.num is exist - process it [14:20:33]requested_item shift.opened is exist - process it [14:20:33]req_shift_opened [14:20:33]FM_GetShiftState [14:20:33]SAM_PROTO_GetShiftState [14:20:33]wFMCommunicate request_size=4 [14:20:33]MH_SAM_APDU [14:20:33]CAPDU: 80 13 01 00 [14:20:33]Write to MH i2c: E2 08 00 4C 84 80 13 01 00 00 00 00 00 4D [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:33]Read from MH i2c: E2 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 0E 00 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 0E 00 4C 84 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 32 [14:20:33]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:20:33]wFMCommunicate OK [14:20:33]SAM_PROTO_GetShiftState done [14:20:33]FM_GetShiftState done [14:20:33]req_shift_opened done [14:20:33]requested_item shift.open_date is exist - process it [14:20:33]req_shift_open_date [14:20:33]req_shift_open_date done [14:20:33]produce_requested_data done [14:20:33]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95435,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:20:33]process_action_free get_value [14:20:33]json_value_free [14:20:33]json_value_free done [14:20:33]process_json_proto returns [14:20:33]Send response to host [14:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95435,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:20:33]free response buf [14:20:33]execute_script done [14:20:33]execute_script returns [14:20:33]free content buf [14:20:33]Sock 9.Close socket [14:20:33]Sock 9.Thread stoped [14:20:33]accept exits with 10 [14:20:33]New connection [14:20:33]New thread 3066957156 created [14:20:33]Thread 3066813796 joined [14:20:33]Waiting for new connection... [14:20:33] Sock 10.Parse request [14:20:33]Sock 10.Check first char [14:20:33]Sock 10.First char is OK [14:20:33]request: POST /json_proto HTTP/1.0 [14:20:33]Method: POST [14:20:33]URL: /json_proto [14:20:33]Method is POST - this is cgi request [14:20:33]url: /json_proto [14:20:33]query_string will be loaded in cgi processing [14:20:33]execute_cgi json_proto POST (null) [14:20:33]execute_cgi path=json_proto method=POST [14:20:33]POST find Content-Length [14:20:33]Host: 172.17.62.67:8080 [14:20:33]Content-Length: 331 [14:20:33]Content-Type: application/json [14:20:33] [14:20:33]POST finish read [14:20:33]Found Content-Length = 331 [14:20:33]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:20:33]execute_script... [14:20:33]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:20:33]POST & json_proto [14:20:33]process_json_proto [14:20:33]json parsed OK: [14:20:33]protocol is kg_v1.0 [14:20:33]action value=get_value [14:20:33]process_action get_value [14:20:33]cmd_get_value [14:20:33]process_action get_value done [14:20:33]requested_data is exist [14:20:33]produce_requested_data [14:20:33]requested_item fm.sale.total is exist - process it [14:20:33]SAM_PROTO_GetFMData [14:20:33]wFMCommunicate request_size=4 [14:20:33]MH_SAM_APDU [14:20:33]CAPDU: 80 13 03 00 [14:20:33]Write to MH i2c: E2 08 00 4D 84 80 13 03 00 00 00 00 00 50 [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:20:33]Read from MH i2c: E2 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 FD 00 [14:20:33]MH_I2C_Read... [14:20:33]Read from MH i2c: E2 FD 00 4D 84 00 C8 04 85 04 C4 04 6E 04 04 00 36 72 01 00 69 04 A3 00 6F 04 04 00 53 65 01 00 B1 04 05 00 88 EF 70 B1 01 70 04 05 00 A4 E5 2B 5D 01 72 04 04 00 E4 09 45 54 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 60 9A 0A 2E 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 FB 20 D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 6C [14:20:33]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 36 72 01 00 69 04 A3 00 6F 04 04 00 53 65 01 00 B1 04 05 00 88 EF 70 B1 01 70 04 05 00 A4 E5 2B 5D 01 72 04 04 00 E4 09 45 54 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 60 9A 0A 2E 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 FB 20 D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [14:20:33]wFMCommunicate OK [14:20:33]wFMCommunicate request_size=4 [14:20:33]MH_SAM_APDU [14:20:33]CAPDU: 80 17 00 00 [14:20:33]Write to MH i2c: E2 08 00 4E 84 80 17 00 00 00 00 00 00 52 [14:20:33]Write i2c OK [14:20:33]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 FD 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 FD 00 4E 84 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 7E [14:20:34]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [14:20:34]wFMCommunicate OK [14:20:34]wFMCommunicate request_size=4 [14:20:34]MH_SAM_APDU [14:20:34]CAPDU: 80 17 00 00 [14:20:34]Write to MH i2c: E2 08 00 4F 84 80 17 00 00 00 00 00 00 53 [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 FD 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 FD 00 4F 84 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 2B [14:20:34]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [14:20:34]wFMCommunicate OK [14:20:34]wFMCommunicate request_size=4 [14:20:34]MH_SAM_APDU [14:20:34]CAPDU: 80 17 00 00 [14:20:34]Write to MH i2c: E2 08 00 50 84 80 17 00 00 00 00 00 00 54 [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 FD 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 FD 00 50 84 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 CC [14:20:34]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:20:34]wFMCommunicate OK [14:20:34]wFMCommunicate request_size=4 [14:20:34]MH_SAM_APDU [14:20:34]CAPDU: 80 17 00 00 [14:20:34]Write to MH i2c: E2 08 00 51 84 80 17 00 00 00 00 00 00 55 [14:20:34]OFD Sender: No OFD packet to send [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:20:34]Read from MH i2c: E2 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 E5 00 [14:20:34]MH_I2C_Read... [14:20:34]Read from MH i2c: E2 E5 00 51 84 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 39 [14:20:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:20:34]wFMCommunicate OK [14:20:34]SAM_PROTO_GetFMData done [14:20:34]requested_item fm.sale_refund.total is exist - process it [14:20:34]requested_item fm.buy.total is exist - process it [14:20:34]requested_item shift.sale.total is exist - process it [14:20:34]SAM_PROTO_GetShiftData [14:20:34]wFMCommunicate request_size=4 [14:20:34]MH_SAM_APDU [14:20:34]CAPDU: 80 13 02 00 [14:20:34]Write to MH i2c: E2 08 00 52 84 80 13 02 00 00 00 00 00 54 [14:20:34]Write i2c OK [14:20:34]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 [14:20:35]MH_I2C_Read... [14:20:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:20:35]Read from MH i2c: E2 FD 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 FD 00 52 84 00 BA 04 AA 04 B6 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7C 00 00 00 B1 04 03 00 05 96 98 70 04 03 00 EC DE 70 72 04 03 00 19 B7 27 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D4 34 10 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 AF 59 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 84 [14:20:35]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 82 00 00 00 69 04 9C 00 6F 04 04 00 7C 00 00 00 B1 04 03 00 05 96 98 70 04 03 00 EC DE 70 72 04 03 00 19 B7 27 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 D4 34 10 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 AF 59 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:20:35]wFMCommunicate OK [14:20:35]wFMCommunicate request_size=4 [14:20:35]MH_SAM_APDU [14:20:35]CAPDU: 80 17 00 00 [14:20:35]Write to MH i2c: E2 08 00 53 84 80 17 00 00 00 00 00 00 57 [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:20:35]Read from MH i2c: E2 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 FD 00 [14:20:35]MH_I2C_Read... [14:20:35]Read from MH i2c: E2 FD 00 53 84 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 6F [14:20:35]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [14:20:35]wFMCommunicate OK [14:20:35]wFMCommunicate request_size=4 [14:20:35]MH_SAM_APDU [14:20:35]CAPDU: 80 17 00 00 [14:20:35]Write to MH i2c: E2 08 00 54 84 80 17 00 00 00 00 00 00 58 [14:20:35]Write i2c OK [14:20:35]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 FD 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 FD 00 54 84 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 84 [14:20:36]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [14:20:36]wFMCommunicate OK [14:20:36]wFMCommunicate request_size=4 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 17 00 00 [14:20:36]Write to MH i2c: E2 08 00 55 84 80 17 00 00 00 00 00 00 59 [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 FD 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 FD 00 55 84 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 D1 [14:20:36]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [14:20:36]wFMCommunicate OK [14:20:36]wFMCommunicate request_size=4 [14:20:36]MH_SAM_APDU [14:20:36]CAPDU: 80 17 00 00 [14:20:36]Write to MH i2c: E2 08 00 56 84 80 17 00 00 00 00 00 00 5A [14:20:36]Write i2c OK [14:20:36]MH_I2C_Read... [14:20:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [14:20:36]Read from MH i2c: E2 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 D7 00 [14:20:36]MH_I2C_Read... [14:20:36]Read from MH i2c: E2 D7 00 56 84 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3D [14:20:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:20:36]wFMCommunicate OK [14:20:36]SAM_PROTO_GetShiftData done [14:20:36]requested_item shift.sale.total_cash is exist - process it [14:20:36]requested_item shift.sale_refund.total is exist - process it [14:20:36]requested_item shift.sale_refund.total_cash is exist - process it [14:20:36]requested_item shift.buy.total is exist - process it [14:20:36]requested_item shift.buy.total_cash is exist - process it [14:20:36]produce_requested_data done [14:20:36]produce_requested_data return {"fm.sale.total":72719358.80,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":99998.77,"shift.sale.total_cash":73971.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:20:36]process_action_free get_value [14:20:36]json_value_free [14:20:36]json_value_free done [14:20:36]process_json_proto returns [14:20:36]Send response to host [14:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72719358.80,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":99998.77,"shift.sale.total_cash":73971.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:20:36]free response buf [14:20:36]execute_script done [14:20:36]execute_script returns [14:20:36]free content buf [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 26 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 26 00 01 00 00 03 01 00 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 57 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF E3 [00:00:10]Possible old version of MH firmware - no need to switch from boot [00:00:10]Model is 3 [00:00:10]MH firmware is 1 [00:00:10]MH boot firmware is 0 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 02 00 41 00 40 00 FF FF 5C [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 02 00 00 D8 [00:00:10]Write to MH i2c: D5 00 00 03 00 D7 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 03 00 00 D8 [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 04 00 F3 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 05 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 05 00 04 00 00 67 B7 F1 65 6C [14:25:43]Current date/time: 13.03.2024 14:25 [14:25:43]FM_Init [14:25:43]wFMConnect [14:25:43]MH_SAM_On [14:25:43]Write to MH i2c: E0 00 00 05 00 E4 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_init finished! [14:25:43]*** atr: [14:25:43]*** 0F 3B D5 18 FF 81 91 FE [14:25:43]*** 1F C3 80 73 C8 21 10 0A [14:25:43]*** 00 00 00 00 00 00 00 00 [14:25:43]*** 00 00 00 00 00 00 00 00 [14:25:43]*** 00 00 00 00 00 00 00 00 [14:25:43]*** 00 00 00 00 00 00 00 00 [14:25:43]*** 00 00 00 00 00 00 00 00 [14:25:43]*** 00 00 00 00 00 00 00 00 [14:25:43]Read from MH i2c: E0 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E0 10 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E0 10 00 05 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 03 [14:25:43]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:25:43]wFMCommunicate request_size=10 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:25:43]Write to MH i2c: E2 0D 00 06 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B0 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 06 00 00 90 00 7A [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 11 00 00 [14:25:43]Write to MH i2c: E2 08 00 07 00 80 11 00 00 00 00 00 00 81 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 17 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 17 00 07 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D1 [14:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:25:43]wFMCommunicate OK [14:25:43]Detected FM SN is 0000000000874811 [14:25:43]Stored FM SN is 0000000000874811 [14:25:43]wFMCommunicate request_size=9 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 16 00 00 04 32 7F 00 00 [14:25:43]Write to MH i2c: E2 0C 00 08 00 80 16 00 00 04 00 32 7F 00 00 00 00 40 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 08 00 00 90 00 7C [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]FM PIN OK [14:25:43]wFMCommunicate request_size=8 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 14 04 00 03 02 00 01 [14:25:43]Write to MH i2c: E2 0B 00 09 00 80 14 04 00 03 00 02 00 01 00 00 93 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]wFMCommunicate request_size=13 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:25:43]Write to MH i2c: E2 10 00 0A 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B8 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:25:43]Read from MH i2c: E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [14:25:43]RAPDU: 90 00 [14:25:43]wFMCommunicate OK [14:25:43]wFMCommunicate request_size=4 [14:25:43]MH_SAM_APDU [14:25:43]CAPDU: 80 11 00 00 [14:25:43]Write to MH i2c: E2 08 00 0B 00 80 11 00 00 00 00 00 00 85 [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:43]E2 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 17 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: E2 17 00 0B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D5 [14:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:25:43]wFMCommunicate OK [14:25:43]DocumentArchiveInit [14:25:43]Start Httpd... [14:25:43]Httpd thread 3067256164 created [14:25:43]Write to MH i2c: 01 00 00 0C 00 0C [14:25:43]Write i2c OK [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: 01 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: 01 07 00 [14:25:43]MH_I2C_Read... [14:25:43]Read from MH i2c: 01 07 00 0C 00 00 80 00 00 00 FF 0F A1 [14:25:43]MH Int Process started [14:25:43]Allocated Socket 8 [14:25:43]Bind OK [14:25:43]Listen OK [14:25:43]httpd running on port 8080 [14:25:43]Waiting for new connection... [14:25:43]OFD Sender: Processing packet 95436 [packets to send 30, broken 29] [14:25:43]ProducePacketName [14:25:43]name=ofd_packets/00095436 [14:25:43]OFD Sender: To server: pG, [14:25:43]CommunicateWithHost lk.salyk.kg:30040 [14:25:43]ConnectInit lk.salyk.kg [14:25:48]ConnectInit Can't take IP for lk.salyk.kg [14:25:48]CommunicateWithHost connect error [14:25:48]CommunicateWithHost err = -1 [14:25:48]OFD Sender: Server communicate error [14:25:53]accept exits with 9 [14:25:53]New connection [14:25:53]New thread 3066969444 created [14:25:53]Waiting for new connection... [14:25:53] Sock 9.Parse request [14:25:53]Sock 9.Check first char [14:25:53]Sock 9.First char is OK [14:25:53]request: POST /json_proto HTTP/1.0 [14:25:53]Method: POST [14:25:53]URL: /json_proto [14:25:53]Method is POST - this is cgi request [14:25:53]url: /json_proto [14:25:53]query_string will be loaded in cgi processing [14:25:53]execute_cgi json_proto POST (null) [14:25:53]execute_cgi path=json_proto method=POST [14:25:53]POST find Content-Length [14:25:53]Host: 172.17.62.67:8080 [14:25:53]Content-Length: 215 [14:25:53]Content-Type: application/json [14:25:53] [14:25:53]POST finish read [14:25:53]Found Content-Length = 215 [14:25:53]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:25:53]execute_script... [14:25:53]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:25:53]POST & json_proto [14:25:53]process_json_proto [14:25:53]json parsed OK: [14:25:53]protocol is kg_v1.0 [14:25:53]action value=get_value [14:25:53]process_action get_value [14:25:53]cmd_get_value [14:25:53]process_action get_value done [14:25:53]requested_data is exist [14:25:53]produce_requested_data [14:25:53]requested_item kkm.sn is exist - process it [14:25:53]requested_item kkm.ver is exist - process it [14:25:53]requested_item fm.sn is exist - process it [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 11 00 00 [14:25:53]Write to MH i2c: E2 08 00 0D 00 80 11 00 00 00 00 00 00 87 [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 17 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 17 00 0D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D7 [14:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:25:53]wFMCommunicate OK [14:25:53]requested_item fd.num is exist - process it [14:25:53]SAM_PROTO_GetFieldsCounters [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 13 00 00 [14:25:53]Write to MH i2c: E2 08 00 0E 00 80 13 00 00 00 00 00 00 8A [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 62 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 62 00 0E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CC 74 01 00 0E 04 04 00 48 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 BA [14:25:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CC 74 01 00 0E 04 04 00 48 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 [14:25:53]wFMCommunicate OK [14:25:53]SAM_PROTO_GetFieldsCounters done [14:25:53]requested_item shift.num is exist - process it [14:25:53]requested_item shift.opened is exist - process it [14:25:53]req_shift_opened [14:25:53]FM_GetShiftState [14:25:53]SAM_PROTO_GetShiftState [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 13 01 00 [14:25:53]Write to MH i2c: E2 08 00 0F 00 80 13 01 00 00 00 00 00 8C [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 0E 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 0E 00 0F 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 71 [14:25:53]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:25:53]wFMCommunicate OK [14:25:53]SAM_PROTO_GetShiftState done [14:25:53]FM_GetShiftState done [14:25:53]req_shift_opened done [14:25:53]requested_item shift.open_date is exist - process it [14:25:53]req_shift_open_date [14:25:53]req_shift_open_date done [14:25:53]produce_requested_data done [14:25:53]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95436,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:25:53]process_action_free get_value [14:25:53]json_value_free [14:25:53]json_value_free done [14:25:53]process_json_proto returns [14:25:53]Send response to host [14:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95436,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:25:53]free response buf [14:25:53]execute_script done [14:25:53]execute_script returns [14:25:53]free content buf [14:25:53]Sock 9.Close socket [14:25:53]Sock 9.Thread stoped [14:25:53]accept exits with 5 [14:25:53]New connection [14:25:53]New thread 3066826084 created [14:25:53]Thread 3066969444 joined [14:25:53]Waiting for new connection... [14:25:53] Sock 5.Parse request [14:25:53]Sock 5.Check first char [14:25:53]Sock 5.First char is OK [14:25:53]request: POST /json_proto HTTP/1.0 [14:25:53]Method: POST [14:25:53]URL: /json_proto [14:25:53]Method is POST - this is cgi request [14:25:53]url: /json_proto [14:25:53]query_string will be loaded in cgi processing [14:25:53]execute_cgi json_proto POST (null) [14:25:53]execute_cgi path=json_proto method=POST [14:25:53]POST find Content-Length [14:25:53]Host: 172.17.62.67:8080 [14:25:53]Content-Length: 331 [14:25:53]Content-Type: application/json [14:25:53] [14:25:53]POST finish read [14:25:53]Found Content-Length = 331 [14:25:53]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:25:53]execute_script... [14:25:53]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:25:53]POST & json_proto [14:25:53]process_json_proto [14:25:53]json parsed OK: [14:25:53]protocol is kg_v1.0 [14:25:53]action value=get_value [14:25:53]process_action get_value [14:25:53]cmd_get_value [14:25:53]process_action get_value done [14:25:53]requested_data is exist [14:25:53]produce_requested_data [14:25:53]requested_item fm.sale.total is exist - process it [14:25:53]SAM_PROTO_GetFMData [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 13 03 00 [14:25:53]Write to MH i2c: E2 08 00 10 00 80 13 03 00 00 00 00 00 8F [14:25:53]OFD Sender: Processing packet 95436 [packets to send 30, broken 29] [14:25:53]ProducePacketName [14:25:53]name=ofd_packets/00095436 [14:25:53]OFD Sender: To server: pG, [14:25:53]CommunicateWithHost lk.salyk.kg:30040 [14:25:53]ConnectInit lk.salyk.kg [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]Connected sock=10 [14:25:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 AB 6D 07 01 94 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 3E 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 AB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 83 00 00 00 F4 03 04 00 47 B6 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CC 74 01 00 35 04 06 00 DC 2A C1 E6 6A 17 7D 06 93 14 7C 60 27 B9 [14:25:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 4B AF 47 00 3C 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 34 38 31 31 10 04 04 00 CC 74 01 00 F4 03 04 00 C3 62 F1 65 B6 04 01 00 00 03 59 FC 5B E3 45 65 A7 [14:25:53]CommunicateWithHost err = 0 [14:25:53]CheckOFDResponse [14:25:53]1017 (14) - 77093643461234 [14:25:53]1041 (16) - 0000000000874811 [14:25:53]1040 (4) - 95436 [14:25:53]1012 (4) - 13.03.2024 08:24 [14:25:53]1206 (1) - 0 [14:25:53]OFD Sender: Remove packet 95436 [14:25:53]ProducePacketName [14:25:53]name=ofd_packets/00095436 [14:25:53]NVStorageDeleteData [14:25:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:25:54]Read from MH i2c: E2 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 FD 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 FD 00 10 00 00 C8 04 85 04 C4 04 6E 04 04 00 37 72 01 00 69 04 A3 00 6F 04 04 00 54 65 01 00 B1 04 05 00 28 76 72 B1 01 70 04 05 00 44 6C 2D 5D 01 72 04 04 00 E4 09 45 54 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 C3 0A 2E 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 70 24 D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 1E [14:25:54]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 37 72 01 00 69 04 A3 00 6F 04 04 00 54 65 01 00 B1 04 05 00 28 76 72 B1 01 70 04 05 00 44 6C 2D 5D 01 72 04 04 00 E4 09 45 54 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 C3 0A 2E 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 70 24 D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [14:25:54]wFMCommunicate OK [14:25:54]wFMCommunicate request_size=4 [14:25:54]MH_SAM_APDU [14:25:54]CAPDU: 80 17 00 00 [14:25:54]Write to MH i2c: E2 08 00 11 00 80 17 00 00 00 00 00 00 91 [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:25:54]Read from MH i2c: E2 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 FD 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 FD 00 11 00 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 BD [14:25:54]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [14:25:54]wFMCommunicate OK [14:25:54]wFMCommunicate request_size=4 [14:25:54]MH_SAM_APDU [14:25:54]CAPDU: 80 17 00 00 [14:25:54]Write to MH i2c: E2 08 00 12 00 80 17 00 00 00 00 00 00 92 [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]OFD Sender: No OFD packet to send [14:25:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:25:54]Read from MH i2c: E2 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 FD 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 FD 00 12 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 6A [14:25:54]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [14:25:54]wFMCommunicate OK [14:25:54]wFMCommunicate request_size=4 [14:25:54]MH_SAM_APDU [14:25:54]CAPDU: 80 17 00 00 [14:25:54]Write to MH i2c: E2 08 00 13 00 80 17 00 00 00 00 00 00 93 [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:25:54]Read from MH i2c: E2 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 FD 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: E2 FD 00 13 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0B [14:25:54]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [14:25:54]wFMCommunicate OK [14:25:54]wFMCommunicate request_size=4 [14:25:54]MH_SAM_APDU [14:25:54]CAPDU: 80 17 00 00 [14:25:54]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 E5 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 E5 00 14 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 78 [14:25:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:25:55]wFMCommunicate OK [14:25:55]SAM_PROTO_GetFMData done [14:25:55]requested_item fm.sale_refund.total is exist - process it [14:25:55]requested_item fm.buy.total is exist - process it [14:25:55]requested_item shift.sale.total is exist - process it [14:25:55]SAM_PROTO_GetShiftData [14:25:55]wFMCommunicate request_size=4 [14:25:55]MH_SAM_APDU [14:25:55]CAPDU: 80 13 02 00 [14:25:55]Write to MH i2c: E2 08 00 15 00 80 13 02 00 00 00 00 00 93 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:25:55]Read from MH i2c: E2 FD 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 FD 00 15 00 00 BA 04 AA 04 B6 04 6E 04 04 00 83 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 A5 1C 9A 70 04 03 00 8C 65 72 72 04 03 00 19 B7 27 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 51 5E 10 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 24 5D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 36 [14:25:55]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 83 00 00 00 69 04 9C 00 6F 04 04 00 7D 00 00 00 B1 04 03 00 A5 1C 9A 70 04 03 00 8C 65 72 72 04 03 00 19 B7 27 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 51 5E 10 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 24 5D 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [14:25:55]wFMCommunicate OK [14:25:55]wFMCommunicate request_size=4 [14:25:55]MH_SAM_APDU [14:25:55]CAPDU: 80 17 00 00 [14:25:55]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 FD 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 FD 00 16 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 AE [14:25:55]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [14:25:55]wFMCommunicate OK [14:25:55]wFMCommunicate request_size=4 [14:25:55]MH_SAM_APDU [14:25:55]CAPDU: 80 17 00 00 [14:25:55]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:25:56]Read from MH i2c: E2 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 FD 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 FD 00 17 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C3 [14:25:56]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [14:25:56]wFMCommunicate OK [14:25:56]wFMCommunicate request_size=4 [14:25:56]MH_SAM_APDU [14:25:56]CAPDU: 80 17 00 00 [14:25:56]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:25:56]Read from MH i2c: E2 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 FD 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 FD 00 18 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 10 [14:25:56]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [14:25:56]wFMCommunicate OK [14:25:56]wFMCommunicate request_size=4 [14:25:56]MH_SAM_APDU [14:25:56]CAPDU: 80 17 00 00 [14:25:56]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:25:56]Write i2c OK [14:25:56]MH_I2C_Read... [14:25:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [14:25:56]Read from MH i2c: E2 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 D7 00 [14:25:56]MH_I2C_Read... [14:25:56]Read from MH i2c: E2 D7 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [14:25:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [14:25:56]wFMCommunicate OK [14:25:56]SAM_PROTO_GetShiftData done [14:25:56]requested_item shift.sale.total_cash is exist - process it [14:25:56]requested_item shift.sale_refund.total is exist - process it [14:25:56]requested_item shift.sale_refund.total_cash is exist - process it [14:25:56]requested_item shift.buy.total is exist - process it [14:25:56]requested_item shift.buy.total_cash is exist - process it [14:25:56]produce_requested_data done [14:25:56]produce_requested_data return {"fm.sale.total":72720358.80,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":100998.77,"shift.sale.total_cash":74971.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [14:25:56]process_action_free get_value [14:25:56]json_value_free [14:25:56]json_value_free done [14:25:56]process_json_proto returns [14:25:56]Send response to host [14:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72720358.80,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":100998.77,"shift.sale.total_cash":74971.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [14:25:56]free response buf [14:25:56]execute_script done [14:25:56]execute_script returns [14:25:56]free content buf [14:25:56]Sock 5.Close socket [14:25:56]Sock 5.Thread stoped [14:25:59]OFD Sender: No OFD packet to send [14:26:03]accept exits with 9 [14:26:03]New connection [14:26:03]New thread 3066969444 created [14:26:03]Thread 3066826084 joined [14:26:03]Waiting for new connection... [14:26:03] Sock 9.Parse request [14:26:03]Sock 9.Check first char [14:26:03]Sock 9.First char is OK [14:26:03]request: POST /json_proto HTTP/1.0 [14:26:03]Method: POST [14:26:03]URL: /json_proto [14:26:03]Method is POST - this is cgi request [14:26:03]url: /json_proto [14:26:03]query_string will be loaded in cgi processing [14:26:03]execute_cgi json_proto POST (null) [14:26:03]execute_cgi path=json_proto method=POST [14:26:03]POST find Content-Length [14:26:03]Host: 172.17.62.67:8080 [14:26:03]Content-Length: 677 [14:26:03]Content-Type: application/json [14:26:03] [14:26:03]POST finish read [14:26:03]Found Content-Length = 677 [14:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196429", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:03]execute_script... [14:26: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)196429", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:03]POST & json_proto [14:26:03]process_json_proto [14:26:03]json parsed OK: [14:26:03]protocol is kg_v1.0 [14:26:03]action value=close_receipt [14:26:03]process_action close_receipt [14:26:03]cmd_close_receipt [14:26:03]MH_GetDate [14:26:03]Write to MH i2c: F0 00 00 1A 00 09 [14:26:03]Write i2c OK [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: F0 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: F0 05 00 [14:26:03]MH_I2C_Read... [14:26:03]Read from MH i2c: F0 05 00 1A 00 00 7C B7 F1 65 97 [14:26:03]GetLastDocTimeStamp 1710339655 [14:26:03]current date 1710339964 [14:26:03]FM_GetShiftState [14:26:03]SAM_PROTO_GetShiftState [14:26:03]wFMCommunicate request_size=4 [14:26:03]MH_SAM_APDU [14:26:03]CAPDU: 80 13 01 00 [14:26:03]Write to MH i2c: E2 08 00 1B 00 80 13 01 00 00 00 00 00 98 [14:26:03]Write i2c OK [14:26:03]MH_I2C_Read... [14:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:04]Read from MH i2c: E2 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: E2 0E 00 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: E2 0E 00 1B 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 7D [14:26:04]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:26:04]wFMCommunicate OK [14:26:04]SAM_PROTO_GetShiftState done [14:26:04]FM_GetShiftState done [14:26:04]opened in 1710288279 [14:26:04]opened+sec_in_day 1710374679 [14:26:04]quantity*price = 50005 [14:26:04]sum+1 = 50007 [14:26:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 132 13.03.2024 14:26 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95437 ФПД: 82816404530952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142604&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95437&fm=82816404530952&tin=02508201610067®Number=0000000000090555&sum=50000 [14:26:05]StoreToDocumentArchive [14:26:05]shift 328 fd 95437 [14:26:05]save to /storage/0328/doc_00095437 [14:26:05]save last doc name /storage/0328/doc_00095437 to /storage/kkm_last_doc_name [14:26:05]save OK [14:26:05]Clear old archive folders... [14:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:05]tlvbuf is 01AE6BC0 [14:26:05]SAM_PROTO_ClearQueue [14:26:05]wFMCommunicate request_size=4 [14:26:05]MH_SAM_APDU [14:26:05]CAPDU: 80 09 00 00 [14:26:05]Write to MH i2c: E2 08 00 28 00 80 09 00 00 00 00 00 00 9A [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 03 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 03 00 28 00 00 90 00 9C [14:26:05]RAPDU: 90 00 [14:26:05]wFMCommunicate OK [14:26:05]SAM_PROTO_ClearQueue done [14:26:05]KKMCreateOFDPacket [14:26:05]OFDProtocolAddRootSTLVToBuf [14:26:05]FM_MakeSignedData [14:26:05]FM_MakeSignedData [14:26:05]SAM_PROTO_SignData [14:26:05]wFMCommunicate request_size=4 [14:26:05]MH_SAM_APDU [14:26:05]CAPDU: 80 0D 01 02 [14:26:05]Write to MH i2c: E2 08 00 29 00 80 0D 01 02 00 00 00 00 A2 [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 03 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 03 00 29 00 00 90 00 9D [14:26:05]RAPDU: 90 00 [14:26:05]wFMCommunicate OK [14:26:05]wFMCommunicate request_size=255 [14:26:05]MH_SAM_APDU [14:26:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 84 00 00 00 F4 03 04 00 7C B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 74 01 00 35 04 06 00 4B [14:26:05]Write to MH i2c: E2 02 01 2A 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 84 00 00 00 F4 03 04 00 7C B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 74 01 00 35 04 06 00 4B 00 00 2E [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 03 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 03 00 2A 00 00 90 00 9E [14:26:05]RAPDU: 90 00 [14:26:05]wFMCommunicate OK [14:26:05]wFMCommunicate request_size=10 [14:26:05]MH_SAM_APDU [14:26:05]CAPDU: 80 0D 02 02 05 52 32 5F A7 08 [14:26:05]Write to MH i2c: E2 0D 00 2B 00 80 0D 02 02 05 00 52 32 5F A7 08 00 00 41 [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 03 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:26:05]RAPDU: 90 00 [14:26:05]wFMCommunicate OK [14:26:05]wFMCommunicate request_size=4 [14:26:05]MH_SAM_APDU [14:26:05]CAPDU: 80 0D 03 02 [14:26:05]Write to MH i2c: E2 08 00 2C 00 80 0D 03 02 00 00 00 00 A7 [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 0B 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 0B 00 2C 00 00 EC 69 AF 09 AB 5D 7C 3F 90 00 78 [14:26:05]RAPDU: EC 69 AF 09 AB 5D 7C 3F 90 00 [14:26:05]wFMCommunicate OK [14:26:05]SAM_PROTO_SignData done [14:26:05]FM_MakeSignedData done [14:26:05]CreateOFDProtocolMessage [14:26:05]wFMCommunicate request_size=4 [14:26:05]MH_SAM_APDU [14:26:05]CAPDU: 80 11 00 00 [14:26:05]Write to MH i2c: E2 08 00 2D 00 80 11 00 00 00 00 00 00 A7 [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:05]Read from MH i2c: E2 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 17 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: E2 17 00 2D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F7 [14:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:26:05]wFMCommunicate OK [14:26:05]CreateOFDProtocolMessage done [14:26:05]OFDSenderStorePacket 95437 [14:26:05]StoreOFDPacket docnum=95437 [14:26:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A3 E1 07 01 D1 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 84 00 00 00 F4 03 04 00 7C B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 74 01 00 35 04 06 00 4B 52 32 5F A7 08 EC 69 AF 09 AB 5D 7C 3F [14:26:05]CheckFolder [14:26:05]dirname=/storage/ofd_packets [14:26:05]CheckFolder done [14:26:05]ProducePacketName [14:26:05]name=ofd_packets/00095437 [14:26:05]NVStorageSaveData ofd_packets/00095437 [14:26:05]File name is /storage/ofd_packets/00095437 [14:26:05]Write 301 bytes [14:26:05]NVStorageSaveData done [14:26:05]OFDSenderStorePacket done [14:26:05]KKMCreateOFDPacket done [14:26:05]NVStorageSaveData kkm_last_timestamp [14:26:05]File name is /storage/kkm_last_timestamp [14:26:05]Write 4 bytes [14:26:05]NVStorageSaveData done [14:26:05]ExternCall_PrintAddStr [14:26:05]wPrintStart [14:26:05]Write to MH i2c: 01 00 00 2E 00 2E [14:26:05]Write i2c OK [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: 01 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: 01 07 00 [14:26:05]MH_I2C_Read... [14:26:05]Read from MH i2c: 01 07 00 2E 00 00 80 00 00 00 FF 0F C3 [14:26:05]RasterBufferAndPrint [14:26:05]line Счет N : (1)196429 [14:26:05]line ИНН: 02508201610067 [14:26:05]line Контрольно-Кассовый Чек [14:26:05]line ПРОДАЖА [14:26:05]line ТРК (МРК, ГНК) : 12 [14:26:05]line Товар: 2710124130 [14:26:05]line Аи-92-К-5 [14:26:05]line 7.950 * 62.90 [14:26:05]line = 500.06 [14:26:05]line НДС 12% НСП 1% [14:26:05]line > о реализуемом товаре [14:26:05]line ОКРУГЛЕНИЕ: -0.06 [14:26:05]line ИТОГО: 500.00 [14:26:05]line Внесено: 500.00 [14:26:05]line СДАЧА: 0.00 [14:26:05]line НСП 1% : 4.42 [14:26:05]line НДС 12% : 53.10 [14:26:05]line Наличными: 500.00 [14:26:05]line Безнал.: 0.00 [14:26:05]line Место: АЗС № 6 "Партнер Нефть" [14:26:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:26:05]line СНО: Общий режим [14:26:05]line Чек 132 13.03.2024 14:26 [14:26:05]line Смена: 328 ФФД: 1.0 [14:26:05]line ЗНМ: 0300000009 [14:26:05]line РНМ: 0000000000090555 [14:26:05]line Версия ККМ: 001 [14:26:05]line ФМ: 0000000000874811 [14:26:05]line ФД: 95437 [14:26:05]line ФПД: 82816404530952 [14:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142604&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95437&fm=82816404530952&tin=02508201610067®Number=0000000000090555&sum=50000 [14:26:05]OFD Sender: Processing packet 95437 [packets to send 30, broken 29] [14:26:05]ProducePacketName [14:26:05]name=ofd_packets/00095437 [14:26:05]OFD Sender: To server: pG, [14:26:05]CommunicateWithHost lk.salyk.kg:30040 [14:26:05]ConnectInit lk.salyk.kg [14:26:05]written 0, free lines is 4095 [14:26:05]Connected sock=10 [14:26:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 A3 E1 07 01 D1 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 84 00 00 00 F4 03 04 00 7C B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 74 01 00 35 04 06 00 4B 52 32 5F A7 08 EC 69 AF 09 AB 5D 7C 3F [14:26:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 16 52 47 00 DC 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CD 74 01 00 F4 03 04 00 CF 62 F1 65 B6 04 01 00 00 65 F6 A5 18 BD C1 51 75 [14:26:06]CommunicateWithHost err = 0 [14:26:06]CheckOFDResponse [14:26:06]1017 (14) - 77093643461234 [14:26:06]1041 (16) - 0000000000874811 [14:26:06]1040 (4) - 95437 [14:26:06]1012 (4) - 13.03.2024 08:24 [14:26:06]1206 (1) - 0 [14:26:06]OFD Sender: Remove packet 95437 [14:26:06]ProducePacketName [14:26:06]name=ofd_packets/00095437 [14:26:06]NVStorageDeleteData [14:26:06]Write to MH i2c: 01 00 00 59 00 59 [14:26:06]Write i2c OK [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: 01 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: 01 07 00 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: 01 07 00 59 00 00 80 00 00 00 59 0D 46 [14:26:06]RasterBufferAndPrint [14:26:06]line [14:26:06]line [14:26:06]line [14:26:06]line [14:26:06]line [14:26:06]written 0, free lines is 3423 [14:26:06]process_action close_receipt done [14:26:06]requested_data is exist [14:26:06]produce_requested_data [14:26:06]requested_item fm.sn is exist - process it [14:26:06]wFMCommunicate request_size=4 [14:26:06]MH_SAM_APDU [14:26:06]CAPDU: 80 11 00 00 [14:26:06]Write to MH i2c: E2 08 00 60 00 80 11 00 00 00 00 00 00 DA [14:26:06]Write i2c OK [14:26:06]MH_I2C_Read... [14:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:06]Read from MH i2c: E2 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 17 00 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 17 00 60 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 2A [14:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:26:06]wFMCommunicate OK [14:26:06]requested_item fd.num is exist - process it [14:26:06]SAM_PROTO_GetFieldsCounters [14:26:06]wFMCommunicate request_size=4 [14:26:06]MH_SAM_APDU [14:26:06]CAPDU: 80 13 00 00 [14:26:06]Write to MH i2c: E2 08 00 61 00 80 13 00 00 00 00 00 00 DD [14:26:06]Write i2c OK [14:26:06]MH_I2C_Read... [14:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:06]Read from MH i2c: E2 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 62 00 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 62 00 61 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CD 74 01 00 0E 04 04 00 48 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 11 [14:26: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CD 74 01 00 0E 04 04 00 48 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 [14:26:06]wFMCommunicate OK [14:26:06]SAM_PROTO_GetFieldsCounters done [14:26:06]requested_item shift.num is exist - process it [14:26:06]requested_item shift.opened is exist - process it [14:26:06]req_shift_opened [14:26:06]FM_GetShiftState [14:26:06]SAM_PROTO_GetShiftState [14:26:06]wFMCommunicate request_size=4 [14:26:06]MH_SAM_APDU [14:26:06]CAPDU: 80 13 01 00 [14:26:06]Write to MH i2c: E2 08 00 62 00 80 13 01 00 00 00 00 00 DF [14:26:06]Write i2c OK [14:26:06]MH_I2C_Read... [14:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:06]Read from MH i2c: E2 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 0E 00 [14:26:06]MH_I2C_Read... [14:26:06]Read from MH i2c: E2 0E 00 62 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C4 [14:26:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:26:06]wFMCommunicate OK [14:26:06]SAM_PROTO_GetShiftState done [14:26:06]FM_GetShiftState done [14:26:06]req_shift_opened done [14:26:06]requested_item shift.open_date is exist - process it [14:26:06]req_shift_open_date [14:26:06]req_shift_open_date done [14:26:06]produce_requested_data done [14:26:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95437,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:26:06]process_action_free close_receipt [14:26:06]json_value_free [14:26:06]json_value_free done [14:26:06]process_json_proto returns [14:26:06]Send response to host [14:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95437,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:26:06]free response buf [14:26:06]execute_script done [14:26:06]execute_script returns [14:26:06]free content buf [14:26:06]Sock 9.Close socket [14:26:06]OFD Sender: No OFD packet to send [14:26:06]Sock 9.Thread stoped [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:17]accept exits with 7 [14:26:17]New connection [14:26:17]New thread 3066826084 created [14:26:17]Thread 3066969444 joined [14:26:17]Waiting for new connection... [14:26:17] Sock 7.Parse request [14:26:17]Sock 7.Check first char [14:26:17]Sock 7.First char is OK [14:26:17]request: POST /json_proto HTTP/1.0 [14:26:17]Method: POST [14:26:17]URL: /json_proto [14:26:17]Method is POST - this is cgi request [14:26:17]url: /json_proto [14:26:17]query_string will be loaded in cgi processing [14:26:17]execute_cgi json_proto POST (null) [14:26:17]execute_cgi path=json_proto method=POST [14:26:17]POST find Content-Length [14:26:17]Host: 172.17.62.67:8080 [14:26:17]Content-Length: 675 [14:26:17]Content-Type: application/json [14:26:17] [14:26:17]POST finish read [14:26:17]Found Content-Length = 675 [14:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 23.480, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:17]execute_script... [14:26:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 23.480, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:17]POST & json_proto [14:26:17]process_json_proto [14:26:17]json parsed OK: [14:26:17]protocol is kg_v1.0 [14:26:17]action value=close_receipt [14:26:17]process_action close_receipt [14:26:17]cmd_close_receipt [14:26:17]MH_GetDate [14:26:17]Write to MH i2c: F0 00 00 63 00 52 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 05 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: F0 05 00 63 00 00 8A B7 F1 65 EE [14:26:17]GetLastDocTimeStamp 1710339964 [14:26:17]current date 1710339978 [14:26:17]FM_GetShiftState [14:26:17]SAM_PROTO_GetShiftState [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 01 00 [14:26:17]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 C6 [14:26:17]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetShiftState done [14:26:17]FM_GetShiftState done [14:26:17]opened in 1710288279 [14:26:17]opened+sec_in_day 1710374679 [14:26:17]quantity*price = 150037 [14:26:17]sum+1 = 150038 [14:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 133 13.03.2024 14:26 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95438 ФПД: 79261319863474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142618&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95438&fm=79261319863474&tin=02508201610067®Number=0000000000090555&sum=150000 [14:26:18]StoreToDocumentArchive [14:26:18]shift 328 fd 95438 [14:26:18]save to /storage/0328/doc_00095438 [14:26:18]save last doc name /storage/0328/doc_00095438 to /storage/kkm_last_doc_name [14:26:18]save OK [14:26:18]Clear old archive folders... [14:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:26:19]tlvbuf is 01AA3C00 [14:26:19]SAM_PROTO_ClearQueue [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 09 00 00 [14:26:19]Write to MH i2c: E2 08 00 71 00 80 09 00 00 00 00 00 00 E3 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 71 00 00 90 00 E5 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]SAM_PROTO_ClearQueue done [14:26:19]KKMCreateOFDPacket [14:26:19]OFDProtocolAddRootSTLVToBuf [14:26:19]FM_MakeSignedData [14:26:19]FM_MakeSignedData [14:26:19]SAM_PROTO_SignData [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 01 02 [14:26:19]Write to MH i2c: E2 08 00 72 00 80 0D 01 02 00 00 00 00 EB [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=255 [14:26:19]MH_SAM_APDU [14:26:19]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 B8 5B 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 74 01 00 35 04 06 00 [14:26:19]Write to MH i2c: E2 02 01 73 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 B8 5B 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 74 01 00 35 04 06 00 00 00 DE [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=11 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 02 02 06 48 16 76 D0 9C B2 [14:26:19]Write to MH i2c: E2 0E 00 74 00 80 0D 02 02 06 00 48 16 76 D0 9C B2 00 00 EC [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [14:26:19]RAPDU: 90 00 [14:26:19]wFMCommunicate OK [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 0D 03 02 [14:26:19]Write to MH i2c: E2 08 00 75 00 80 0D 03 02 00 00 00 00 F0 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 0B 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 0B 00 75 00 00 30 E7 CF E3 36 33 12 8E 90 00 C3 [14:26:19]RAPDU: 30 E7 CF E3 36 33 12 8E 90 00 [14:26:19]wFMCommunicate OK [14:26:19]SAM_PROTO_SignData done [14:26:19]FM_MakeSignedData done [14:26:19]CreateOFDProtocolMessage [14:26:19]wFMCommunicate request_size=4 [14:26:19]MH_SAM_APDU [14:26:19]CAPDU: 80 11 00 00 [14:26:19]Write to MH i2c: E2 08 00 76 00 80 11 00 00 00 00 00 00 F0 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:19]Read from MH i2c: E2 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 17 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: E2 17 00 76 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 40 [14:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:26:19]wFMCommunicate OK [14:26:19]CreateOFDProtocolMessage done [14:26:19]OFDSenderStorePacket 95438 [14:26:19]StoreOFDPacket docnum=95438 [14:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 5B 3F 08 01 0F 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 B8 5B 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 74 01 00 35 04 06 00 48 16 76 D0 9C B2 30 E7 CF E3 36 33 12 8E [14:26:19]CheckFolder [14:26:19]dirname=/storage/ofd_packets [14:26:19]CheckFolder done [14:26:19]ProducePacketName [14:26:19]name=ofd_packets/00095438 [14:26:19]NVStorageSaveData ofd_packets/00095438 [14:26:19]File name is /storage/ofd_packets/00095438 [14:26:19]Write 302 bytes [14:26:19]NVStorageSaveData done [14:26:19]OFDSenderStorePacket done [14:26:19]KKMCreateOFDPacket done [14:26:19]NVStorageSaveData kkm_last_timestamp [14:26:19]File name is /storage/kkm_last_timestamp [14:26:19]Write 4 bytes [14:26:19]NVStorageSaveData done [14:26:19]ExternCall_PrintAddStr [14:26:19]wPrintStart [14:26:19]Write to MH i2c: 01 00 00 77 00 77 [14:26:19]Write i2c OK [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 07 00 [14:26:19]MH_I2C_Read... [14:26:19]Read from MH i2c: 01 07 00 77 00 00 80 00 00 00 FF 0F 0C [14:26:19]RasterBufferAndPrint [14:26:19]line Счет N : (1)196430 [14:26:19]line ИНН: 02508201610067 [14:26:19]line Контрольно-Кассовый Чек [14:26:19]line ПРОДАЖА [14:26:19]line ТРК (МРК, ГНК) : 43 [14:26:19]line Товар: 2710124130 [14:26:19]line SUPER 92-К-5 [14:26:19]line 23.480 * 63.90 [14:26:19]line = 1500.37 [14:26:19]line НДС 12% НСП 1% [14:26:19]line > о реализуемом товаре [14:26:19]line ОКРУГЛЕНИЕ: -0.37 [14:26:19]line ИТОГО: 1500.00 [14:26:19]line Внесено: 1500.00 [14:26:19]line СДАЧА: 0.00 [14:26:19]line НСП 1% : 13.28 [14:26:19]line НДС 12% : 159.33 [14:26:19]line Наличными: 1500.00 [14:26:19]line Безнал.: 0.00 [14:26:19]line Место: АЗС № 6 "Партнер Нефть" [14:26:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:26:19]line СНО: Общий режим [14:26:19]line Чек 133 13.03.2024 14:26 [14:26:19]line Смена: 328 ФФД: 1.0 [14:26:19]line ЗНМ: 0300000009 [14:26:19]line РНМ: 0000000000090555 [14:26:19]line Версия ККМ: 001 [14:26:19]line ФМ: 0000000000874811 [14:26:19]line ФД: 95438 [14:26:19]line ФПД: 79261319863474 [14:26:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142618&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95438&fm=79261319863474&tin=02508201610067®Number=0000000000090555&sum=150000 [14:26:19]OFD Sender: Processing packet 95438 [packets to send 30, broken 29] [14:26:19]ProducePacketName [14:26:19]name=ofd_packets/00095438 [14:26:19]OFD Sender: To server: pG, [14:26:19]CommunicateWithHost lk.salyk.kg:30040 [14:26:19]ConnectInit lk.salyk.kg [14:26:19]written 0, free lines is 4095 [14:26:19]Connected sock=10 [14:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 5B 3F 08 01 0F 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 B8 5B 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 8A B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CE 74 01 00 35 04 06 00 48 16 76 D0 9C B2 30 E7 CF E3 36 33 12 8E [14:26:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 DC 25 47 00 39 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 34 38 31 31 10 04 04 00 CE 74 01 00 F4 03 04 00 DD 62 F1 65 B6 04 01 00 00 59 5D E8 14 6A 87 73 1B [14:26:20]CommunicateWithHost err = 0 [14:26:20]CheckOFDResponse [14:26:20]1017 (14) - 77093643461234 [14:26:20]1041 (16) - 0000000000874811 [14:26:20]1040 (4) - 95438 [14:26:20]1012 (4) - 13.03.2024 08:25 [14:26:20]1206 (1) - 0 [14:26:20]OFD Sender: Remove packet 95438 [14:26:20]ProducePacketName [14:26:20]name=ofd_packets/00095438 [14:26:20]NVStorageDeleteData [14:26:20]Write to MH i2c: 01 00 00 A2 00 A2 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: 01 07 00 A2 00 00 80 00 00 00 58 0D 8E [14:26:20]RasterBufferAndPrint [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]line [14:26:20]written 0, free lines is 3424 [14:26:20]process_action close_receipt done [14:26:20]requested_data is exist [14:26:20]produce_requested_data [14:26:20]requested_item fm.sn is exist - process it [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 11 00 00 [14:26:20]Write to MH i2c: E2 08 00 A9 00 80 11 00 00 00 00 00 00 23 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 17 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 17 00 A9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 73 [14:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:26:20]wFMCommunicate OK [14:26:20]requested_item fd.num is exist - process it [14:26:20]SAM_PROTO_GetFieldsCounters [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 13 00 00 [14:26:20]Write to MH i2c: E2 08 00 AA 00 80 13 00 00 00 00 00 00 26 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 62 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 62 00 AA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CE 74 01 00 0E 04 04 00 48 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 5E [14:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CE 74 01 00 0E 04 04 00 48 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 [14:26:20]wFMCommunicate OK [14:26:20]SAM_PROTO_GetFieldsCounters done [14:26:20]requested_item shift.num is exist - process it [14:26:20]requested_item shift.opened is exist - process it [14:26:20]req_shift_opened [14:26:20]FM_GetShiftState [14:26:20]SAM_PROTO_GetShiftState [14:26:20]wFMCommunicate request_size=4 [14:26:20]MH_SAM_APDU [14:26:20]CAPDU: 80 13 01 00 [14:26:20]Write to MH i2c: E2 08 00 AB 00 80 13 01 00 00 00 00 00 28 [14:26:20]Write i2c OK [14:26:20]MH_I2C_Read... [14:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:20]Read from MH i2c: E2 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 0E 00 [14:26:20]MH_I2C_Read... [14:26:20]Read from MH i2c: E2 0E 00 AB 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0D [14:26:20]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:26:20]wFMCommunicate OK [14:26:20]SAM_PROTO_GetShiftState done [14:26:20]FM_GetShiftState done [14:26:20]req_shift_opened done [14:26:20]requested_item shift.open_date is exist - process it [14:26:20]req_shift_open_date [14:26:20]req_shift_open_date done [14:26:20]produce_requested_data done [14:26:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95438,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:26:20]process_action_free close_receipt [14:26:20]json_value_free [14:26:20]json_value_free done [14:26:20]process_json_proto returns [14:26:20]Send response to host [14:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95438,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:26:20]free response buf [14:26:20]execute_script done [14:26:20]execute_script returns [14:26:20]free content buf [14:26:20]Sock 7.Close socket [14:26:20]Sock 7.Thread stoped [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]accept exits with 9 [14:27:10]New connection [14:27:10]New thread 3066969444 created [14:27:10]Thread 3066826084 joined [14:27:10]Waiting for new connection... [14:27:10] Sock 9.Parse request [14:27:10]Sock 9.Check first char [14:27:10]Sock 9.First char is OK [14:27:10]request: POST /json_proto HTTP/1.0 [14:27:10]Method: POST [14:27:10]URL: /json_proto [14:27:10]Method is POST - this is cgi request [14:27:10]url: /json_proto [14:27:10]query_string will be loaded in cgi processing [14:27:10]execute_cgi json_proto POST (null) [14:27:10]execute_cgi path=json_proto method=POST [14:27:10]POST find Content-Length [14:27:10]Host: 172.17.62.67:8080 [14:27:10]Content-Length: 675 [14:27:10]Content-Type: application/json [14:27:10] [14:27:10]POST finish read [14:27:10]Found Content-Length = 675 [14:27:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "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:27:10]execute_script... [14:27: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)196431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "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:27:10]POST & json_proto [14:27:10]process_json_proto [14:27:10]json parsed OK: [14:27:10]protocol is kg_v1.0 [14:27:10]action value=close_receipt [14:27:10]process_action close_receipt [14:27:10]cmd_close_receipt [14:27:10]MH_GetDate [14:27:10]Write to MH i2c: F0 00 00 AC 00 9B [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: F0 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: F0 05 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: F0 05 00 AC 00 00 BF B7 F1 65 6C [14:27:10]GetLastDocTimeStamp 1710339978 [14:27:10]current date 1710340031 [14:27:10]FM_GetShiftState [14:27:10]SAM_PROTO_GetShiftState [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 13 01 00 [14:27:10]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 0F [14:27:10]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:27:10]wFMCommunicate OK [14:27:10]SAM_PROTO_GetShiftState done [14:27:10]FM_GetShiftState done [14:27:10]opened in 1710288279 [14:27:10]opened+sec_in_day 1710374679 [14:27:10]quantity*price = 100003 [14:27:10]sum+1 = 100005 [14:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 134 13.03.2024 14:27 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95439 ФПД: 101870859541127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142711&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95439&fm=101870859541127&tin=02508201610067®Number=0000000000090555&sum=100000 [14:27:11]StoreToDocumentArchive [14:27:11]shift 328 fd 95439 [14:27:11]save to /storage/0328/doc_00095439 [14:27:11]save last doc name /storage/0328/doc_00095439 to /storage/kkm_last_doc_name [14:27:11]save OK [14:27:11]Clear old archive folders... [14:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:27:11]tlvbuf is 01AA5530 [14:27:11]SAM_PROTO_ClearQueue [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 09 00 00 [14:27:11]Write to MH i2c: E2 08 00 BA 00 80 09 00 00 00 00 00 00 2C [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]SAM_PROTO_ClearQueue done [14:27:11]KKMCreateOFDPacket [14:27:11]OFDProtocolAddRootSTLVToBuf [14:27:11]FM_MakeSignedData [14:27:11]FM_MakeSignedData [14:27:11]SAM_PROTO_SignData [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 01 02 [14:27:11]Write to MH i2c: E2 08 00 BB 00 80 0D 01 02 00 00 00 00 34 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=255 [14:27:11]MH_SAM_APDU [14:27:11]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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BF B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 74 01 00 35 04 06 00 [14:27:11]Write to MH i2c: E2 02 01 BC 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BF B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 74 01 00 35 04 06 00 00 00 B9 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=11 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 02 02 06 5C A6 A8 65 5A 87 [14:27:11]Write to MH i2c: E2 0E 00 BD 00 80 0D 02 02 06 00 5C A6 A8 65 5A 87 00 00 33 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [14:27:11]RAPDU: 90 00 [14:27:11]wFMCommunicate OK [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 0D 03 02 [14:27:11]Write to MH i2c: E2 08 00 BE 00 80 0D 03 02 00 00 00 00 39 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0B 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 0B 00 BE 00 00 5C 8D 4A 29 20 5B B4 D4 90 00 99 [14:27:11]RAPDU: 5C 8D 4A 29 20 5B B4 D4 90 00 [14:27:11]wFMCommunicate OK [14:27:11]SAM_PROTO_SignData done [14:27:11]FM_MakeSignedData done [14:27:11]CreateOFDProtocolMessage [14:27:11]wFMCommunicate request_size=4 [14:27:11]MH_SAM_APDU [14:27:11]CAPDU: 80 11 00 00 [14:27:11]Write to MH i2c: E2 08 00 BF 00 80 11 00 00 00 00 00 00 39 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:11]Read from MH i2c: E2 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 17 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: E2 17 00 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 89 [14:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:27:11]wFMCommunicate OK [14:27:11]CreateOFDProtocolMessage done [14:27:11]OFDSenderStorePacket 95439 [14:27:11]StoreOFDPacket docnum=95439 [14:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C4 DE 08 01 1A A8 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BF B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 74 01 00 35 04 06 00 5C A6 A8 65 5A 87 5C 8D 4A 29 20 5B B4 D4 [14:27:11]CheckFolder [14:27:11]dirname=/storage/ofd_packets [14:27:11]CheckFolder done [14:27:11]ProducePacketName [14:27:11]name=ofd_packets/00095439 [14:27:11]NVStorageSaveData ofd_packets/00095439 [14:27:11]File name is /storage/ofd_packets/00095439 [14:27:11]Write 302 bytes [14:27:11]NVStorageSaveData done [14:27:11]OFDSenderStorePacket done [14:27:11]KKMCreateOFDPacket done [14:27:11]NVStorageSaveData kkm_last_timestamp [14:27:11]File name is /storage/kkm_last_timestamp [14:27:11]Write 4 bytes [14:27:11]NVStorageSaveData done [14:27:11]ExternCall_PrintAddStr [14:27:11]wPrintStart [14:27:11]Write to MH i2c: 01 00 00 C0 00 C0 [14:27:11]Write i2c OK [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 07 00 [14:27:11]MH_I2C_Read... [14:27:11]Read from MH i2c: 01 07 00 C0 00 00 80 00 00 00 FF 0F 55 [14:27:11]RasterBufferAndPrint [14:27:11]line Счет N : (1)196431 [14:27:11]line ИНН: 02508201610067 [14:27:11]line Контрольно-Кассовый Чек [14:27:11]line ПРОДАЖА [14:27:11]line ТРК (МРК, ГНК) : 33 [14:27:11]line Товар: 2710124130 [14:27:11]line SUPER 92-К-5 [14:27:11]line 15.650 * 63.90 [14:27:11]line = 1000.04 [14:27:11]line НДС 12% НСП 1% [14:27:11]line > о реализуемом товаре [14:27:11]line ОКРУГЛЕНИЕ: -0.04 [14:27:11]line ИТОГО: 1000.00 [14:27:11]line Внесено: 1000.00 [14:27:11]line СДАЧА: 0.00 [14:27:11]line НСП 1% : 8.85 [14:27:11]line НДС 12% : 106.20 [14:27:11]line Наличными: 1000.00 [14:27:11]line Безнал.: 0.00 [14:27:11]line Место: АЗС № 6 "Партнер Нефть" [14:27:11]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:27:11]line СНО: Общий режим [14:27:11]line Чек 134 13.03.2024 14:27 [14:27:11]line Смена: 328 ФФД: 1.0 [14:27:11]line ЗНМ: 0300000009 [14:27:11]line РНМ: 0000000000090555 [14:27:11]line Версия ККМ: 001 [14:27:11]line ФМ: 0000000000874811 [14:27:11]line ФД: 95439 [14:27:11]line ФПД: 101870859541127 [14:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142711&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95439&fm=101870859541127&tin=02508201610067®Number=0000000000090555&sum=100000 [14:27:12]OFD Sender: Processing packet 95439 [packets to send 30, broken 29] [14:27:12]ProducePacketName [14:27:12]name=ofd_packets/00095439 [14:27:12]OFD Sender: To server: pG, [14:27:12]CommunicateWithHost lk.salyk.kg:30040 [14:27:12]ConnectInit lk.salyk.kg [14:27:12]written 0, free lines is 4095 [14:27:12]Connected sock=10 [14:27:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 C4 DE 08 01 1A A8 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 BF B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 74 01 00 35 04 06 00 5C A6 A8 65 5A 87 5C 8D 4A 29 20 5B B4 D4 [14:27:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 6B EF 47 00 26 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 CF 74 01 00 F4 03 04 00 11 63 F1 65 B6 04 01 00 00 1E 33 37 A9 C1 27 63 A4 [14:27:12]CommunicateWithHost err = 0 [14:27:12]CheckOFDResponse [14:27:12]1017 (14) - 77093643461234 [14:27:12]1041 (16) - 0000000000874811 [14:27:12]1040 (4) - 95439 [14:27:12]1012 (4) - 13.03.2024 08:25 [14:27:12]1206 (1) - 0 [14:27:12]OFD Sender: Remove packet 95439 [14:27:12]ProducePacketName [14:27:12]name=ofd_packets/00095439 [14:27:12]NVStorageDeleteData [14:27:12]Write to MH i2c: 01 00 00 EB 00 EB [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: 01 07 00 EB 00 00 80 00 00 00 5C 0D DB [14:27:12]RasterBufferAndPrint [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]line [14:27:12]written 0, free lines is 3426 [14:27:12]process_action close_receipt done [14:27:12]requested_data is exist [14:27:12]produce_requested_data [14:27:12]requested_item fm.sn is exist - process it [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 11 00 00 [14:27:12]Write to MH i2c: E2 08 00 F2 00 80 11 00 00 00 00 00 00 6C [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 17 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 17 00 F2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BC [14:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:27:12]wFMCommunicate OK [14:27:12]requested_item fd.num is exist - process it [14:27:12]SAM_PROTO_GetFieldsCounters [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 13 00 00 [14:27:12]Write to MH i2c: E2 08 00 F3 00 80 13 00 00 00 00 00 00 6F [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 62 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 62 00 F3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CF 74 01 00 0E 04 04 00 48 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 AB [14:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 CF 74 01 00 0E 04 04 00 48 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 [14:27:12]wFMCommunicate OK [14:27:12]SAM_PROTO_GetFieldsCounters done [14:27:12]requested_item shift.num is exist - process it [14:27:12]requested_item shift.opened is exist - process it [14:27:12]req_shift_opened [14:27:12]FM_GetShiftState [14:27:12]SAM_PROTO_GetShiftState [14:27:12]wFMCommunicate request_size=4 [14:27:12]MH_SAM_APDU [14:27:12]CAPDU: 80 13 01 00 [14:27:12]Write to MH i2c: E2 08 00 F4 00 80 13 01 00 00 00 00 00 71 [14:27:12]Write i2c OK [14:27:12]MH_I2C_Read... [14:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:12]Read from MH i2c: E2 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 0E 00 [14:27:12]MH_I2C_Read... [14:27:12]Read from MH i2c: E2 0E 00 F4 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 56 [14:27:12]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:27:12]wFMCommunicate OK [14:27:12]SAM_PROTO_GetShiftState done [14:27:12]FM_GetShiftState done [14:27:12]req_shift_opened done [14:27:12]requested_item shift.open_date is exist - process it [14:27:12]req_shift_open_date [14:27:12]req_shift_open_date done [14:27:12]produce_requested_data done [14:27:12]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95439,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:27:12]process_action_free close_receipt [14:27:12]json_value_free [14:27:12]json_value_free done [14:27:12]process_json_proto returns [14:27:12]Send response to host [14:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95439,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:27:12]free response buf [14:27:12]execute_script done [14:27:12]execute_script returns [14:27:12]free content buf [14:27:12]Sock 9.Close socket [14:27:12]Sock 9.Thread stoped [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]accept exits with 7 [14:27:37]New connection [14:27:37]New thread 3066826084 created [14:27:37]Thread 3066969444 joined [14:27:37]Waiting for new connection... [14:27:37] Sock 7.Parse request [14:27:37]Sock 7.Check first char [14:27:37]Sock 7.First char is OK [14:27:37]request: POST /json_proto HTTP/1.0 [14:27:37]Method: POST [14:27:37]URL: /json_proto [14:27:37]Method is POST - this is cgi request [14:27:37]url: /json_proto [14:27:37]query_string will be loaded in cgi processing [14:27:37]execute_cgi json_proto POST (null) [14:27:37]execute_cgi path=json_proto method=POST [14:27:37]POST find Content-Length [14:27:37]Host: 172.17.62.67:8080 [14:27:37]Content-Length: 677 [14:27:37]Content-Type: application/json [14:27:37] [14:27:37]POST finish read [14:27:37]Found Content-Length = 677 [14:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196432", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:37]execute_script... [14:27:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196432", "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" : 62.90, "quantity" : 6.360, "sum" : 400.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:37]POST & json_proto [14:27:37]process_json_proto [14:27:37]json parsed OK: [14:27:37]protocol is kg_v1.0 [14:27:37]action value=close_receipt [14:27:37]process_action close_receipt [14:27:37]cmd_close_receipt [14:27:37]MH_GetDate [14:27:37]Write to MH i2c: F0 00 00 F5 00 E4 [14:27:37]Write i2c OK [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: F0 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: F0 05 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: F0 05 00 F5 00 00 DA B7 F1 65 D0 [14:27:37]GetLastDocTimeStamp 1710340031 [14:27:37]current date 1710340058 [14:27:37]FM_GetShiftState [14:27:37]SAM_PROTO_GetShiftState [14:27:37]wFMCommunicate request_size=4 [14:27:37]MH_SAM_APDU [14:27:37]CAPDU: 80 13 01 00 [14:27:37]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [14:27:37]Write i2c OK [14:27:37]MH_I2C_Read... [14:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:37]Read from MH i2c: E2 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 0E 00 [14:27:37]MH_I2C_Read... [14:27:37]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 58 [14:27:37]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:27:37]wFMCommunicate OK [14:27:37]SAM_PROTO_GetShiftState done [14:27:37]FM_GetShiftState done [14:27:37]opened in 1710288279 [14:27:37]opened+sec_in_day 1710374679 [14:27:37]quantity*price = 40004 [14:27:37]sum+1 = 40005 [14:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 135 13.03.2024 14:27 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95440 ФПД: 226877222712899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142738&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95440&fm=226877222712899&tin=02508201610067®Number=0000000000090555&sum=40000 [14:27:38]StoreToDocumentArchive [14:27:38]shift 328 fd 95440 [14:27:38]save to /storage/0328/doc_00095440 [14:27:38]save last doc name /storage/0328/doc_00095440 to /storage/kkm_last_doc_name [14:27:38]save OK [14:27:38]Clear old archive folders... [14:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:39]tlvbuf is 01AEDE50 [14:27:39]SAM_PROTO_ClearQueue [14:27:39]wFMCommunicate request_size=4 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 09 00 00 [14:27:39]Write to MH i2c: E2 08 00 03 01 80 09 00 00 00 00 00 00 76 [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]SAM_PROTO_ClearQueue done [14:27:39]KKMCreateOFDPacket [14:27:39]OFDProtocolAddRootSTLVToBuf [14:27:39]FM_MakeSignedData [14:27:39]FM_MakeSignedData [14:27:39]SAM_PROTO_SignData [14:27:39]wFMCommunicate request_size=4 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 0D 01 02 [14:27:39]Write to MH i2c: E2 08 00 04 01 80 0D 01 02 00 00 00 00 7E [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]wFMCommunicate request_size=255 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 DA B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 74 01 00 35 04 06 00 CE [14:27:39]Write to MH i2c: E2 02 01 05 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 DA B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 74 01 00 35 04 06 00 CE 00 00 8B [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]wFMCommunicate request_size=10 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 0D 02 02 05 57 F8 44 76 43 [14:27:39]Write to MH i2c: E2 0D 00 06 01 80 0D 02 02 05 00 57 F8 44 76 43 00 00 D7 [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]wFMCommunicate request_size=4 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 0D 03 02 [14:27:39]Write to MH i2c: E2 08 00 07 01 80 0D 03 02 00 00 00 00 83 [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 0B 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 0B 00 07 01 00 01 48 58 16 ED 8C C8 4D 90 00 C9 [14:27:39]RAPDU: 01 48 58 16 ED 8C C8 4D 90 00 [14:27:39]wFMCommunicate OK [14:27:39]SAM_PROTO_SignData done [14:27:39]FM_MakeSignedData done [14:27:39]CreateOFDProtocolMessage [14:27:39]wFMCommunicate request_size=4 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 11 00 00 [14:27:39]Write to MH i2c: E2 08 00 08 01 80 11 00 00 00 00 00 00 83 [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 17 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 17 00 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D3 [14:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:27:39]wFMCommunicate OK [14:27:39]CreateOFDProtocolMessage done [14:27:39]OFDSenderStorePacket 95440 [14:27:39]StoreOFDPacket docnum=95440 [14:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 79 94 07 01 03 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 DA B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 74 01 00 35 04 06 00 CE 57 F8 44 76 43 01 48 58 16 ED 8C C8 4D [14:27:39]CheckFolder [14:27:39]dirname=/storage/ofd_packets [14:27:39]CheckFolder done [14:27:39]ProducePacketName [14:27:39]name=ofd_packets/00095440 [14:27:39]NVStorageSaveData ofd_packets/00095440 [14:27:39]File name is /storage/ofd_packets/00095440 [14:27:39]Write 301 bytes [14:27:39]NVStorageSaveData done [14:27:39]OFDSenderStorePacket done [14:27:39]KKMCreateOFDPacket done [14:27:39]NVStorageSaveData kkm_last_timestamp [14:27:39]File name is /storage/kkm_last_timestamp [14:27:39]Write 4 bytes [14:27:39]NVStorageSaveData done [14:27:39]ExternCall_PrintAddStr [14:27:39]wPrintStart [14:27:39]Write to MH i2c: 01 00 00 09 01 0A [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: 01 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: 01 07 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: 01 07 00 09 01 00 80 00 00 00 FF 0F 9F [14:27:39]RasterBufferAndPrint [14:27:39]line Счет N : (1)196432 [14:27:39]line ИНН: 02508201610067 [14:27:39]line Контрольно-Кассовый Чек [14:27:39]line ПРОДАЖА [14:27:39]line ТРК (МРК, ГНК) : 12 [14:27:39]line Товар: 2710124130 [14:27:39]line Аи-92-К-5 [14:27:39]line 6.360 * 62.90 [14:27:39]line = 400.04 [14:27:39]line НДС 12% НСП 1% [14:27:39]line > о реализуемом товаре [14:27:39]line ОКРУГЛЕНИЕ: -0.04 [14:27:39]line ИТОГО: 400.00 [14:27:39]line Внесено: 400.00 [14:27:39]line СДАЧА: 0.00 [14:27:39]line НСП 1% : 3.54 [14:27:39]line НДС 12% : 42.48 [14:27:39]line Наличными: 400.00 [14:27:39]line Безнал.: 0.00 [14:27:39]line Место: АЗС № 6 "Партнер Нефть" [14:27:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:27:39]line СНО: Общий режим [14:27:39]line Чек 135 13.03.2024 14:27 [14:27:39]line Смена: 328 ФФД: 1.0 [14:27:39]line ЗНМ: 0300000009 [14:27:39]line РНМ: 0000000000090555 [14:27:39]line Версия ККМ: 001 [14:27:39]line ФМ: 0000000000874811 [14:27:39]line ФД: 95440 [14:27:39]line ФПД: 226877222712899 [14:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142738&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95440&fm=226877222712899&tin=02508201610067®Number=0000000000090555&sum=40000 [14:27:39]OFD Sender: Processing packet 95440 [packets to send 30, broken 29] [14:27:39]ProducePacketName [14:27:39]name=ofd_packets/00095440 [14:27:39]OFD Sender: To server: pG, [14:27:39]CommunicateWithHost lk.salyk.kg:30040 [14:27:39]ConnectInit lk.salyk.kg [14:27:39]written 0, free lines is 4095 [14:27:39]Connected sock=11 [14:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 79 94 07 01 03 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 18 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 44 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 DA B7 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 74 01 00 35 04 06 00 CE 57 F8 44 76 43 01 48 58 16 ED 8C C8 4D [14:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 34 CE 47 00 AD 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D0 74 01 00 F4 03 04 00 2D 63 F1 65 B6 04 01 00 00 A7 EC 9E 6F 56 B0 97 A5 [14:27:40]CommunicateWithHost err = 0 [14:27:40]CheckOFDResponse [14:27:40]1017 (14) - 77093643461234 [14:27:40]1041 (16) - 0000000000874811 [14:27:40]1040 (4) - 95440 [14:27:40]1012 (4) - 13.03.2024 08:26 [14:27:40]1206 (1) - 0 [14:27:40]OFD Sender: Remove packet 95440 [14:27:40]ProducePacketName [14:27:40]name=ofd_packets/00095440 [14:27:40]NVStorageDeleteData [14:27:40]Write to MH i2c: 01 00 00 34 01 35 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 07 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 07 00 34 01 00 80 00 00 00 5C 0D 25 [14:27:40]RasterBufferAndPrint [14:27:40]line [14:27:40]line [14:27:40]line [14:27:40]line [14:27:40]line [14:27:40]written 0, free lines is 3424 [14:27:40]process_action close_receipt done [14:27:40]requested_data is exist [14:27:40]produce_requested_data [14:27:40]requested_item fm.sn is exist - process it [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 11 00 00 [14:27:40]Write to MH i2c: E2 08 00 3B 01 80 11 00 00 00 00 00 00 B6 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 17 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 17 00 3B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 06 [14:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:27:40]wFMCommunicate OK [14:27:40]requested_item fd.num is exist - process it [14:27:40]SAM_PROTO_GetFieldsCounters [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 13 00 00 [14:27:40]Write to MH i2c: E2 08 00 3C 01 80 13 00 00 00 00 00 00 B9 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 62 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 62 00 3C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D0 74 01 00 0E 04 04 00 48 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 F9 [14:27:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D0 74 01 00 0E 04 04 00 48 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 [14:27:40]wFMCommunicate OK [14:27:40]SAM_PROTO_GetFieldsCounters done [14:27:40]requested_item shift.num is exist - process it [14:27:40]requested_item shift.opened is exist - process it [14:27:40]req_shift_opened [14:27:40]FM_GetShiftState [14:27:40]SAM_PROTO_GetShiftState [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 13 01 00 [14:27:40]Write to MH i2c: E2 08 00 3D 01 80 13 01 00 00 00 00 00 BB [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 0E 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 0E 00 3D 01 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A0 [14:27:40]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:27:40]wFMCommunicate OK [14:27:40]SAM_PROTO_GetShiftState done [14:27:40]FM_GetShiftState done [14:27:40]req_shift_opened done [14:27:40]requested_item shift.open_date is exist - process it [14:27:40]req_shift_open_date [14:27:40]req_shift_open_date done [14:27:40]produce_requested_data done [14:27:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95440,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:27:40]process_action_free close_receipt [14:27:40]json_value_free [14:27:40]json_value_free done [14:27:40]process_json_proto returns [14:27:40]Send response to host [14:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95440,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:27:40]free response buf [14:27:40]execute_script done [14:27:40]execute_script returns [14:27:40]free content buf [14:27:40]Sock 7.Close socket [14:27:40]Sock 7.Thread stoped [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:52]accept exits with 9 [14:29:52]New connection [14:29:52]New thread 3066969444 created [14:29:52]Thread 3066826084 joined [14:29:52]Waiting for new connection... [14:29:52] Sock 9.Parse request [14:29:52]Sock 9.Check first char [14:29:52]Sock 9.First char is OK [14:29:52]request: POST /json_proto HTTP/1.0 [14:29:52]Method: POST [14:29:52]URL: /json_proto [14:29:52]Method is POST - this is cgi request [14:29:52]url: /json_proto [14:29:52]query_string will be loaded in cgi processing [14:29:52]execute_cgi json_proto POST (null) [14:29:52]execute_cgi path=json_proto method=POST [14:29:52]POST find Content-Length [14:29:52]Host: 172.17.62.67:8080 [14:29:52]Content-Length: 816 [14:29:52]Content-Type: application/json [14:29:52] [14:29:52]POST finish read [14:29:52]Found Content-Length = 816 [14:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196433", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:52]execute_script... [14:29:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196433", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:52]POST & json_proto [14:29:52]process_json_proto [14:29:52]json parsed OK: [14:29:52]protocol is kg_v1.0 [14:29:52]action value=close_receipt [14:29:52]process_action close_receipt [14:29:52]cmd_close_receipt [14:29:52]MH_GetDate [14:29:52]Write to MH i2c: F0 00 00 3E 01 2E [14:29:52]Write i2c OK [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: F0 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: F0 05 00 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: F0 05 00 3E 01 00 61 B8 F1 65 A2 [14:29:52]GetLastDocTimeStamp 1710340058 [14:29:52]current date 1710340193 [14:29:52]FM_GetShiftState [14:29:52]SAM_PROTO_GetShiftState [14:29:52]wFMCommunicate request_size=4 [14:29:52]MH_SAM_APDU [14:29:52]CAPDU: 80 13 01 00 [14:29:52]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [14:29:52]Write i2c OK [14:29:52]MH_I2C_Read... [14:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:52]Read from MH i2c: E2 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: E2 0E 00 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A2 [14:29:52]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:29:52]wFMCommunicate OK [14:29:52]SAM_PROTO_GetShiftState done [14:29:52]FM_GetShiftState done [14:29:52]opened in 1710288279 [14:29:52]opened+sec_in_day 1710374679 [14:29:52]quantity*price = 60006 [14:29:52]sum+1 = 60008 [14:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 136 13.03.2024 14:29 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95441 ФПД: 237974585511403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142953&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95441&fm=237974585511403&tin=02508201610067®Number=0000000000090555&sum=60007 [14:29:53]StoreToDocumentArchive [14:29:53]shift 328 fd 95441 [14:29:53]save to /storage/0328/doc_00095441 [14:29:53]save last doc name /storage/0328/doc_00095441 to /storage/kkm_last_doc_name [14:29:53]save OK [14:29:53]Clear old archive folders... [14:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:53]tlvbuf is 01A9E400 [14:29:53]SAM_PROTO_ClearQueue [14:29:53]wFMCommunicate request_size=4 [14:29:53]MH_SAM_APDU [14:29:53]CAPDU: 80 09 00 00 [14:29:53]Write to MH i2c: E2 08 00 4C 01 80 09 00 00 00 00 00 00 BF [14:29:53]Write i2c OK [14:29:53]MH_I2C_Read... [14:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:53]Read from MH i2c: E2 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 03 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [14:29:53]RAPDU: 90 00 [14:29:53]wFMCommunicate OK [14:29:53]SAM_PROTO_ClearQueue done [14:29:53]KKMCreateOFDPacket [14:29:53]OFDProtocolAddRootSTLVToBuf [14:29:53]FM_MakeSignedData [14:29:53]FM_MakeSignedData [14:29:53]SAM_PROTO_SignData [14:29:53]wFMCommunicate request_size=4 [14:29:53]MH_SAM_APDU [14:29:53]CAPDU: 80 0D 01 02 [14:29:53]Write to MH i2c: E2 08 00 4D 01 80 0D 01 02 00 00 00 00 C7 [14:29:53]Write i2c OK [14:29:53]MH_I2C_Read... [14:29:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:53]Read from MH i2c: E2 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 03 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [14:29:53]RAPDU: 90 00 [14:29:53]wFMCommunicate OK [14:29:53]wFMCommunicate request_size=255 [14:29:53]MH_SAM_APDU [14:29:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 61 B8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 74 01 00 35 04 06 00 D8 [14:29:53]Write to MH i2c: E2 02 01 4E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 61 B8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 74 01 00 35 04 06 00 D8 00 00 42 [14:29:53]Write i2c OK [14:29:53]MH_I2C_Read... [14:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:53]Read from MH i2c: E2 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 03 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [14:29:53]RAPDU: 90 00 [14:29:53]wFMCommunicate OK [14:29:53]wFMCommunicate request_size=10 [14:29:53]MH_SAM_APDU [14:29:53]CAPDU: 80 0D 02 02 05 6F C6 A2 8D EB [14:29:53]Write to MH i2c: E2 0D 00 4F 01 80 0D 02 02 05 00 6F C6 A2 8D EB 00 00 23 [14:29:53]Write i2c OK [14:29:53]MH_I2C_Read... [14:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:53]Read from MH i2c: E2 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 03 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [14:29:53]RAPDU: 90 00 [14:29:53]wFMCommunicate OK [14:29:53]wFMCommunicate request_size=4 [14:29:53]MH_SAM_APDU [14:29:53]CAPDU: 80 0D 03 02 [14:29:53]Write to MH i2c: E2 08 00 50 01 80 0D 03 02 00 00 00 00 CC [14:29:53]Write i2c OK [14:29:53]MH_I2C_Read... [14:29:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:53]Read from MH i2c: E2 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 0B 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 0B 00 50 01 00 49 8F AD 15 8E 3B AC B1 90 00 8D [14:29:53]RAPDU: 49 8F AD 15 8E 3B AC B1 90 00 [14:29:53]wFMCommunicate OK [14:29:53]SAM_PROTO_SignData done [14:29:53]FM_MakeSignedData done [14:29:53]CreateOFDProtocolMessage [14:29:53]wFMCommunicate request_size=4 [14:29:53]MH_SAM_APDU [14:29:53]CAPDU: 80 11 00 00 [14:29:53]Write to MH i2c: E2 08 00 51 01 80 11 00 00 00 00 00 00 CC [14:29:53]Write i2c OK [14:29:53]MH_I2C_Read... [14:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:53]Read from MH i2c: E2 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 17 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 17 00 51 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 1C [14:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:29:53]wFMCommunicate OK [14:29:53]CreateOFDProtocolMessage done [14:29:53]OFDSenderStorePacket 95441 [14:29:53]StoreOFDPacket docnum=95441 [14:29:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 44 7B 07 01 D2 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 61 B8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 74 01 00 35 04 06 00 D8 6F C6 A2 8D EB 49 8F AD 15 8E 3B AC B1 [14:29:53]CheckFolder [14:29:53]dirname=/storage/ofd_packets [14:29:53]CheckFolder done [14:29:53]ProducePacketName [14:29:53]name=ofd_packets/00095441 [14:29:53]NVStorageSaveData ofd_packets/00095441 [14:29:53]File name is /storage/ofd_packets/00095441 [14:29:53]Write 301 bytes [14:29:53]NVStorageSaveData done [14:29:53]OFDSenderStorePacket done [14:29:53]KKMCreateOFDPacket done [14:29:53]NVStorageSaveData kkm_last_timestamp [14:29:53]File name is /storage/kkm_last_timestamp [14:29:53]Write 4 bytes [14:29:53]NVStorageSaveData done [14:29:53]ExternCall_PrintAddStr [14:29:53]wPrintStart [14:29:53]Write to MH i2c: 01 00 00 52 01 53 [14:29:53]Write i2c OK [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: 01 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: 01 07 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: 01 07 00 52 01 00 80 00 00 00 FF 0F E8 [14:29:53]RasterBufferAndPrint [14:29:53]line Счет N : (1)196433 [14:29:53]line ИНН: 02508201610067 [14:29:53]line Контрольно-Кассовый Чек [14:29:53]line ПРОДАЖА [14:29:53]line ТРК (МРК, ГНК) : 32 [14:29:53]line Товар: 2710124130 [14:29:53]line Аи-92-К-5 [14:29:53]line 9.540 * 62.90 [14:29:53]line = 600.07 [14:29:53]line НДС 12% НСП 1% [14:29:53]line > о реализуемом товаре [14:29:53]line ИТОГО: 600.07 [14:29:53]line НСП 1% : 5.31 [14:29:53]line НДС 12% : 63.72 [14:29:53]line Наличными: 0.00 [14:29:53]line Безнал.: 600.07 [14:29:53]line Место: АЗС № 6 "Партнер Нефть" [14:29:53]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:29:53]line СНО: Общий режим [14:29:53]line Чек 136 13.03.2024 14:29 [14:29:53]line Смена: 328 ФФД: 1.0 [14:29:53]line ЗНМ: 0300000009 [14:29:53]line РНМ: 0000000000090555 [14:29:53]line Версия ККМ: 001 [14:29:53]line Платежная система: Бакай Банк [14:29:53]line ФМ: 0000000000874811 [14:29:53]line ФД: 95441 [14:29:53]line ФПД: 237974585511403 [14:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T142953&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95441&fm=237974585511403&tin=02508201610067®Number=0000000000090555&sum=60007 [14:29:54]OFD Sender: Processing packet 95441 [packets to send 30, broken 29] [14:29:54]ProducePacketName [14:29:54]name=ofd_packets/00095441 [14:29:54]OFD Sender: To server: pG, [14:29:54]CommunicateWithHost lk.salyk.kg:30040 [14:29:54]ConnectInit lk.salyk.kg [14:29:54]written 0, free lines is 4095 [14:29:54]Connected sock=10 [14:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 44 7B 07 01 D2 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 61 B8 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 74 01 00 35 04 06 00 D8 6F C6 A2 8D EB 49 8F AD 15 8E 3B AC B1 [14:29:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 D2 84 47 00 31 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D1 74 01 00 F4 03 04 00 B3 63 F1 65 B6 04 01 00 00 98 AF EB 09 A3 C5 1D 8D [14:29:54]CommunicateWithHost err = 0 [14:29:54]CheckOFDResponse [14:29:54]1017 (14) - 77093643461234 [14:29:54]1041 (16) - 0000000000874811 [14:29:54]1040 (4) - 95441 [14:29:54]1012 (4) - 13.03.2024 08:28 [14:29:54]1206 (1) - 0 [14:29:54]OFD Sender: Remove packet 95441 [14:29:54]ProducePacketName [14:29:54]name=ofd_packets/00095441 [14:29:54]NVStorageDeleteData [14:29:54]Write to MH i2c: 01 00 00 7C 01 7D [14:29:54]Write i2c OK [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: 01 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: 01 07 00 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: 01 07 00 7C 01 00 80 00 00 00 61 0D 72 [14:29:54]RasterBufferAndPrint [14:29:54]line [14:29:54]line [14:29:54]line [14:29:54]line [14:29:54]line [14:29:54]written 0, free lines is 3431 [14:29:54]process_action close_receipt done [14:29:54]requested_data is exist [14:29:54]produce_requested_data [14:29:54]requested_item fm.sn is exist - process it [14:29:54]wFMCommunicate request_size=4 [14:29:54]MH_SAM_APDU [14:29:54]CAPDU: 80 11 00 00 [14:29:54]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [14:29:54]Write i2c OK [14:29:54]MH_I2C_Read... [14:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:54]Read from MH i2c: E2 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: E2 17 00 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 4E [14:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:29:54]wFMCommunicate OK [14:29:54]requested_item fd.num is exist - process it [14:29:54]SAM_PROTO_GetFieldsCounters [14:29:54]wFMCommunicate request_size=4 [14:29:54]MH_SAM_APDU [14:29:54]CAPDU: 80 13 00 00 [14:29:54]Write to MH i2c: E2 08 00 84 01 80 13 00 00 00 00 00 00 01 [14:29:54]Write i2c OK [14:29:54]MH_I2C_Read... [14:29:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:54]Read from MH i2c: E2 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: E2 62 00 [14:29:54]MH_I2C_Read... [14:29:54]Read from MH i2c: E2 62 00 84 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D1 74 01 00 0E 04 04 00 48 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 45 [14:29:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D1 74 01 00 0E 04 04 00 48 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 [14:29:54]wFMCommunicate OK [14:29:54]SAM_PROTO_GetFieldsCounters done [14:29:54]requested_item shift.num is exist - process it [14:29:54]requested_item shift.opened is exist - process it [14:29:54]req_shift_opened [14:29:54]FM_GetShiftState [14:29:54]SAM_PROTO_GetShiftState [14:29:54]wFMCommunicate request_size=4 [14:29:54]MH_SAM_APDU [14:29:54]CAPDU: 80 13 01 00 [14:29:54]Write to MH i2c: E2 08 00 85 01 80 13 01 00 00 00 00 00 03 [14:29:54]Write i2c OK [14:29:54]MH_I2C_Read... [14:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:55]OFD Sender: No OFD packet to send [14:29:55]Read from MH i2c: E2 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: E2 0E 00 [14:29:55]MH_I2C_Read... [14:29:55]Read from MH i2c: E2 0E 00 85 01 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E8 [14:29:55]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:29:55]wFMCommunicate OK [14:29:55]SAM_PROTO_GetShiftState done [14:29:55]FM_GetShiftState done [14:29:55]req_shift_opened done [14:29:55]requested_item shift.open_date is exist - process it [14:29:55]req_shift_open_date [14:29:55]req_shift_open_date done [14:29:55]produce_requested_data done [14:29:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95441,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:29:55]process_action_free close_receipt [14:29:55]json_value_free [14:29:55]json_value_free done [14:29:55]process_json_proto returns [14:29:55]Send response to host [14:29:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95441,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:29:55]free response buf [14:29:55]execute_script done [14:29:55]execute_script returns [14:29:55]free content buf [14:29:55]Sock 9.Close socket [14:29:55]Sock 9.Thread stoped [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:50]accept exits with 7 [14:32:50]New connection [14:32:50]New thread 3066826084 created [14:32:50]Thread 3066969444 joined [14:32:50]Waiting for new connection... [14:32:50] Sock 7.Parse request [14:32:50]Sock 7.Check first char [14:32:50]Sock 7.First char is OK [14:32:50]request: POST /json_proto HTTP/1.0 [14:32:50]Method: POST [14:32:50]URL: /json_proto [14:32:50]Method is POST - this is cgi request [14:32:50]url: /json_proto [14:32:50]query_string will be loaded in cgi processing [14:32:50]execute_cgi json_proto POST (null) [14:32:50]execute_cgi path=json_proto method=POST [14:32:50]POST find Content-Length [14:32:50]Host: 172.17.62.67:8080 [14:32:50]Content-Length: 1200 [14:32:50]Content-Type: application/json [14:32:50] [14:32:50]POST finish read [14:32:50]Found Content-Length = 1200 [14:32:50]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196434\u000A13.03.2024 14:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 943.50\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\u000A53230\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:50]execute_script... [14:32:50]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196434\u000A13.03.2024 14:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 62.90\u000A\u0418\u0422\u041E\u0413: 943.50\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\u000A53230\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:50]POST & json_proto [14:32:50]process_json_proto [14:32:50]json parsed OK: [14:32:50]protocol is kg_v1.0 [14:32:50]action value=print_text [14:32:50]process_action print_text [14:32:50]cmd_print_text [14:32:50]ExternCall_PrintAddStr [14:32:50]wPrintStart [14:32:50]Write to MH i2c: 01 00 00 86 01 87 [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: 01 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: 01 07 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: 01 07 00 86 01 00 80 00 00 00 FF 0F 1C [14:32:50]RasterBufferAndPrint [14:32:50]line *****ТОВАРНЫЙ ЧЕК***** [14:32:50]line АЗС 6 [14:32:50]line Партнер нефть [14:32:50]line 02508201610067 [14:32:50]line Кассир : Сабырбек у. М. [14:32:50]line Счет N : (1)196434 [14:32:50]line 13.03.2024 14:26 [14:32:50]line ПРОДАЖА [14:32:50]line ТРК (МРК, ГНК): 32 [14:32:50]line Вид ГСМ : 2710124130 [14:32:50]line Аи-92-К-5 [14:32:50]line 15.000 x 62.90 [14:32:50]line ИТОГ: 943.50 [14:32:50]line Тип оплаты: Талоны: Топливная Карта [14:32:50]line 53230 [14:32:50]line ______________________ [14:32:50]line (подпись) [14:32:50]written 0, free lines is 4095 [14:32:50]Write to MH i2c: 01 00 00 9A 01 9B [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: 01 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: 01 07 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: 01 07 00 9A 01 00 80 00 00 00 68 0E 98 [14:32:50]RasterBufferAndPrint [14:32:50]line [14:32:50]line [14:32:50]line [14:32:50]line [14:32:50]line [14:32:50]written 0, free lines is 3693 [14:32:50]process_action print_text done [14:32:50]requested_data is exist [14:32:50]produce_requested_data [14:32:50]requested_item fm.sn is exist - process it [14:32:50]wFMCommunicate request_size=4 [14:32:50]MH_SAM_APDU [14:32:50]CAPDU: 80 11 00 00 [14:32:50]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:50]Read from MH i2c: E2 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 17 00 [14:32:50]MH_I2C_Read... [14:32:50]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 34 38 31 31 90 00 6C [14:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:32:50]wFMCommunicate OK [14:32:50]requested_item fd.num is exist - process it [14:32:50]SAM_PROTO_GetFieldsCounters [14:32:50]wFMCommunicate request_size=4 [14:32:50]MH_SAM_APDU [14:32:50]CAPDU: 80 13 00 00 [14:32:50]Write to MH i2c: E2 08 00 A2 01 80 13 00 00 00 00 00 00 1F [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:50]Read from MH i2c: E2 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 62 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 62 00 A2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D1 74 01 00 0E 04 04 00 48 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 63 [14:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D1 74 01 00 0E 04 04 00 48 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 [14:32:50]wFMCommunicate OK [14:32:50]SAM_PROTO_GetFieldsCounters done [14:32:50]requested_item shift.num is exist - process it [14:32:50]requested_item shift.opened is exist - process it [14:32:50]req_shift_opened [14:32:50]FM_GetShiftState [14:32:50]SAM_PROTO_GetShiftState [14:32:50]wFMCommunicate request_size=4 [14:32:50]MH_SAM_APDU [14:32:50]CAPDU: 80 13 01 00 [14:32:50]Write to MH i2c: E2 08 00 A3 01 80 13 01 00 00 00 00 00 21 [14:32:50]Write i2c OK [14:32:50]MH_I2C_Read... [14:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:50]Read from MH i2c: E2 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 0E 00 [14:32:50]MH_I2C_Read... [14:32:50]Read from MH i2c: E2 0E 00 A3 01 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 06 [14:32:50]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:32:50]wFMCommunicate OK [14:32:50]SAM_PROTO_GetShiftState done [14:32:50]FM_GetShiftState done [14:32:50]req_shift_opened done [14:32:50]requested_item shift.open_date is exist - process it [14:32:50]req_shift_open_date [14:32:50]req_shift_open_date done [14:32:50]produce_requested_data done [14:32:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95441,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:32:50]process_action_free print_text [14:32:50]json_value_free [14:32:50]json_value_free done [14:32:50]process_json_proto returns [14:32:50]Send response to host [14:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95441,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:32:50]free response buf [14:32:50]execute_script done [14:32:50]execute_script returns [14:32:50]free content buf [14:32:50]Sock 7.Close socket [14:32:50]Sock 7.Thread stoped [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:53]accept exits with 9 [14:37:53]New connection [14:37:53]New thread 3066969444 created [14:37:53]Thread 3066826084 joined [14:37:53]Waiting for new connection... [14:37:53] Sock 9.Parse request [14:37:53]Sock 9.Check first char [14:37:53]Sock 9.First char is OK [14:37:53]request: POST /json_proto HTTP/1.0 [14:37:53]Method: POST [14:37:53]URL: /json_proto [14:37:53]Method is POST - this is cgi request [14:37:53]url: /json_proto [14:37:53]query_string will be loaded in cgi processing [14:37:53]execute_cgi json_proto POST (null) [14:37:53]execute_cgi path=json_proto method=POST [14:37:53]POST find Content-Length [14:37:53]Host: 172.17.62.67:8080 [14:37:53]Content-Length: 677 [14:37:53]Content-Type: application/json [14:37:53] [14:37:53]POST finish read [14:37:53]Found Content-Length = 677 [14:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196435", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:53]execute_script... [14:37:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196435", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:53]POST & json_proto [14:37:53]process_json_proto [14:37:53]json parsed OK: [14:37:53]protocol is kg_v1.0 [14:37:53]action value=close_receipt [14:37:53]process_action close_receipt [14:37:53]cmd_close_receipt [14:37:53]MH_GetDate [14:37:53]Write to MH i2c: F0 00 00 A4 01 94 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: F0 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: F0 05 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: F0 05 00 A4 01 00 42 BA F1 65 EB [14:37:53]GetLastDocTimeStamp 1710340193 [14:37:53]current date 1710340674 [14:37:53]FM_GetShiftState [14:37:53]SAM_PROTO_GetShiftState [14:37:53]wFMCommunicate request_size=4 [14:37:53]MH_SAM_APDU [14:37:53]CAPDU: 80 13 01 00 [14:37:53]Write to MH i2c: E2 08 00 A5 01 80 13 01 00 00 00 00 00 23 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0E 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0E 00 A5 01 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 08 [14:37:53]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:37:53]wFMCommunicate OK [14:37:53]SAM_PROTO_GetShiftState done [14:37:53]FM_GetShiftState done [14:37:53]opened in 1710288279 [14:37:53]opened+sec_in_day 1710374679 [14:37:53]quantity*price = 50005 [14:37:53]sum+1 = 50007 [14:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 137 13.03.2024 14:37 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95442 ФПД: 117538574365316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T143754&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95442&fm=117538574365316&tin=02508201610067®Number=0000000000090555&sum=50000 [14:37:54]StoreToDocumentArchive [14:37:54]shift 328 fd 95442 [14:37:54]save to /storage/0328/doc_00095442 [14:37:54]save last doc name /storage/0328/doc_00095442 to /storage/kkm_last_doc_name [14:37:54]save OK [14:37:54]Clear old archive folders... [14:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:54]tlvbuf is 01A9C960 [14:37:54]SAM_PROTO_ClearQueue [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 09 00 00 [14:37:54]Write to MH i2c: E2 08 00 B2 01 80 09 00 00 00 00 00 00 25 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [14:37:54]RAPDU: 90 00 [14:37:54]wFMCommunicate OK [14:37:54]SAM_PROTO_ClearQueue done [14:37:54]KKMCreateOFDPacket [14:37:54]OFDProtocolAddRootSTLVToBuf [14:37:54]FM_MakeSignedData [14:37:54]FM_MakeSignedData [14:37:54]SAM_PROTO_SignData [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 0D 01 02 [14:37:54]Write to MH i2c: E2 08 00 B3 01 80 0D 01 02 00 00 00 00 2D [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [14:37:54]RAPDU: 90 00 [14:37:54]wFMCommunicate OK [14:37:54]wFMCommunicate request_size=255 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 89 00 00 00 F4 03 04 00 42 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 74 01 00 35 04 06 00 6A [14:37:54]Write to MH i2c: E2 02 01 B4 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 89 00 00 00 F4 03 04 00 42 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 74 01 00 35 04 06 00 6A 00 00 AB [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [14:37:54]RAPDU: 90 00 [14:37:54]wFMCommunicate OK [14:37:54]wFMCommunicate request_size=10 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 0D 02 02 05 E6 94 F8 F2 84 [14:37:54]Write to MH i2c: E2 0D 00 B5 01 80 0D 02 02 05 00 E6 94 F8 F2 84 00 00 22 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [14:37:54]RAPDU: 90 00 [14:37:54]wFMCommunicate OK [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 0D 03 02 [14:37:54]Write to MH i2c: E2 08 00 B6 01 80 0D 03 02 00 00 00 00 32 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 0B 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 0B 00 B6 01 00 D8 57 D2 01 35 3B 54 A3 90 00 9C [14:37:54]RAPDU: D8 57 D2 01 35 3B 54 A3 90 00 [14:37:54]wFMCommunicate OK [14:37:54]SAM_PROTO_SignData done [14:37:54]FM_MakeSignedData done [14:37:54]CreateOFDProtocolMessage [14:37:54]wFMCommunicate request_size=4 [14:37:54]MH_SAM_APDU [14:37:54]CAPDU: 80 11 00 00 [14:37:54]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:54]Read from MH i2c: E2 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 17 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 82 [14:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:37:54]wFMCommunicate OK [14:37:54]CreateOFDProtocolMessage done [14:37:54]OFDSenderStorePacket 95442 [14:37:54]StoreOFDPacket docnum=95442 [14:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4E 03 07 01 B4 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 89 00 00 00 F4 03 04 00 42 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 74 01 00 35 04 06 00 6A E6 94 F8 F2 84 D8 57 D2 01 35 3B 54 A3 [14:37:54]CheckFolder [14:37:54]dirname=/storage/ofd_packets [14:37:54]CheckFolder done [14:37:54]ProducePacketName [14:37:54]name=ofd_packets/00095442 [14:37:54]NVStorageSaveData ofd_packets/00095442 [14:37:54]File name is /storage/ofd_packets/00095442 [14:37:54]Write 301 bytes [14:37:54]NVStorageSaveData done [14:37:54]OFDSenderStorePacket done [14:37:54]KKMCreateOFDPacket done [14:37:54]NVStorageSaveData kkm_last_timestamp [14:37:54]File name is /storage/kkm_last_timestamp [14:37:54]Write 4 bytes [14:37:54]NVStorageSaveData done [14:37:54]ExternCall_PrintAddStr [14:37:54]wPrintStart [14:37:54]Write to MH i2c: 01 00 00 B8 01 B9 [14:37:54]Write i2c OK [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 [14:37:54]MH_I2C_Read... [14:37:54]Read from MH i2c: 01 07 00 B8 01 00 80 00 00 00 FF 0F 4E [14:37:54]RasterBufferAndPrint [14:37:54]line Счет N : (1)196435 [14:37:54]line ИНН: 02508201610067 [14:37:54]line Контрольно-Кассовый Чек [14:37:54]line ПРОДАЖА [14:37:54]line ТРК (МРК, ГНК) : 32 [14:37:54]line Товар: 2710124130 [14:37:54]line Аи-92-К-5 [14:37:54]line 7.950 * 62.90 [14:37:54]line = 500.06 [14:37:54]line НДС 12% НСП 1% [14:37:54]line > о реализуемом товаре [14:37:54]line ОКРУГЛЕНИЕ: -0.06 [14:37:54]line ИТОГО: 500.00 [14:37:54]line Внесено: 500.00 [14:37:54]line СДАЧА: 0.00 [14:37:54]line НСП 1% : 4.42 [14:37:54]line НДС 12% : 53.10 [14:37:54]line Наличными: 500.00 [14:37:54]line Безнал.: 0.00 [14:37:54]line Место: АЗС № 6 "Партнер Нефть" [14:37:54]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:37:54]line СНО: Общий режим [14:37:54]line Чек 137 13.03.2024 14:37 [14:37:54]line Смена: 328 ФФД: 1.0 [14:37:55]line ЗНМ: 0300000009 [14:37:55]line РНМ: 0000000000090555 [14:37:55]line Версия ККМ: 001 [14:37:55]line ФМ: 0000000000874811 [14:37:55]line ФД: 95442 [14:37:55]line ФПД: 117538574365316 [14:37:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T143754&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95442&fm=117538574365316&tin=02508201610067®Number=0000000000090555&sum=50000 [14:37:55]OFD Sender: Processing packet 95442 [packets to send 30, broken 29] [14:37:55]ProducePacketName [14:37:55]name=ofd_packets/00095442 [14:37:55]OFD Sender: To server: pG, [14:37:55]CommunicateWithHost lk.salyk.kg:30040 [14:37:55]ConnectInit lk.salyk.kg [14:37:55]written 0, free lines is 4095 [14:37:55]Connected sock=10 [14:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4E 03 07 01 B4 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 89 00 00 00 F4 03 04 00 42 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 74 01 00 35 04 06 00 6A E6 94 F8 F2 84 D8 57 D2 01 35 3B 54 A3 [14:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 28 28 47 00 BE 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D2 74 01 00 F4 03 04 00 94 65 F1 65 B6 04 01 00 00 2D AB E1 0A A8 C8 12 62 [14:37:55]CommunicateWithHost err = 0 [14:37:55]CheckOFDResponse [14:37:55]1017 (14) - 77093643461234 [14:37:55]1041 (16) - 0000000000874811 [14:37:55]1040 (4) - 95442 [14:37:55]1012 (4) - 13.03.2024 08:36 [14:37:55]1206 (1) - 0 [14:37:55]OFD Sender: Remove packet 95442 [14:37:55]ProducePacketName [14:37:55]name=ofd_packets/00095442 [14:37:55]NVStorageDeleteData [14:37:55]Write to MH i2c: 01 00 00 E3 01 E4 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: 01 07 00 E3 01 00 80 00 00 00 4D 0D C5 [14:37:55]RasterBufferAndPrint [14:37:55]line [14:37:55]line [14:37:55]line [14:37:55]line [14:37:55]line [14:37:55]written 0, free lines is 3411 [14:37:55]process_action close_receipt done [14:37:55]requested_data is exist [14:37:55]produce_requested_data [14:37:55]requested_item fm.sn is exist - process it [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 11 00 00 [14:37:55]Write to MH i2c: E2 08 00 EA 01 80 11 00 00 00 00 00 00 65 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 17 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 17 00 EA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 B5 [14:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:37:55]wFMCommunicate OK [14:37:55]requested_item fd.num is exist - process it [14:37:55]SAM_PROTO_GetFieldsCounters [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 00 00 [14:37:55]Write to MH i2c: E2 08 00 EB 01 80 13 00 00 00 00 00 00 68 [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 62 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 62 00 EB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D2 74 01 00 0E 04 04 00 48 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 B0 [14:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D2 74 01 00 0E 04 04 00 48 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 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetFieldsCounters done [14:37:55]requested_item shift.num is exist - process it [14:37:55]requested_item shift.opened is exist - process it [14:37:55]req_shift_opened [14:37:55]FM_GetShiftState [14:37:55]SAM_PROTO_GetShiftState [14:37:55]wFMCommunicate request_size=4 [14:37:55]MH_SAM_APDU [14:37:55]CAPDU: 80 13 01 00 [14:37:55]Write to MH i2c: E2 08 00 EC 01 80 13 01 00 00 00 00 00 6A [14:37:55]Write i2c OK [14:37:55]MH_I2C_Read... [14:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:55]Read from MH i2c: E2 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 [14:37:55]MH_I2C_Read... [14:37:55]Read from MH i2c: E2 0E 00 EC 01 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 4F [14:37:55]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:37:55]wFMCommunicate OK [14:37:55]SAM_PROTO_GetShiftState done [14:37:55]FM_GetShiftState done [14:37:55]req_shift_opened done [14:37:55]requested_item shift.open_date is exist - process it [14:37:55]req_shift_open_date [14:37:55]req_shift_open_date done [14:37:55]produce_requested_data done [14:37:55]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95442,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:37:55]process_action_free close_receipt [14:37:55]json_value_free [14:37:55]json_value_free done [14:37:55]process_json_proto returns [14:37:55]Send response to host [14:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95442,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:37:55]free response buf [14:37:55]execute_script done [14:37:55]execute_script returns [14:37:55]free content buf [14:37:55]Sock 9.Close socket [14:37:55]Sock 9.Thread stoped [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [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:31]accept exits with 7 [14:39:31]New connection [14:39:31]New thread 3066826084 created [14:39:31]Thread 3066969444 joined [14:39:31]Waiting for new connection... [14:39:31] Sock 7.Parse request [14:39:31]Sock 7.Check first char [14:39:31]Sock 7.First char is OK [14:39:31]request: POST /json_proto HTTP/1.0 [14:39:31]Method: POST [14:39:31]URL: /json_proto [14:39:31]Method is POST - this is cgi request [14:39:31]url: /json_proto [14:39:31]query_string will be loaded in cgi processing [14:39:31]execute_cgi json_proto POST (null) [14:39:31]execute_cgi path=json_proto method=POST [14:39:31]POST find Content-Length [14:39:31]Host: 172.17.62.67:8080 [14:39:31]Content-Length: 805 [14:39:31]Content-Type: application/json [14:39:31] [14:39:31]POST finish read [14:39:31]Found Content-Length = 805 [14:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196436", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:31]execute_script... [14:39:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196436", "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" : 62.90, "quantity" : 9.540, "sum" : 600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:31]POST & json_proto [14:39:31]process_json_proto [14:39:31]json parsed OK: [14:39:31]protocol is kg_v1.0 [14:39:31]action value=close_receipt [14:39:31]process_action close_receipt [14:39:31]cmd_close_receipt [14:39:31]MH_GetDate [14:39:31]Write to MH i2c: F0 00 00 ED 01 DD [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: F0 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: F0 05 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: F0 05 00 ED 01 00 A4 BA F1 65 96 [14:39:31]GetLastDocTimeStamp 1710340674 [14:39:31]current date 1710340772 [14:39:31]FM_GetShiftState [14:39:31]SAM_PROTO_GetShiftState [14:39:31]wFMCommunicate request_size=4 [14:39:31]MH_SAM_APDU [14:39:31]CAPDU: 80 13 01 00 [14:39:31]Write to MH i2c: E2 08 00 EE 01 80 13 01 00 00 00 00 00 6C [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:31]Read from MH i2c: E2 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 0E 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: E2 0E 00 EE 01 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 51 [14:39:31]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:39:31]wFMCommunicate OK [14:39:31]SAM_PROTO_GetShiftState done [14:39:31]FM_GetShiftState done [14:39:31]opened in 1710288279 [14:39:31]opened+sec_in_day 1710374679 [14:39:31]quantity*price = 60006 [14:39:31]sum+1 = 60008 [14:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.07 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.07 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 138 13.03.2024 14:39 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000874811 ФД: 95443 ФПД: 219615258616022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T143932&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95443&fm=219615258616022&tin=02508201610067®Number=0000000000090555&sum=60007 [14:39:33]StoreToDocumentArchive [14:39:33]shift 328 fd 95443 [14:39:33]save to /storage/0328/doc_00095443 [14:39:33]save last doc name /storage/0328/doc_00095443 to /storage/kkm_last_doc_name [14:39:33]save OK [14:39:33]Clear old archive folders... [14:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:33]tlvbuf is 01A9C820 [14:39:33]SAM_PROTO_ClearQueue [14:39:33]wFMCommunicate request_size=4 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 09 00 00 [14:39:33]Write to MH i2c: E2 08 00 FB 01 80 09 00 00 00 00 00 00 6E [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 FB 01 00 90 00 70 [14:39:33]RAPDU: 90 00 [14:39:33]wFMCommunicate OK [14:39:33]SAM_PROTO_ClearQueue done [14:39:33]KKMCreateOFDPacket [14:39:33]OFDProtocolAddRootSTLVToBuf [14:39:33]FM_MakeSignedData [14:39:33]FM_MakeSignedData [14:39:33]SAM_PROTO_SignData [14:39:33]wFMCommunicate request_size=4 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 0D 01 02 [14:39:33]Write to MH i2c: E2 08 00 FC 01 80 0D 01 02 00 00 00 00 76 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 FC 01 00 90 00 71 [14:39:33]RAPDU: 90 00 [14:39:33]wFMCommunicate OK [14:39:33]wFMCommunicate request_size=255 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 A4 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 74 01 00 35 04 06 00 C7 [14:39:33]Write to MH i2c: E2 02 01 FD 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 A4 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 74 01 00 35 04 06 00 C7 00 00 29 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [14:39:33]RAPDU: 90 00 [14:39:33]wFMCommunicate OK [14:39:33]wFMCommunicate request_size=10 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 0D 02 02 05 BD 29 7A 20 D6 [14:39:33]Write to MH i2c: E2 0D 00 FE 01 80 0D 02 02 05 00 BD 29 7A 20 D6 00 00 D9 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [14:39:33]RAPDU: 90 00 [14:39:33]wFMCommunicate OK [14:39:33]wFMCommunicate request_size=4 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 0D 03 02 [14:39:33]Write to MH i2c: E2 08 00 FF 01 80 0D 03 02 00 00 00 00 7B [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 0B 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 0B 00 FF 01 00 82 B3 B8 F6 E9 F4 2A 81 90 00 E7 [14:39:33]RAPDU: 82 B3 B8 F6 E9 F4 2A 81 90 00 [14:39:33]wFMCommunicate OK [14:39:33]SAM_PROTO_SignData done [14:39:33]FM_MakeSignedData done [14:39:33]CreateOFDProtocolMessage [14:39:33]wFMCommunicate request_size=4 [14:39:33]MH_SAM_APDU [14:39:33]CAPDU: 80 11 00 00 [14:39:33]Write to MH i2c: E2 08 00 00 02 80 11 00 00 00 00 00 00 7C [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:33]Read from MH i2c: E2 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 17 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: E2 17 00 00 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 CC [14:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:39:33]wFMCommunicate OK [14:39:33]CreateOFDProtocolMessage done [14:39:33]OFDSenderStorePacket 95443 [14:39:33]StoreOFDPacket docnum=95443 [14:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B1 BD 07 01 4C 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 A4 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 74 01 00 35 04 06 00 C7 BD 29 7A 20 D6 82 B3 B8 F6 E9 F4 2A 81 [14:39:33]CheckFolder [14:39:33]dirname=/storage/ofd_packets [14:39:33]CheckFolder done [14:39:33]ProducePacketName [14:39:33]name=ofd_packets/00095443 [14:39:33]NVStorageSaveData ofd_packets/00095443 [14:39:33]File name is /storage/ofd_packets/00095443 [14:39:33]Write 301 bytes [14:39:33]NVStorageSaveData done [14:39:33]OFDSenderStorePacket done [14:39:33]KKMCreateOFDPacket done [14:39:33]NVStorageSaveData kkm_last_timestamp [14:39:33]File name is /storage/kkm_last_timestamp [14:39:33]Write 4 bytes [14:39:33]NVStorageSaveData done [14:39:33]ExternCall_PrintAddStr [14:39:33]wPrintStart [14:39:33]Write to MH i2c: 01 00 00 01 02 03 [14:39:33]Write i2c OK [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 07 00 [14:39:33]MH_I2C_Read... [14:39:33]Read from MH i2c: 01 07 00 01 02 00 80 00 00 00 FF 0F 98 [14:39:33]RasterBufferAndPrint [14:39:33]line Счет N : (1)196436 [14:39:33]line ИНН: 02508201610067 [14:39:33]line Контрольно-Кассовый Чек [14:39:33]line ПРОДАЖА [14:39:33]line ТРК (МРК, ГНК) : 42 [14:39:33]line Товар: 2710124130 [14:39:33]line Аи-92-К-5 [14:39:33]line 9.540 * 62.90 [14:39:33]line = 600.07 [14:39:33]line НДС 12% НСП 1% [14:39:33]line > о реализуемом товаре [14:39:33]line ИТОГО: 600.07 [14:39:33]line НСП 1% : 5.31 [14:39:33]line НДС 12% : 63.72 [14:39:33]line Наличными: 0.00 [14:39:33]line Безнал.: 600.07 [14:39:33]line Место: АЗС № 6 "Партнер Нефть" [14:39:33]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:39:33]line СНО: Общий режим [14:39:33]line Чек 138 13.03.2024 14:39 [14:39:33]line Смена: 328 ФФД: 1.0 [14:39:33]line ЗНМ: 0300000009 [14:39:33]line РНМ: 0000000000090555 [14:39:33]line Версия ККМ: 001 [14:39:33]line Платежная система: О! деньги [14:39:33]line ФМ: 0000000000874811 [14:39:33]line ФД: 95443 [14:39:33]line ФПД: 219615258616022 [14:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T143932&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95443&fm=219615258616022&tin=02508201610067®Number=0000000000090555&sum=60007 [14:39:33]OFD Sender: Processing packet 95443 [packets to send 30, broken 29] [14:39:33]ProducePacketName [14:39:33]name=ofd_packets/00095443 [14:39:33]OFD Sender: To server: pG, [14:39:33]CommunicateWithHost lk.salyk.kg:30040 [14:39:33]ConnectInit lk.salyk.kg [14:39:33]written 0, free lines is 4095 [14:39:34]Connected sock=10 [14:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 B1 BD 07 01 4C 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 67 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 67 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 67 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 A4 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 74 01 00 35 04 06 00 C7 BD 29 7A 20 D6 82 B3 B8 F6 E9 F4 2A 81 [14:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 96 E1 47 00 4D D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D3 74 01 00 F4 03 04 00 F7 65 F1 65 B6 04 01 00 00 20 01 3D B0 1E 98 C7 9C [14:39:34]CommunicateWithHost err = 0 [14:39:34]CheckOFDResponse [14:39:34]1017 (14) - 77093643461234 [14:39:34]1041 (16) - 0000000000874811 [14:39:34]1040 (4) - 95443 [14:39:34]1012 (4) - 13.03.2024 08:38 [14:39:34]1206 (1) - 0 [14:39:34]OFD Sender: Remove packet 95443 [14:39:34]ProducePacketName [14:39:34]name=ofd_packets/00095443 [14:39:34]NVStorageDeleteData [14:39:34]Write to MH i2c: 01 00 00 2B 02 2D [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 07 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: 01 07 00 2B 02 00 80 00 00 00 65 0D 26 [14:39:34]RasterBufferAndPrint [14:39:34]line [14:39:34]line [14:39:34]line [14:39:34]line [14:39:34]line [14:39:34]written 0, free lines is 3433 [14:39:34]process_action close_receipt done [14:39:34]requested_data is exist [14:39:34]produce_requested_data [14:39:34]requested_item fm.sn is exist - process it [14:39:34]wFMCommunicate request_size=4 [14:39:34]MH_SAM_APDU [14:39:34]CAPDU: 80 11 00 00 [14:39:34]Write to MH i2c: E2 08 00 32 02 80 11 00 00 00 00 00 00 AE [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:34]Read from MH i2c: E2 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 17 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 17 00 32 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 FE [14:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:39:34]wFMCommunicate OK [14:39:34]requested_item fd.num is exist - process it [14:39:34]SAM_PROTO_GetFieldsCounters [14:39:34]wFMCommunicate request_size=4 [14:39:34]MH_SAM_APDU [14:39:34]CAPDU: 80 13 00 00 [14:39:34]Write to MH i2c: E2 08 00 33 02 80 13 00 00 00 00 00 00 B1 [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:34]Read from MH i2c: E2 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 62 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 62 00 33 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D3 74 01 00 0E 04 04 00 48 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 FD [14:39:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D3 74 01 00 0E 04 04 00 48 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 [14:39:34]wFMCommunicate OK [14:39:34]SAM_PROTO_GetFieldsCounters done [14:39:34]requested_item shift.num is exist - process it [14:39:34]requested_item shift.opened is exist - process it [14:39:34]req_shift_opened [14:39:34]FM_GetShiftState [14:39:34]SAM_PROTO_GetShiftState [14:39:34]wFMCommunicate request_size=4 [14:39:34]MH_SAM_APDU [14:39:34]CAPDU: 80 13 01 00 [14:39:34]Write to MH i2c: E2 08 00 34 02 80 13 01 00 00 00 00 00 B3 [14:39:34]Write i2c OK [14:39:34]MH_I2C_Read... [14:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:34]Read from MH i2c: E2 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 0E 00 [14:39:34]MH_I2C_Read... [14:39:34]Read from MH i2c: E2 0E 00 34 02 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 98 [14:39:34]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:39:34]wFMCommunicate OK [14:39:34]SAM_PROTO_GetShiftState done [14:39:34]FM_GetShiftState done [14:39:34]req_shift_opened done [14:39:34]requested_item shift.open_date is exist - process it [14:39:34]req_shift_open_date [14:39:34]req_shift_open_date done [14:39:34]produce_requested_data done [14:39:34]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95443,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:39:34]process_action_free close_receipt [14:39:34]json_value_free [14:39:34]json_value_free done [14:39:34]process_json_proto returns [14:39:34]Send response to host [14:39:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95443,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:39:34]free response buf [14:39:34]execute_script done [14:39:34]execute_script returns [14:39:34]free content buf [14:39:34]Sock 7.Close socket [14:39:34]Sock 7.Thread stoped [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:37]accept exits with 9 [14:40:37]New connection [14:40:37]New thread 3066969444 created [14:40:37]Thread 3066826084 joined [14:40:37]Waiting for new connection... [14:40:37] Sock 9.Parse request [14:40:37]Sock 9.Check first char [14:40:37]Sock 9.First char is OK [14:40:37]request: POST /json_proto HTTP/1.0 [14:40:37]Method: POST [14:40:37]URL: /json_proto [14:40:37]Method is POST - this is cgi request [14:40:37]url: /json_proto [14:40:37]query_string will be loaded in cgi processing [14:40:37]execute_cgi json_proto POST (null) [14:40:37]execute_cgi path=json_proto method=POST [14:40:37]POST find Content-Length [14:40:37]Host: 172.17.62.67:8080 [14:40:37]Content-Length: 677 [14:40:37]Content-Type: application/json [14:40:37] [14:40:37]POST finish read [14:40:37]Found Content-Length = 677 [14:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196437", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:37]execute_script... [14:40:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196437", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:37]POST & json_proto [14:40:37]process_json_proto [14:40:37]json parsed OK: [14:40:37]protocol is kg_v1.0 [14:40:37]action value=close_receipt [14:40:37]process_action close_receipt [14:40:37]cmd_close_receipt [14:40:37]MH_GetDate [14:40:37]Write to MH i2c: F0 00 00 35 02 26 [14:40:37]Write i2c OK [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: F0 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: F0 05 00 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: F0 05 00 35 02 00 E6 BA F1 65 21 [14:40:37]GetLastDocTimeStamp 1710340772 [14:40:37]current date 1710340838 [14:40:37]FM_GetShiftState [14:40:37]SAM_PROTO_GetShiftState [14:40:37]wFMCommunicate request_size=4 [14:40:37]MH_SAM_APDU [14:40:37]CAPDU: 80 13 01 00 [14:40:37]Write to MH i2c: E2 08 00 36 02 80 13 01 00 00 00 00 00 B5 [14:40:37]Write i2c OK [14:40:37]MH_I2C_Read... [14:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:37]Read from MH i2c: E2 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: E2 0E 00 [14:40:37]MH_I2C_Read... [14:40:37]Read from MH i2c: E2 0E 00 36 02 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 9A [14:40:37]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:40:37]wFMCommunicate OK [14:40:37]SAM_PROTO_GetShiftState done [14:40:37]FM_GetShiftState done [14:40:37]opened in 1710288279 [14:40:37]opened+sec_in_day 1710374679 [14:40:37]quantity*price = 50005 [14:40:37]sum+1 = 50007 [14:40:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 139 13.03.2024 14:40 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95444 ФПД: 252072570509676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T144038&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95444&fm=252072570509676&tin=02508201610067®Number=0000000000090555&sum=50000 [14:40:39]StoreToDocumentArchive [14:40:39]shift 328 fd 95444 [14:40:39]save to /storage/0328/doc_00095444 [14:40:39]save last doc name /storage/0328/doc_00095444 to /storage/kkm_last_doc_name [14:40:39]save OK [14:40:39]Clear old archive folders... [14:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:39]tlvbuf is 01A9EC10 [14:40:39]SAM_PROTO_ClearQueue [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 09 00 00 [14:40:39]Write to MH i2c: E2 08 00 43 02 80 09 00 00 00 00 00 00 B7 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [14:40:39]RAPDU: 90 00 [14:40:39]wFMCommunicate OK [14:40:39]SAM_PROTO_ClearQueue done [14:40:39]KKMCreateOFDPacket [14:40:39]OFDProtocolAddRootSTLVToBuf [14:40:39]FM_MakeSignedData [14:40:39]FM_MakeSignedData [14:40:39]SAM_PROTO_SignData [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 0D 01 02 [14:40:39]Write to MH i2c: E2 08 00 44 02 80 0D 01 02 00 00 00 00 BF [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [14:40:39]RAPDU: 90 00 [14:40:39]wFMCommunicate OK [14:40:39]wFMCommunicate request_size=255 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 8B 00 00 00 F4 03 04 00 E6 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 74 01 00 35 04 06 00 E5 [14:40:39]Write to MH i2c: E2 02 01 45 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 8B 00 00 00 F4 03 04 00 E6 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 74 01 00 35 04 06 00 E5 00 00 60 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [14:40:39]RAPDU: 90 00 [14:40:39]wFMCommunicate OK [14:40:39]wFMCommunicate request_size=10 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 0D 02 02 05 42 38 05 D9 6C [14:40:39]Write to MH i2c: E2 0D 00 46 02 80 0D 02 02 05 00 42 38 05 D9 6C 00 00 90 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 03 00 46 02 00 90 00 BC [14:40:39]RAPDU: 90 00 [14:40:39]wFMCommunicate OK [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 0D 03 02 [14:40:39]Write to MH i2c: E2 08 00 47 02 80 0D 03 02 00 00 00 00 C4 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 0B 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 0B 00 47 02 00 B5 39 C1 43 AE 5E 98 39 90 00 94 [14:40:39]RAPDU: B5 39 C1 43 AE 5E 98 39 90 00 [14:40:39]wFMCommunicate OK [14:40:39]SAM_PROTO_SignData done [14:40:39]FM_MakeSignedData done [14:40:39]CreateOFDProtocolMessage [14:40:39]wFMCommunicate request_size=4 [14:40:39]MH_SAM_APDU [14:40:39]CAPDU: 80 11 00 00 [14:40:39]Write to MH i2c: E2 08 00 48 02 80 11 00 00 00 00 00 00 C4 [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:39]Read from MH i2c: E2 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 17 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: E2 17 00 48 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 14 [14:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:40:39]wFMCommunicate OK [14:40:39]CreateOFDProtocolMessage done [14:40:39]OFDSenderStorePacket 95444 [14:40:39]StoreOFDPacket docnum=95444 [14:40:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C6 ED 07 01 28 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 8B 00 00 00 F4 03 04 00 E6 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 74 01 00 35 04 06 00 E5 42 38 05 D9 6C B5 39 C1 43 AE 5E 98 39 [14:40:39]CheckFolder [14:40:39]dirname=/storage/ofd_packets [14:40:39]CheckFolder done [14:40:39]ProducePacketName [14:40:39]name=ofd_packets/00095444 [14:40:39]NVStorageSaveData ofd_packets/00095444 [14:40:39]File name is /storage/ofd_packets/00095444 [14:40:39]Write 301 bytes [14:40:39]NVStorageSaveData done [14:40:39]OFDSenderStorePacket done [14:40:39]KKMCreateOFDPacket done [14:40:39]NVStorageSaveData kkm_last_timestamp [14:40:39]File name is /storage/kkm_last_timestamp [14:40:39]Write 4 bytes [14:40:39]NVStorageSaveData done [14:40:39]ExternCall_PrintAddStr [14:40:39]wPrintStart [14:40:39]Write to MH i2c: 01 00 00 49 02 4B [14:40:39]Write i2c OK [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 07 00 [14:40:39]MH_I2C_Read... [14:40:39]Read from MH i2c: 01 07 00 49 02 00 80 00 00 00 FF 0F E0 [14:40:39]RasterBufferAndPrint [14:40:39]line Счет N : (1)196437 [14:40:39]line ИНН: 02508201610067 [14:40:39]line Контрольно-Кассовый Чек [14:40:39]line ПРОДАЖА [14:40:39]line ТРК (МРК, ГНК) : 42 [14:40:39]line Товар: 2710124130 [14:40:39]line Аи-92-К-5 [14:40:39]line 7.950 * 62.90 [14:40:39]line = 500.06 [14:40:39]line НДС 12% НСП 1% [14:40:39]line > о реализуемом товаре [14:40:39]line ОКРУГЛЕНИЕ: -0.06 [14:40:39]line ИТОГО: 500.00 [14:40:39]line Внесено: 500.00 [14:40:39]line СДАЧА: 0.00 [14:40:39]line НСП 1% : 4.42 [14:40:39]line НДС 12% : 53.10 [14:40:39]line Наличными: 500.00 [14:40:39]line Безнал.: 0.00 [14:40:39]line Место: АЗС № 6 "Партнер Нефть" [14:40:39]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:40:39]line СНО: Общий режим [14:40:39]line Чек 139 13.03.2024 14:40 [14:40:39]line Смена: 328 ФФД: 1.0 [14:40:39]line ЗНМ: 0300000009 [14:40:39]line РНМ: 0000000000090555 [14:40:39]line Версия ККМ: 001 [14:40:39]line ФМ: 0000000000874811 [14:40:39]line ФД: 95444 [14:40:39]line ФПД: 252072570509676 [14:40:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T144038&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95444&fm=252072570509676&tin=02508201610067®Number=0000000000090555&sum=50000 [14:40:39]OFD Sender: Processing packet 95444 [packets to send 30, broken 29] [14:40:39]ProducePacketName [14:40:39]name=ofd_packets/00095444 [14:40:39]OFD Sender: To server: pG, [14:40:39]CommunicateWithHost lk.salyk.kg:30040 [14:40:39]ConnectInit lk.salyk.kg [14:40:39]written 0, free lines is 4095 [14:40:39]Connected sock=10 [14:40:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C6 ED 07 01 28 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 8B 00 00 00 F4 03 04 00 E6 BA F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 74 01 00 35 04 06 00 E5 42 38 05 D9 6C B5 39 C1 43 AE 5E 98 39 [14:40:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 2B EE 47 00 04 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D4 74 01 00 F4 03 04 00 39 66 F1 65 B6 04 01 00 00 05 5E 67 28 2C 5A 31 26 [14:40:40]CommunicateWithHost err = 0 [14:40:40]CheckOFDResponse [14:40:40]1017 (14) - 77093643461234 [14:40:40]1041 (16) - 0000000000874811 [14:40:40]1040 (4) - 95444 [14:40:40]1012 (4) - 13.03.2024 08:39 [14:40:40]1206 (1) - 0 [14:40:40]OFD Sender: Remove packet 95444 [14:40:40]ProducePacketName [14:40:40]name=ofd_packets/00095444 [14:40:40]NVStorageDeleteData [14:40:40]Write to MH i2c: 01 00 00 74 02 76 [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: 01 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: 01 07 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: 01 07 00 74 02 00 80 00 00 00 56 0D 60 [14:40:40]RasterBufferAndPrint [14:40:40]line [14:40:40]line [14:40:40]line [14:40:40]line [14:40:40]line [14:40:40]written 0, free lines is 3420 [14:40:40]process_action close_receipt done [14:40:40]requested_data is exist [14:40:40]produce_requested_data [14:40:40]requested_item fm.sn is exist - process it [14:40:40]wFMCommunicate request_size=4 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 11 00 00 [14:40:40]Write to MH i2c: E2 08 00 7B 02 80 11 00 00 00 00 00 00 F7 [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:40]Read from MH i2c: E2 17 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 17 00 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 47 [14:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:40:40]wFMCommunicate OK [14:40:40]requested_item fd.num is exist - process it [14:40:40]SAM_PROTO_GetFieldsCounters [14:40:40]wFMCommunicate request_size=4 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 13 00 00 [14:40:40]Write to MH i2c: E2 08 00 7C 02 80 13 00 00 00 00 00 00 FA [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 62 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 62 00 7C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D4 74 01 00 0E 04 04 00 48 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 4A [14:40:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D4 74 01 00 0E 04 04 00 48 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 [14:40:40]wFMCommunicate OK [14:40:40]SAM_PROTO_GetFieldsCounters done [14:40:40]requested_item shift.num is exist - process it [14:40:40]requested_item shift.opened is exist - process it [14:40:40]req_shift_opened [14:40:40]FM_GetShiftState [14:40:40]SAM_PROTO_GetShiftState [14:40:40]wFMCommunicate request_size=4 [14:40:40]MH_SAM_APDU [14:40:40]CAPDU: 80 13 01 00 [14:40:40]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [14:40:40]Write i2c OK [14:40:40]MH_I2C_Read... [14:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:40]Read from MH i2c: E2 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 0E 00 [14:40:40]MH_I2C_Read... [14:40:40]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E1 [14:40:40]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:40:40]wFMCommunicate OK [14:40:40]SAM_PROTO_GetShiftState done [14:40:40]FM_GetShiftState done [14:40:40]req_shift_opened done [14:40:40]requested_item shift.open_date is exist - process it [14:40:40]req_shift_open_date [14:40:40]req_shift_open_date done [14:40:40]produce_requested_data done [14:40:40]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95444,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:40:40]process_action_free close_receipt [14:40:40]json_value_free [14:40:40]json_value_free done [14:40:40]process_json_proto returns [14:40:40]Send response to host [14:40:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95444,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:40:40]free response buf [14:40:40]execute_script done [14:40:40]execute_script returns [14:40:40]free content buf [14:40:40]Sock 9.Close socket [14:40:40]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:45]accept exits with 7 [14:50:45]New connection [14:50:45]New thread 3066826084 created [14:50:45]Thread 3066969444 joined [14:50:45]Waiting for new connection... [14:50:45] Sock 7.Parse request [14:50:45]Sock 7.Check first char [14:50:45]Sock 7.First char is OK [14:50:45]request: POST /json_proto HTTP/1.0 [14:50:45]Method: POST [14:50:45]URL: /json_proto [14:50:45]Method is POST - this is cgi request [14:50:45]url: /json_proto [14:50:45]query_string will be loaded in cgi processing [14:50:45]execute_cgi json_proto POST (null) [14:50:45]execute_cgi path=json_proto method=POST [14:50:45]POST find Content-Length [14:50:45]Host: 172.17.62.67:8080 [14:50:45]Content-Length: 675 [14:50:45]Content-Type: application/json [14:50:45] [14:50:45]POST finish read [14:50:45]Found Content-Length = 675 [14:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "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:50:45]execute_script... [14:50:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 15.650, "sum" : 1000.04, "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:50:45]POST & json_proto [14:50:45]process_json_proto [14:50:45]json parsed OK: [14:50:45]protocol is kg_v1.0 [14:50:45]action value=close_receipt [14:50:45]process_action close_receipt [14:50:45]cmd_close_receipt [14:50:45]MH_GetDate [14:50:45]Write to MH i2c: F0 00 00 7E 02 6F [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: F0 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: F0 05 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: F0 05 00 7E 02 00 46 BD F1 65 CD [14:50:45]GetLastDocTimeStamp 1710340838 [14:50:45]current date 1710341446 [14:50:45]FM_GetShiftState [14:50:45]SAM_PROTO_GetShiftState [14:50:45]wFMCommunicate request_size=4 [14:50:45]MH_SAM_APDU [14:50:45]CAPDU: 80 13 01 00 [14:50:45]Write to MH i2c: E2 08 00 7F 02 80 13 01 00 00 00 00 00 FE [14:50:45]Write i2c OK [14:50:45]MH_I2C_Read... [14:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:45]Read from MH i2c: E2 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 0E 00 [14:50:45]MH_I2C_Read... [14:50:45]Read from MH i2c: E2 0E 00 7F 02 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E3 [14:50:45]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:50:45]wFMCommunicate OK [14:50:45]SAM_PROTO_GetShiftState done [14:50:45]FM_GetShiftState done [14:50:45]opened in 1710288279 [14:50:45]opened+sec_in_day 1710374679 [14:50:45]quantity*price = 100003 [14:50:45]sum+1 = 100005 [14:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 140 13.03.2024 14:50 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95445 ФПД: 182955242353645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T145047&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95445&fm=182955242353645&tin=02508201610067®Number=0000000000090555&sum=100000 [14:50:47]StoreToDocumentArchive [14:50:47]shift 328 fd 95445 [14:50:47]save to /storage/0328/doc_00095445 [14:50:47]save last doc name /storage/0328/doc_00095445 to /storage/kkm_last_doc_name [14:50:47]save OK [14:50:47]Clear old archive folders... [14:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:50:47]tlvbuf is 01AB7800 [14:50:47]SAM_PROTO_ClearQueue [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 09 00 00 [14:50:47]Write to MH i2c: E2 08 00 8C 02 80 09 00 00 00 00 00 00 00 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 03 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [14:50:47]RAPDU: 90 00 [14:50:47]wFMCommunicate OK [14:50:47]SAM_PROTO_ClearQueue done [14:50:47]KKMCreateOFDPacket [14:50:47]OFDProtocolAddRootSTLVToBuf [14:50:47]FM_MakeSignedData [14:50:47]FM_MakeSignedData [14:50:47]SAM_PROTO_SignData [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 0D 01 02 [14:50:47]Write to MH i2c: E2 08 00 8D 02 80 0D 01 02 00 00 00 00 08 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 03 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [14:50:47]RAPDU: 90 00 [14:50:47]wFMCommunicate OK [14:50:47]wFMCommunicate request_size=255 [14:50:47]MH_SAM_APDU [14:50:47]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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 47 BD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 74 01 00 35 04 06 00 [14:50:47]Write to MH i2c: E2 02 01 8E 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 47 BD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 74 01 00 35 04 06 00 00 00 27 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 03 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [14:50:47]RAPDU: 90 00 [14:50:47]wFMCommunicate OK [14:50:47]wFMCommunicate request_size=11 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 0D 02 02 06 A6 65 96 3A F3 ED [14:50:47]Write to MH i2c: E2 0E 00 8F 02 80 0D 02 02 06 00 A6 65 96 3A F3 ED 00 00 D2 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 03 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 03 00 8F 02 00 90 00 05 [14:50:47]RAPDU: 90 00 [14:50:47]wFMCommunicate OK [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 0D 03 02 [14:50:47]Write to MH i2c: E2 08 00 90 02 80 0D 03 02 00 00 00 00 0D [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 0B 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 0B 00 90 02 00 15 3C A8 53 49 C8 12 38 90 00 B5 [14:50:47]RAPDU: 15 3C A8 53 49 C8 12 38 90 00 [14:50:47]wFMCommunicate OK [14:50:47]SAM_PROTO_SignData done [14:50:47]FM_MakeSignedData done [14:50:47]CreateOFDProtocolMessage [14:50:47]wFMCommunicate request_size=4 [14:50:47]MH_SAM_APDU [14:50:47]CAPDU: 80 11 00 00 [14:50:47]Write to MH i2c: E2 08 00 91 02 80 11 00 00 00 00 00 00 0D [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:47]Read from MH i2c: E2 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: E2 17 00 [14:50:47]MH_I2C_Read... [14:50:47]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 34 38 31 31 90 00 5D [14:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:50:47]wFMCommunicate OK [14:50:47]CreateOFDProtocolMessage done [14:50:47]OFDSenderStorePacket 95445 [14:50:47]StoreOFDPacket docnum=95445 [14:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 34 55 08 01 77 1E 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 47 BD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 74 01 00 35 04 06 00 A6 65 96 3A F3 ED 15 3C A8 53 49 C8 12 38 [14:50:47]CheckFolder [14:50:47]dirname=/storage/ofd_packets [14:50:47]CheckFolder done [14:50:47]ProducePacketName [14:50:47]name=ofd_packets/00095445 [14:50:47]NVStorageSaveData ofd_packets/00095445 [14:50:47]File name is /storage/ofd_packets/00095445 [14:50:47]Write 302 bytes [14:50:47]NVStorageSaveData done [14:50:47]OFDSenderStorePacket done [14:50:47]KKMCreateOFDPacket done [14:50:47]NVStorageSaveData kkm_last_timestamp [14:50:47]File name is /storage/kkm_last_timestamp [14:50:47]Write 4 bytes [14:50:47]NVStorageSaveData done [14:50:47]ExternCall_PrintAddStr [14:50:47]wPrintStart [14:50:47]Write to MH i2c: 01 00 00 92 02 94 [14:50:47]Write i2c OK [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: 01 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: 01 07 00 [14:50:47]MH_I2C_Read... [14:50:47]Read from MH i2c: 01 07 00 92 02 00 80 00 00 00 FF 0F 29 [14:50:47]RasterBufferAndPrint [14:50:47]line Счет N : (1)196438 [14:50:47]line ИНН: 02508201610067 [14:50:47]line Контрольно-Кассовый Чек [14:50:47]line ПРОДАЖА [14:50:47]line ТРК (МРК, ГНК) : 13 [14:50:47]line Товар: 2710124130 [14:50:47]line SUPER 92-К-5 [14:50:47]line 15.650 * 63.90 [14:50:47]line = 1000.04 [14:50:47]line НДС 12% НСП 1% [14:50:47]line > о реализуемом товаре [14:50:47]line ОКРУГЛЕНИЕ: -0.04 [14:50:47]line ИТОГО: 1000.00 [14:50:47]line Внесено: 1000.00 [14:50:47]line СДАЧА: 0.00 [14:50:47]line НСП 1% : 8.85 [14:50:47]line НДС 12% : 106.20 [14:50:47]line Наличными: 1000.00 [14:50:47]line Безнал.: 0.00 [14:50:47]line Место: АЗС № 6 "Партнер Нефть" [14:50:47]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:50:47]line СНО: Общий режим [14:50:47]line Чек 140 13.03.2024 14:50 [14:50:47]line Смена: 328 ФФД: 1.0 [14:50:47]line ЗНМ: 0300000009 [14:50:47]line РНМ: 0000000000090555 [14:50:47]line Версия ККМ: 001 [14:50:47]line ФМ: 0000000000874811 [14:50:47]line ФД: 95445 [14:50:47]line ФПД: 182955242353645 [14:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T145047&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95445&fm=182955242353645&tin=02508201610067®Number=0000000000090555&sum=100000 [14:50:47]OFD Sender: Processing packet 95445 [packets to send 30, broken 29] [14:50:47]ProducePacketName [14:50:47]name=ofd_packets/00095445 [14:50:47]OFD Sender: To server: pG, [14:50:47]CommunicateWithHost lk.salyk.kg:30040 [14:50:47]ConnectInit lk.salyk.kg [14:50:47]written 0, free lines is 4095 [14:50:48]Connected sock=10 [14:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 34 55 08 01 77 1E 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 22 3D 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 A4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 47 BD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 74 01 00 35 04 06 00 A6 65 96 3A F3 ED 15 3C A8 53 49 C8 12 38 [14:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 49 A1 47 00 22 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D5 74 01 00 F4 03 04 00 99 68 F1 65 B6 04 01 00 00 F8 75 A1 9A C5 5F 1D B3 [14:50:48]CommunicateWithHost err = 0 [14:50:48]CheckOFDResponse [14:50:48]1017 (14) - 77093643461234 [14:50:48]1041 (16) - 0000000000874811 [14:50:48]1040 (4) - 95445 [14:50:48]1012 (4) - 13.03.2024 08:49 [14:50:48]1206 (1) - 0 [14:50:48]OFD Sender: Remove packet 95445 [14:50:48]ProducePacketName [14:50:48]name=ofd_packets/00095445 [14:50:48]NVStorageDeleteData [14:50:48]Write to MH i2c: 01 00 00 BD 02 BF [14:50:48]Write i2c OK [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: 01 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: 01 07 00 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: 01 07 00 BD 02 00 80 00 00 00 4D 0D A0 [14:50:48]RasterBufferAndPrint [14:50:48]line [14:50:48]line [14:50:48]line [14:50:48]line [14:50:48]line [14:50:48]written 0, free lines is 3411 [14:50:48]process_action close_receipt done [14:50:48]requested_data is exist [14:50:48]produce_requested_data [14:50:48]requested_item fm.sn is exist - process it [14:50:48]wFMCommunicate request_size=4 [14:50:48]MH_SAM_APDU [14:50:48]CAPDU: 80 11 00 00 [14:50:48]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [14:50:48]Write i2c OK [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 [14:50:48]MH_I2C_Read... [14:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:48]Read from MH i2c: E2 17 00 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 90 [14:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:50:48]wFMCommunicate OK [14:50:48]requested_item fd.num is exist - process it [14:50:48]SAM_PROTO_GetFieldsCounters [14:50:48]wFMCommunicate request_size=4 [14:50:48]MH_SAM_APDU [14:50:48]CAPDU: 80 13 00 00 [14:50:48]Write to MH i2c: E2 08 00 C5 02 80 13 00 00 00 00 00 00 43 [14:50:48]Write i2c OK [14:50:48]MH_I2C_Read... [14:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:48]Read from MH i2c: E2 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 62 00 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 62 00 C5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D5 74 01 00 0E 04 04 00 48 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 97 [14:50:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D5 74 01 00 0E 04 04 00 48 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 [14:50:48]wFMCommunicate OK [14:50:48]SAM_PROTO_GetFieldsCounters done [14:50:48]requested_item shift.num is exist - process it [14:50:48]requested_item shift.opened is exist - process it [14:50:48]req_shift_opened [14:50:48]FM_GetShiftState [14:50:48]SAM_PROTO_GetShiftState [14:50:48]wFMCommunicate request_size=4 [14:50:48]MH_SAM_APDU [14:50:48]CAPDU: 80 13 01 00 [14:50:48]Write to MH i2c: E2 08 00 C6 02 80 13 01 00 00 00 00 00 45 [14:50:48]Write i2c OK [14:50:48]MH_I2C_Read... [14:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:48]Read from MH i2c: E2 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 0E 00 [14:50:48]MH_I2C_Read... [14:50:48]Read from MH i2c: E2 0E 00 C6 02 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2A [14:50:48]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:50:48]wFMCommunicate OK [14:50:48]SAM_PROTO_GetShiftState done [14:50:48]FM_GetShiftState done [14:50:48]req_shift_opened done [14:50:48]requested_item shift.open_date is exist - process it [14:50:48]req_shift_open_date [14:50:48]req_shift_open_date done [14:50:48]produce_requested_data done [14:50:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95445,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:50:48]process_action_free close_receipt [14:50:48]json_value_free [14:50:48]json_value_free done [14:50:48]process_json_proto returns [14:50:48]Send response to host [14:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95445,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:50:48]free response buf [14:50:48]execute_script done [14:50:48]execute_script returns [14:50:48]free content buf [14:50:48]Sock 7.Close socket [14:50:48]Sock 7.Thread stoped [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]accept exits with 9 [14:52:03]New connection [14:52:03]New thread 3066969444 created [14:52:03]Thread 3066826084 joined [14:52:03]Waiting for new connection... [14:52:03] Sock 9.Parse request [14:52:03]Sock 9.Check first char [14:52:03]Sock 9.First char is OK [14:52:03]request: POST /json_proto HTTP/1.0 [14:52:03]Method: POST [14:52:03]URL: /json_proto [14:52:03]Method is POST - this is cgi request [14:52:03]url: /json_proto [14:52:03]query_string will be loaded in cgi processing [14:52:03]execute_cgi json_proto POST (null) [14:52:03]execute_cgi path=json_proto method=POST [14:52:03]POST find Content-Length [14:52:03]Host: 172.17.62.67:8080 [14:52:03]Content-Length: 677 [14:52:03]Content-Type: application/json [14:52:03] [14:52:03]POST finish read [14:52:03]Found Content-Length = 677 [14:52:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196439", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:03]execute_script... [14:52: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)196439", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:03]POST & json_proto [14:52:03]process_json_proto [14:52:03]json parsed OK: [14:52:03]protocol is kg_v1.0 [14:52:03]action value=close_receipt [14:52:03]process_action close_receipt [14:52:03]cmd_close_receipt [14:52:03]MH_GetDate [14:52:03]Write to MH i2c: F0 00 00 C7 02 B8 [14:52:03]Write i2c OK [14:52:03]MH_I2C_Read... [14:52:03]Read from MH i2c: F0 [14:52:03]MH_I2C_Read... [14:52:03]Read from MH i2c: F0 05 00 [14:52:03]MH_I2C_Read... [14:52:03]Read from MH i2c: F0 05 00 C7 02 00 94 BD F1 65 64 [14:52:03]GetLastDocTimeStamp 1710341447 [14:52:03]current date 1710341524 [14:52:03]FM_GetShiftState [14:52:03]SAM_PROTO_GetShiftState [14:52:03]wFMCommunicate request_size=4 [14:52:03]MH_SAM_APDU [14:52:03]CAPDU: 80 13 01 00 [14:52:03]Write to MH i2c: E2 08 00 C8 02 80 13 01 00 00 00 00 00 47 [14:52:03]Write i2c OK [14:52:03]MH_I2C_Read... [14:52:03]OFD Sender: No OFD packet to send [14:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:03]Read from MH i2c: E2 [14:52:03]MH_I2C_Read... [14:52:03]Read from MH i2c: E2 0E 00 [14:52:03]MH_I2C_Read... [14:52:03]Read from MH i2c: E2 0E 00 C8 02 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 2C [14:52:03]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:52:03]wFMCommunicate OK [14:52:03]SAM_PROTO_GetShiftState done [14:52:03]FM_GetShiftState done [14:52:03]opened in 1710288279 [14:52:03]opened+sec_in_day 1710374679 [14:52:03]quantity*price = 50005 [14:52:03]sum+1 = 50007 [14:52:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 141 13.03.2024 14:52 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95446 ФПД: 237830623389909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T145204&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95446&fm=237830623389909&tin=02508201610067®Number=0000000000090555&sum=50000 [14:52:05]StoreToDocumentArchive [14:52:05]shift 328 fd 95446 [14:52:05]save to /storage/0328/doc_00095446 [14:52:05]save last doc name /storage/0328/doc_00095446 to /storage/kkm_last_doc_name [14:52:05]save OK [14:52:05]Clear old archive folders... [14:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:05]tlvbuf is 01AF7950 [14:52:05]SAM_PROTO_ClearQueue [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 09 00 00 [14:52:05]Write to MH i2c: E2 08 00 D5 02 80 09 00 00 00 00 00 00 49 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [14:52:05]RAPDU: 90 00 [14:52:05]wFMCommunicate OK [14:52:05]SAM_PROTO_ClearQueue done [14:52:05]KKMCreateOFDPacket [14:52:05]OFDProtocolAddRootSTLVToBuf [14:52:05]FM_MakeSignedData [14:52:05]FM_MakeSignedData [14:52:05]SAM_PROTO_SignData [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 0D 01 02 [14:52:05]Write to MH i2c: E2 08 00 D6 02 80 0D 01 02 00 00 00 00 51 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [14:52:05]RAPDU: 90 00 [14:52:05]wFMCommunicate OK [14:52:05]wFMCommunicate request_size=255 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 8D 00 00 00 F4 03 04 00 94 BD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 74 01 00 35 04 06 00 D8 [14:52:05]Write to MH i2c: E2 02 01 D7 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 8D 00 00 00 F4 03 04 00 94 BD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 74 01 00 35 04 06 00 D8 00 00 9A [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [14:52:05]RAPDU: 90 00 [14:52:05]wFMCommunicate OK [14:52:05]wFMCommunicate request_size=10 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 0D 02 02 05 4E 41 D2 E8 D5 [14:52:05]Write to MH i2c: E2 0D 00 D8 02 80 0D 02 02 05 00 4E 41 D2 E8 D5 00 00 7C [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [14:52:05]RAPDU: 90 00 [14:52:05]wFMCommunicate OK [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 0D 03 02 [14:52:05]Write to MH i2c: E2 08 00 D9 02 80 0D 03 02 00 00 00 00 56 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 0B 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 0B 00 D9 02 00 A5 FC E5 AE B3 5A 1A 23 90 00 D5 [14:52:05]RAPDU: A5 FC E5 AE B3 5A 1A 23 90 00 [14:52:05]wFMCommunicate OK [14:52:05]SAM_PROTO_SignData done [14:52:05]FM_MakeSignedData done [14:52:05]CreateOFDProtocolMessage [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 11 00 00 [14:52:05]Write to MH i2c: E2 08 00 DA 02 80 11 00 00 00 00 00 00 56 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 17 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 17 00 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A6 [14:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:52:05]wFMCommunicate OK [14:52:05]CreateOFDProtocolMessage done [14:52:05]OFDSenderStorePacket 95446 [14:52:05]StoreOFDPacket docnum=95446 [14:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B 2D 07 01 D6 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 8D 00 00 00 F4 03 04 00 94 BD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 74 01 00 35 04 06 00 D8 4E 41 D2 E8 D5 A5 FC E5 AE B3 5A 1A 23 [14:52:05]CheckFolder [14:52:05]dirname=/storage/ofd_packets [14:52:05]CheckFolder done [14:52:05]ProducePacketName [14:52:05]name=ofd_packets/00095446 [14:52:05]NVStorageSaveData ofd_packets/00095446 [14:52:05]File name is /storage/ofd_packets/00095446 [14:52:05]Write 301 bytes [14:52:05]NVStorageSaveData done [14:52:05]OFDSenderStorePacket done [14:52:05]KKMCreateOFDPacket done [14:52:05]NVStorageSaveData kkm_last_timestamp [14:52:05]File name is /storage/kkm_last_timestamp [14:52:05]Write 4 bytes [14:52:05]NVStorageSaveData done [14:52:05]ExternCall_PrintAddStr [14:52:05]wPrintStart [14:52:05]Write to MH i2c: 01 00 00 DB 02 DD [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: 01 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: 01 07 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: 01 07 00 DB 02 00 80 00 00 00 FF 0F 72 [14:52:05]RasterBufferAndPrint [14:52:05]line Счет N : (1)196439 [14:52:05]line ИНН: 02508201610067 [14:52:05]line Контрольно-Кассовый Чек [14:52:05]line ПРОДАЖА [14:52:05]line ТРК (МРК, ГНК) : 32 [14:52:05]line Товар: 2710124130 [14:52:05]line Аи-92-К-5 [14:52:05]line 7.950 * 62.90 [14:52:05]line = 500.06 [14:52:05]line НДС 12% НСП 1% [14:52:05]line > о реализуемом товаре [14:52:05]line ОКРУГЛЕНИЕ: -0.06 [14:52:05]line ИТОГО: 500.00 [14:52:05]line Внесено: 500.00 [14:52:05]line СДАЧА: 0.00 [14:52:05]line НСП 1% : 4.42 [14:52:05]line НДС 12% : 53.10 [14:52:05]line Наличными: 500.00 [14:52:05]line Безнал.: 0.00 [14:52:05]line Место: АЗС № 6 "Партнер Нефть" [14:52:05]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:52:05]line СНО: Общий режим [14:52:05]line Чек 141 13.03.2024 14:52 [14:52:05]line Смена: 328 ФФД: 1.0 [14:52:05]line ЗНМ: 0300000009 [14:52:05]line РНМ: 0000000000090555 [14:52:05]line Версия ККМ: 001 [14:52:05]line ФМ: 0000000000874811 [14:52:05]line ФД: 95446 [14:52:05]line ФПД: 237830623389909 [14:52:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T145204&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95446&fm=237830623389909&tin=02508201610067®Number=0000000000090555&sum=50000 [14:52:05]written 0, free lines is 4095 [14:52:05]OFD Sender: Processing packet 95446 [packets to send 30, broken 29] [14:52:05]ProducePacketName [14:52:05]name=ofd_packets/00095446 [14:52:05]OFD Sender: To server: pG, [14:52:05]CommunicateWithHost lk.salyk.kg:30040 [14:52:05]ConnectInit lk.salyk.kg [14:52:05]Connected sock=10 [14:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 4B 2D 07 01 D6 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 8D 00 00 00 F4 03 04 00 94 BD F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 74 01 00 35 04 06 00 D8 4E 41 D2 E8 D5 A5 FC E5 AE B3 5A 1A 23 [14:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 7C C2 47 00 BC EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D6 74 01 00 F4 03 04 00 E7 68 F1 65 B6 04 01 00 00 00 BC 09 48 C6 60 14 73 [14:52:06]CommunicateWithHost err = 0 [14:52:06]CheckOFDResponse [14:52:06]1017 (14) - 77093643461234 [14:52:06]1041 (16) - 0000000000874811 [14:52:06]1040 (4) - 95446 [14:52:06]1012 (4) - 13.03.2024 08:50 [14:52:06]1206 (1) - 0 [14:52:06]OFD Sender: Remove packet 95446 [14:52:06]ProducePacketName [14:52:06]name=ofd_packets/00095446 [14:52:06]NVStorageDeleteData [14:52:06]Write to MH i2c: 01 00 00 06 03 09 [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: 01 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: 01 07 00 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: 01 07 00 06 03 00 80 00 00 00 4A 0D E7 [14:52:06]RasterBufferAndPrint [14:52:06]line [14:52:06]line [14:52:06]line [14:52:06]line [14:52:06]line [14:52:06]written 0, free lines is 3408 [14:52:06]process_action close_receipt done [14:52:06]requested_data is exist [14:52:06]produce_requested_data [14:52:06]requested_item fm.sn is exist - process it [14:52:06]wFMCommunicate request_size=4 [14:52:06]MH_SAM_APDU [14:52:06]CAPDU: 80 11 00 00 [14:52:06]Write to MH i2c: E2 08 00 0D 03 80 11 00 00 00 00 00 00 8A [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: E2 [14:52:06]MH_I2C_Read... [14:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:06]Read from MH i2c: E2 17 00 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: E2 17 00 0D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 DA [14:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:52:06]wFMCommunicate OK [14:52:06]requested_item fd.num is exist - process it [14:52:06]SAM_PROTO_GetFieldsCounters [14:52:06]wFMCommunicate request_size=4 [14:52:06]MH_SAM_APDU [14:52:06]CAPDU: 80 13 00 00 [14:52:06]Write to MH i2c: E2 08 00 0E 03 80 13 00 00 00 00 00 00 8D [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:06]Read from MH i2c: E2 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: E2 62 00 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: E2 62 00 0E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D6 74 01 00 0E 04 04 00 48 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 E5 [14:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D6 74 01 00 0E 04 04 00 48 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 [14:52:06]wFMCommunicate OK [14:52:06]SAM_PROTO_GetFieldsCounters done [14:52:06]requested_item shift.num is exist - process it [14:52:06]requested_item shift.opened is exist - process it [14:52:06]req_shift_opened [14:52:06]FM_GetShiftState [14:52:06]SAM_PROTO_GetShiftState [14:52:06]wFMCommunicate request_size=4 [14:52:06]MH_SAM_APDU [14:52:06]CAPDU: 80 13 01 00 [14:52:06]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:06]Read from MH i2c: E2 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: E2 0E 00 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: E2 0E 00 0F 03 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 74 [14:52:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:52:06]wFMCommunicate OK [14:52:06]SAM_PROTO_GetShiftState done [14:52:06]FM_GetShiftState done [14:52:06]req_shift_opened done [14:52:06]requested_item shift.open_date is exist - process it [14:52:06]req_shift_open_date [14:52:06]req_shift_open_date done [14:52:06]produce_requested_data done [14:52:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95446,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:52:06]process_action_free close_receipt [14:52:06]json_value_free [14:52:06]json_value_free done [14:52:06]process_json_proto returns [14:52:06]Send response to host [14:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95446,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:52:06]free response buf [14:52:06]execute_script done [14:52:06]execute_script returns [14:52:06]free content buf [14:52:06]Sock 9.Close socket [14:52:06]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:32]accept exits with 7 [14:57:32]New connection [14:57:32]New thread 3066826084 created [14:57:32]Thread 3066969444 joined [14:57:32]Waiting for new connection... [14:57:32] Sock 7.Parse request [14:57:32]Sock 7.Check first char [14:57:32]Sock 7.First char is OK [14:57:32]request: POST /json_proto HTTP/1.0 [14:57:32]Method: POST [14:57:32]URL: /json_proto [14:57:32]Method is POST - this is cgi request [14:57:32]url: /json_proto [14:57:32]query_string will be loaded in cgi processing [14:57:32]execute_cgi json_proto POST (null) [14:57:32]execute_cgi path=json_proto method=POST [14:57:32]POST find Content-Length [14:57:32]Host: 172.17.62.67:8080 [14:57:32]Content-Length: 1188 [14:57:32]Content-Type: application/json [14:57:32] [14:57:32]POST finish read [14:57:32]Found Content-Length = 1188 [14:57:32]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196440\u000A13.03.2024 14:51\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3776796\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:32]execute_script... [14:57:32]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196440\u000A13.03.2024 14:51\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 70.90\u000A\u0418\u0422\u041E\u0413: 1418.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\u000A3776796\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:32]POST & json_proto [14:57:32]process_json_proto [14:57:32]json parsed OK: [14:57:32]protocol is kg_v1.0 [14:57:32]action value=print_text [14:57:32]process_action print_text [14:57:32]cmd_print_text [14:57:32]ExternCall_PrintAddStr [14:57:32]wPrintStart [14:57:32]Write to MH i2c: 01 00 00 10 03 13 [14:57:32]Write i2c OK [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: 01 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: 01 07 00 [14:57:32]MH_I2C_Read... [14:57:32]Read from MH i2c: 01 07 00 10 03 00 80 00 00 00 FF 0F A8 [14:57:32]RasterBufferAndPrint [14:57:32]line *****ТОВАРНЫЙ ЧЕК***** [14:57:32]line АЗС 6 [14:57:32]line Партнер нефть [14:57:32]line 02508201610067 [14:57:32]line Кассир : Сабырбек у. М. [14:57:32]line Счет N : (1)196440 [14:57:32]line 13.03.2024 14:51 [14:57:32]line ПРОДАЖА [14:57:32]line ТРК (МРК, ГНК): 51 [14:57:32]line Вид ГСМ : 2710194210 [14:57:32]line ДТ-К-5 [14:57:32]line 20.000 x 70.90 [14:57:32]line ИТОГ: 1418.00 [14:57:32]line Тип оплаты: Талоны: Партнер нефть [14:57:32]line 3776796 [14:57:32]line ______________________ [14:57:32]line (подпись) [14:57:32]written 0, free lines is 4095 [14:57:33]Write to MH i2c: 01 00 00 24 03 27 [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: 01 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: 01 07 00 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: 01 07 00 24 03 00 80 00 00 00 62 0E 1E [14:57:33]RasterBufferAndPrint [14:57:33]line [14:57:33]line [14:57:33]line [14:57:33]line [14:57:33]line [14:57:33]written 0, free lines is 3686 [14:57:33]process_action print_text done [14:57:33]requested_data is exist [14:57:33]produce_requested_data [14:57:33]requested_item fm.sn is exist - process it [14:57:33]wFMCommunicate request_size=4 [14:57:33]MH_SAM_APDU [14:57:33]CAPDU: 80 11 00 00 [14:57:33]Write to MH i2c: E2 08 00 2B 03 80 11 00 00 00 00 00 00 A8 [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:33]Read from MH i2c: E2 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: E2 17 00 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: E2 17 00 2B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F8 [14:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:57:33]wFMCommunicate OK [14:57:33]requested_item fd.num is exist - process it [14:57:33]SAM_PROTO_GetFieldsCounters [14:57:33]wFMCommunicate request_size=4 [14:57:33]MH_SAM_APDU [14:57:33]CAPDU: 80 13 00 00 [14:57:33]Write to MH i2c: E2 08 00 2C 03 80 13 00 00 00 00 00 00 AB [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:33]Read from MH i2c: E2 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: E2 62 00 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: E2 62 00 2C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D6 74 01 00 0E 04 04 00 48 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 03 [14:57:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D6 74 01 00 0E 04 04 00 48 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 [14:57:33]wFMCommunicate OK [14:57:33]SAM_PROTO_GetFieldsCounters done [14:57:33]requested_item shift.num is exist - process it [14:57:33]requested_item shift.opened is exist - process it [14:57:33]req_shift_opened [14:57:33]FM_GetShiftState [14:57:33]SAM_PROTO_GetShiftState [14:57:33]wFMCommunicate request_size=4 [14:57:33]MH_SAM_APDU [14:57:33]CAPDU: 80 13 01 00 [14:57:33]Write to MH i2c: E2 08 00 2D 03 80 13 01 00 00 00 00 00 AD [14:57:33]Write i2c OK [14:57:33]MH_I2C_Read... [14:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:33]Read from MH i2c: E2 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: E2 0E 00 [14:57:33]MH_I2C_Read... [14:57:33]Read from MH i2c: E2 0E 00 2D 03 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 92 [14:57:33]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:57:33]wFMCommunicate OK [14:57:33]SAM_PROTO_GetShiftState done [14:57:33]FM_GetShiftState done [14:57:33]req_shift_opened done [14:57:33]requested_item shift.open_date is exist - process it [14:57:33]req_shift_open_date [14:57:33]req_shift_open_date done [14:57:33]produce_requested_data done [14:57:33]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95446,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:57:33]process_action_free print_text [14:57:33]json_value_free [14:57:33]json_value_free done [14:57:33]process_json_proto returns [14:57:33]Send response to host [14:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95446,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:57:33]free response buf [14:57:33]execute_script done [14:57:33]execute_script returns [14:57:33]free content buf [14:57:33]Sock 7.Close socket [14:57:33]Sock 7.Thread stoped [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:47]accept exits with 9 [14:59:47]New connection [14:59:47]New thread 3066969444 created [14:59:47]Thread 3066826084 joined [14:59:47]Waiting for new connection... [14:59:47] Sock 9.Parse request [14:59:47]Sock 9.Check first char [14:59:47]Sock 9.First char is OK [14:59:47]request: POST /json_proto HTTP/1.0 [14:59:47]Method: POST [14:59:47]URL: /json_proto [14:59:47]Method is POST - this is cgi request [14:59:47]url: /json_proto [14:59:47]query_string will be loaded in cgi processing [14:59:47]execute_cgi json_proto POST (null) [14:59:47]execute_cgi path=json_proto method=POST [14:59:47]POST find Content-Length [14:59:47]Host: 172.17.62.67:8080 [14:59:47]Content-Length: 678 [14:59:47]Content-Type: application/json [14:59:47] [14:59:47]POST finish read [14:59:47]Found Content-Length = 678 [14:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:47]execute_script... [14:59:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 10.080, "sum" : 700.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:47]POST & json_proto [14:59:47]process_json_proto [14:59:47]json parsed OK: [14:59:47]protocol is kg_v1.0 [14:59:47]action value=close_receipt [14:59:47]process_action close_receipt [14:59:47]cmd_close_receipt [14:59:47]MH_GetDate [14:59:47]Write to MH i2c: F0 00 00 2E 03 20 [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: F0 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: F0 05 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: F0 05 00 2E 03 00 64 BF F1 65 9E [14:59:47]GetLastDocTimeStamp 1710341524 [14:59:47]current date 1710341988 [14:59:47]FM_GetShiftState [14:59:47]SAM_PROTO_GetShiftState [14:59:47]wFMCommunicate request_size=4 [14:59:47]MH_SAM_APDU [14:59:47]CAPDU: 80 13 01 00 [14:59:47]Write to MH i2c: E2 08 00 2F 03 80 13 01 00 00 00 00 00 AF [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:47]Read from MH i2c: E2 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 0E 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 0E 00 2F 03 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 94 [14:59:47]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:59:47]wFMCommunicate OK [14:59:47]SAM_PROTO_GetShiftState done [14:59:47]FM_GetShiftState done [14:59:47]opened in 1710288279 [14:59:47]opened+sec_in_day 1710374679 [14:59:47]quantity*price = 70056 [14:59:47]sum+1 = 70057 [14:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 142 13.03.2024 14:59 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95447 ФПД: 276509783878467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T145948&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95447&fm=276509783878467&tin=02508201610067®Number=0000000000090555&sum=70000 [14:59:48]StoreToDocumentArchive [14:59:48]shift 328 fd 95447 [14:59:48]save to /storage/0328/doc_00095447 [14:59:48]save last doc name /storage/0328/doc_00095447 to /storage/kkm_last_doc_name [14:59:48]save OK [14:59:48]Clear old archive folders... [14:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:48]tlvbuf is 01AEC860 [14:59:48]SAM_PROTO_ClearQueue [14:59:48]wFMCommunicate request_size=4 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 09 00 00 [14:59:48]Write to MH i2c: E2 08 00 3C 03 80 09 00 00 00 00 00 00 B1 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:48]Read from MH i2c: E2 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 3C 03 00 90 00 B3 [14:59:48]RAPDU: 90 00 [14:59:48]wFMCommunicate OK [14:59:48]SAM_PROTO_ClearQueue done [14:59:48]KKMCreateOFDPacket [14:59:48]OFDProtocolAddRootSTLVToBuf [14:59:48]FM_MakeSignedData [14:59:48]FM_MakeSignedData [14:59:48]SAM_PROTO_SignData [14:59:48]wFMCommunicate request_size=4 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 0D 01 02 [14:59:48]Write to MH i2c: E2 08 00 3D 03 80 0D 01 02 00 00 00 00 B9 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:48]Read from MH i2c: E2 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 3D 03 00 90 00 B4 [14:59:48]RAPDU: 90 00 [14:59:48]wFMCommunicate OK [14:59:48]wFMCommunicate request_size=255 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 8E 00 00 00 F4 03 04 00 64 BF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 74 01 00 35 04 06 00 FB [14:59:48]Write to MH i2c: E2 02 01 3E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 8E 00 00 00 F4 03 04 00 64 BF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 74 01 00 35 04 06 00 FB 00 00 7B [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:48]Read from MH i2c: E2 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 3E 03 00 90 00 B5 [14:59:48]RAPDU: 90 00 [14:59:48]wFMCommunicate OK [14:59:48]wFMCommunicate request_size=10 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 0D 02 02 05 7B F3 71 EB 43 [14:59:48]Write to MH i2c: E2 0D 00 3F 03 80 0D 02 02 05 00 7B F3 71 EB 43 00 00 D3 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:49]Read from MH i2c: E2 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 03 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [14:59:49]RAPDU: 90 00 [14:59:49]wFMCommunicate OK [14:59:49]wFMCommunicate request_size=4 [14:59:49]MH_SAM_APDU [14:59:49]CAPDU: 80 0D 03 02 [14:59:49]Write to MH i2c: E2 08 00 40 03 80 0D 03 02 00 00 00 00 BE [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:49]Read from MH i2c: E2 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 0B 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 0B 00 40 03 00 73 9D 7C FF C2 BB 31 E6 90 00 DE [14:59:49]RAPDU: 73 9D 7C FF C2 BB 31 E6 90 00 [14:59:49]wFMCommunicate OK [14:59:49]SAM_PROTO_SignData done [14:59:49]FM_MakeSignedData done [14:59:49]CreateOFDProtocolMessage [14:59:49]wFMCommunicate request_size=4 [14:59:49]MH_SAM_APDU [14:59:49]CAPDU: 80 11 00 00 [14:59:49]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:49]Read from MH i2c: E2 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 17 00 [14:59:49]MH_I2C_Read... [14:59:49]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 34 38 31 31 90 00 0E [14:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:59:49]wFMCommunicate OK [14:59:49]CreateOFDProtocolMessage done [14:59:49]OFDSenderStorePacket 95447 [14:59:49]StoreOFDPacket docnum=95447 [14:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C8 4A 07 01 D6 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 8E 00 00 00 F4 03 04 00 64 BF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 74 01 00 35 04 06 00 FB 7B F3 71 EB 43 73 9D 7C FF C2 BB 31 E6 [14:59:49]CheckFolder [14:59:49]dirname=/storage/ofd_packets [14:59:49]CheckFolder done [14:59:49]ProducePacketName [14:59:49]name=ofd_packets/00095447 [14:59:49]NVStorageSaveData ofd_packets/00095447 [14:59:49]File name is /storage/ofd_packets/00095447 [14:59:49]Write 301 bytes [14:59:49]NVStorageSaveData done [14:59:49]OFDSenderStorePacket done [14:59:49]KKMCreateOFDPacket done [14:59:49]NVStorageSaveData kkm_last_timestamp [14:59:49]File name is /storage/kkm_last_timestamp [14:59:49]Write 4 bytes [14:59:49]NVStorageSaveData done [14:59:49]ExternCall_PrintAddStr [14:59:49]wPrintStart [14:59:49]Write to MH i2c: 01 00 00 42 03 45 [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 07 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 07 00 42 03 00 80 00 00 00 FF 0F DA [14:59:49]RasterBufferAndPrint [14:59:49]line Счет N : (1)196441 [14:59:49]line ИНН: 02508201610067 [14:59:49]line Контрольно-Кассовый Чек [14:59:49]line ПРОДАЖА [14:59:49]line ТРК (МРК, ГНК) : 11 [14:59:49]line Товар: 2710124500 [14:59:49]line Аи-95-К-5 [14:59:49]line 10.080 * 69.50 [14:59:49]line = 700.56 [14:59:49]line НДС 12% НСП 1% [14:59:49]line > о реализуемом товаре [14:59:49]line ОКРУГЛЕНИЕ: -0.56 [14:59:49]line ИТОГО: 700.00 [14:59:49]line Внесено: 700.00 [14:59:49]line СДАЧА: 0.00 [14:59:49]line НСП 1% : 6.20 [14:59:49]line НДС 12% : 74.40 [14:59:49]line Наличными: 700.00 [14:59:49]line Безнал.: 0.00 [14:59:49]line Место: АЗС № 6 "Партнер Нефть" [14:59:49]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [14:59:49]line СНО: Общий режим [14:59:49]line Чек 142 13.03.2024 14:59 [14:59:49]line Смена: 328 ФФД: 1.0 [14:59:49]line ЗНМ: 0300000009 [14:59:49]line РНМ: 0000000000090555 [14:59:49]line Версия ККМ: 001 [14:59:49]line ФМ: 0000000000874811 [14:59:49]line ФД: 95447 [14:59:49]line ФПД: 276509783878467 [14:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T145948&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95447&fm=276509783878467&tin=02508201610067®Number=0000000000090555&sum=70000 [14:59:49]OFD Sender: Processing packet 95447 [packets to send 30, broken 29] [14:59:49]ProducePacketName [14:59:49]name=ofd_packets/00095447 [14:59:49]OFD Sender: To server: pG, [14:59:49]CommunicateWithHost lk.salyk.kg:30040 [14:59:49]ConnectInit lk.salyk.kg [14:59:49]written 0, free lines is 4095 [14:59:49]Connected sock=10 [14:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 C8 4A 07 01 D6 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 60 27 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 A8 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 10 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 8E 00 00 00 F4 03 04 00 64 BF F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 74 01 00 35 04 06 00 FB 7B F3 71 EB 43 73 9D 7C FF C2 BB 31 E6 [14:59:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 5C 1B 47 00 A5 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D7 74 01 00 F4 03 04 00 B7 6A F1 65 B6 04 01 00 00 7D F0 A8 D4 0B 88 D3 CE [14:59:49]CommunicateWithHost err = 0 [14:59:49]CheckOFDResponse [14:59:49]1017 (14) - 77093643461234 [14:59:49]1041 (16) - 0000000000874811 [14:59:49]1040 (4) - 95447 [14:59:49]1012 (4) - 13.03.2024 08:58 [14:59:49]1206 (1) - 0 [14:59:49]OFD Sender: Remove packet 95447 [14:59:49]ProducePacketName [14:59:49]name=ofd_packets/00095447 [14:59:49]NVStorageDeleteData [14:59:49]Write to MH i2c: 01 00 00 6D 03 70 [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 07 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 07 00 6D 03 00 80 00 00 00 49 0D 4D [14:59:49]RasterBufferAndPrint [14:59:49]line [14:59:49]line [14:59:49]line [14:59:49]line [14:59:49]line [14:59:49]written 0, free lines is 3407 [14:59:49]process_action close_receipt done [14:59:49]requested_data is exist [14:59:49]produce_requested_data [14:59:49]requested_item fm.sn is exist - process it [14:59:49]wFMCommunicate request_size=4 [14:59:49]MH_SAM_APDU [14:59:49]CAPDU: 80 11 00 00 [14:59:49]Write to MH i2c: E2 08 00 74 03 80 11 00 00 00 00 00 00 F1 [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:50]Read from MH i2c: E2 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 17 00 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 17 00 74 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 41 [14:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [14:59:50]wFMCommunicate OK [14:59:50]requested_item fd.num is exist - process it [14:59:50]SAM_PROTO_GetFieldsCounters [14:59:50]wFMCommunicate request_size=4 [14:59:50]MH_SAM_APDU [14:59:50]CAPDU: 80 13 00 00 [14:59:50]Write to MH i2c: E2 08 00 75 03 80 13 00 00 00 00 00 00 F4 [14:59:50]Write i2c OK [14:59:50]MH_I2C_Read... [14:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:50]Read from MH i2c: E2 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 62 00 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 62 00 75 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D7 74 01 00 0E 04 04 00 48 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 50 [14:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D7 74 01 00 0E 04 04 00 48 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 [14:59:50]wFMCommunicate OK [14:59:50]SAM_PROTO_GetFieldsCounters done [14:59:50]requested_item shift.num is exist - process it [14:59:50]requested_item shift.opened is exist - process it [14:59:50]req_shift_opened [14:59:50]FM_GetShiftState [14:59:50]SAM_PROTO_GetShiftState [14:59:50]wFMCommunicate request_size=4 [14:59:50]MH_SAM_APDU [14:59:50]CAPDU: 80 13 01 00 [14:59:50]Write to MH i2c: E2 08 00 76 03 80 13 01 00 00 00 00 00 F6 [14:59:50]Write i2c OK [14:59:50]MH_I2C_Read... [14:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:50]Read from MH i2c: E2 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 0E 00 [14:59:50]MH_I2C_Read... [14:59:50]Read from MH i2c: E2 0E 00 76 03 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 DB [14:59:50]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [14:59:50]wFMCommunicate OK [14:59:50]SAM_PROTO_GetShiftState done [14:59:50]FM_GetShiftState done [14:59:50]req_shift_opened done [14:59:50]requested_item shift.open_date is exist - process it [14:59:50]req_shift_open_date [14:59:50]req_shift_open_date done [14:59:50]produce_requested_data done [14:59:50]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95447,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [14:59:50]process_action_free close_receipt [14:59:50]json_value_free [14:59:50]json_value_free done [14:59:50]process_json_proto returns [14:59:50]Send response to host [14:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95447,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [14:59:50]free response buf [14:59:50]execute_script done [14:59:50]execute_script returns [14:59:50]free content buf [14:59:50]Sock 9.Close socket [14:59:50]Sock 9.Thread stoped [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]accept exits with 7 [15:03:20]New connection [15:03:20]New thread 3066826084 created [15:03:20]Thread 3066969444 joined [15:03:20]Waiting for new connection... [15:03:20] Sock 7.Parse request [15:03:20]Sock 7.Check first char [15:03:20]Sock 7.First char is OK [15:03:20]request: POST /json_proto HTTP/1.0 [15:03:20]Method: POST [15:03:20]URL: /json_proto [15:03:20]Method is POST - this is cgi request [15:03:20]url: /json_proto [15:03:20]query_string will be loaded in cgi processing [15:03:20]execute_cgi json_proto POST (null) [15:03:20]execute_cgi path=json_proto method=POST [15:03:20]POST find Content-Length [15:03:20]Host: 172.17.62.67:8080 [15:03:20]Content-Length: 1201 [15:03:20]Content-Type: application/json [15:03:20] [15:03:20]POST finish read [15:03:20]Found Content-Length = 1201 [15:03:20]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196442\u000A13.03.2024 14:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2085.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\u000A89311\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:20]execute_script... [15:03:20]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196442\u000A13.03.2024 14:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 69.50\u000A\u0418\u0422\u041E\u0413: 2085.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\u000A89311\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:20]POST & json_proto [15:03:20]process_json_proto [15:03:20]json parsed OK: [15:03:20]protocol is kg_v1.0 [15:03:20]action value=print_text [15:03:20]process_action print_text [15:03:20]cmd_print_text [15:03:20]ExternCall_PrintAddStr [15:03:20]wPrintStart [15:03:20]Write to MH i2c: 01 00 00 77 03 7A [15:03:20]Write i2c OK [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: 01 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: 01 07 00 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: 01 07 00 77 03 00 80 00 00 00 FF 0F 0F [15:03:20]RasterBufferAndPrint [15:03:20]line *****ТОВАРНЫЙ ЧЕК***** [15:03:20]line АЗС 6 [15:03:20]line Партнер нефть [15:03:20]line 02508201610067 [15:03:20]line Кассир : Сабырбек у. М. [15:03:20]line Счет N : (1)196442 [15:03:20]line 13.03.2024 14:57 [15:03:20]line ПРОДАЖА [15:03:20]line ТРК (МРК, ГНК): 21 [15:03:20]line Вид ГСМ : 2710124500 [15:03:20]line Аи-95-К-5 [15:03:20]line 30.000 x 69.50 [15:03:20]line ИТОГ: 2085.00 [15:03:20]line Тип оплаты: Талоны: Топливная Карта [15:03:20]line 89311 [15:03:20]line ______________________ [15:03:20]line (подпись) [15:03:20]written 0, free lines is 4095 [15:03:20]Write to MH i2c: 01 00 00 8B 03 8E [15:03:20]Write i2c OK [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: 01 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: 01 07 00 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: 01 07 00 8B 03 00 80 00 00 00 64 0E 87 [15:03:20]RasterBufferAndPrint [15:03:20]line [15:03:20]line [15:03:20]line [15:03:20]line [15:03:20]line [15:03:20]written 0, free lines is 3688 [15:03:20]process_action print_text done [15:03:20]requested_data is exist [15:03:20]produce_requested_data [15:03:20]requested_item fm.sn is exist - process it [15:03:20]wFMCommunicate request_size=4 [15:03:20]MH_SAM_APDU [15:03:20]CAPDU: 80 11 00 00 [15:03:20]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [15:03:20]Write i2c OK [15:03:20]MH_I2C_Read... [15:03:20]OFD Sender: No OFD packet to send [15:03:20]Read from MH i2c: E2 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: E2 17 00 [15:03:20]MH_I2C_Read... [15:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:20]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 5F [15:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:03:20]wFMCommunicate OK [15:03:20]requested_item fd.num is exist - process it [15:03:20]SAM_PROTO_GetFieldsCounters [15:03:20]wFMCommunicate request_size=4 [15:03:20]MH_SAM_APDU [15:03:20]CAPDU: 80 13 00 00 [15:03:20]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [15:03:20]Write i2c OK [15:03:20]MH_I2C_Read... [15:03:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:20]Read from MH i2c: E2 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: E2 62 00 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: E2 62 00 93 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D7 74 01 00 0E 04 04 00 48 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 6E [15:03:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D7 74 01 00 0E 04 04 00 48 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 [15:03:20]wFMCommunicate OK [15:03:20]SAM_PROTO_GetFieldsCounters done [15:03:20]requested_item shift.num is exist - process it [15:03:20]requested_item shift.opened is exist - process it [15:03:20]req_shift_opened [15:03:20]FM_GetShiftState [15:03:20]SAM_PROTO_GetShiftState [15:03:20]wFMCommunicate request_size=4 [15:03:20]MH_SAM_APDU [15:03:20]CAPDU: 80 13 01 00 [15:03:20]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [15:03:20]Write i2c OK [15:03:20]MH_I2C_Read... [15:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:20]Read from MH i2c: E2 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: E2 0E 00 [15:03:20]MH_I2C_Read... [15:03:20]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F9 [15:03:20]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:03:20]wFMCommunicate OK [15:03:20]SAM_PROTO_GetShiftState done [15:03:20]FM_GetShiftState done [15:03:20]req_shift_opened done [15:03:20]requested_item shift.open_date is exist - process it [15:03:20]req_shift_open_date [15:03:20]req_shift_open_date done [15:03:20]produce_requested_data done [15:03:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95447,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:03:20]process_action_free print_text [15:03:20]json_value_free [15:03:20]json_value_free done [15:03:20]process_json_proto returns [15:03:20]Send response to host [15:03:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95447,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:03:20]free response buf [15:03:20]execute_script done [15:03:20]execute_script returns [15:03:20]free content buf [15:03:20]Sock 7.Close socket [15:03:20]Sock 7.Thread stoped [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]accept exits with 10 [15:04:45]New connection [15:04:45]New thread 3066969444 created [15:04:45]Thread 3066826084 joined [15:04:45]Waiting for new connection... [15:04:45] Sock 10.Parse request [15:04:45]Sock 10.Check first char [15:04:45]Sock 10.First char is OK [15:04:45]request: POST /json_proto HTTP/1.0 [15:04:45]Method: POST [15:04:45]URL: /json_proto [15:04:45]Method is POST - this is cgi request [15:04:45]url: /json_proto [15:04:45]query_string will be loaded in cgi processing [15:04:45]execute_cgi json_proto POST (null) [15:04:45]execute_cgi path=json_proto method=POST [15:04:45]POST find Content-Length [15:04:45]Host: 172.17.62.67:8080 [15:04:45]Content-Length: 671 [15:04:45]Content-Type: application/json [15:04:45] [15:04:45]POST finish read [15:04:45]Found Content-Length = 671 [15:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.960, "sum" : 700.34, "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:04:45]execute_script... [15:04:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 63.90, "quantity" : 10.960, "sum" : 700.34, "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:04:45]POST & json_proto [15:04:45]process_json_proto [15:04:45]json parsed OK: [15:04:45]protocol is kg_v1.0 [15:04:45]action value=close_receipt [15:04:45]process_action close_receipt [15:04:45]cmd_close_receipt [15:04:45]MH_GetDate [15:04:45]Write to MH i2c: F0 00 00 95 03 87 [15:04:45]Write i2c OK [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: F0 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: F0 05 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: F0 05 00 95 03 00 8E C0 F1 65 30 [15:04:45]GetLastDocTimeStamp 1710341988 [15:04:45]current date 1710342286 [15:04:45]FM_GetShiftState [15:04:45]SAM_PROTO_GetShiftState [15:04:45]wFMCommunicate request_size=4 [15:04:45]MH_SAM_APDU [15:04:45]CAPDU: 80 13 01 00 [15:04:45]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [15:04:45]Write i2c OK [15:04:45]MH_I2C_Read... [15:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:45]Read from MH i2c: E2 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 0E 00 [15:04:45]MH_I2C_Read... [15:04:45]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 FB [15:04:45]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:04:45]wFMCommunicate OK [15:04:45]SAM_PROTO_GetShiftState done [15:04:45]FM_GetShiftState done [15:04:45]opened in 1710288279 [15:04:45]opened+sec_in_day 1710374679 [15:04:45]quantity*price = 70034 [15:04:45]sum+1 = 70035 [15:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 143 13.03.2024 15:04 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95448 ФПД: 249915782923917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T150446&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95448&fm=249915782923917&tin=02508201610067®Number=0000000000090555&sum=70000 [15:04:46]StoreToDocumentArchive [15:04:46]shift 328 fd 95448 [15:04:46]save to /storage/0328/doc_00095448 [15:04:46]save last doc name /storage/0328/doc_00095448 to /storage/kkm_last_doc_name [15:04:46]save OK [15:04:46]Clear old archive folders... [15:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:04:46]tlvbuf is 01AB71F0 [15:04:46]SAM_PROTO_ClearQueue [15:04:46]wFMCommunicate request_size=4 [15:04:46]MH_SAM_APDU [15:04:46]CAPDU: 80 09 00 00 [15:04:46]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [15:04:46]Write i2c OK [15:04:46]MH_I2C_Read... [15:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:46]Read from MH i2c: E2 [15:04:46]MH_I2C_Read... [15:04:46]Read from MH i2c: E2 03 00 [15:04:46]MH_I2C_Read... [15:04:46]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [15:04:46]RAPDU: 90 00 [15:04:46]wFMCommunicate OK [15:04:46]SAM_PROTO_ClearQueue done [15:04:46]KKMCreateOFDPacket [15:04:46]OFDProtocolAddRootSTLVToBuf [15:04:46]FM_MakeSignedData [15:04:46]FM_MakeSignedData [15:04:46]SAM_PROTO_SignData [15:04:46]wFMCommunicate request_size=4 [15:04:46]MH_SAM_APDU [15:04:46]CAPDU: 80 0D 01 02 [15:04:46]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [15:04:46]Write i2c OK [15:04:46]MH_I2C_Read... [15:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:46]Read from MH i2c: E2 [15:04:46]MH_I2C_Read... [15:04:46]Read from MH i2c: E2 03 00 [15:04:46]MH_I2C_Read... [15:04:46]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [15:04:46]RAPDU: 90 00 [15:04:46]wFMCommunicate OK [15:04:46]wFMCommunicate request_size=255 [15:04:46]MH_SAM_APDU [15:04:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 8E C0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 74 01 00 35 04 06 00 [15:04:46]Write to MH i2c: E2 02 01 A5 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 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 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 8E C0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 74 01 00 35 04 06 00 00 00 D4 [15:04:46]Write i2c OK [15:04:46]MH_I2C_Read... [15:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:46]Read from MH i2c: E2 [15:04:46]MH_I2C_Read... [15:04:46]Read from MH i2c: E2 03 00 [15:04:46]MH_I2C_Read... [15:04:46]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [15:04:46]RAPDU: 90 00 [15:04:46]wFMCommunicate OK [15:04:46]wFMCommunicate request_size=11 [15:04:46]MH_SAM_APDU [15:04:46]CAPDU: 80 0D 02 02 06 E3 4C 0D 77 06 8D [15:04:46]Write to MH i2c: E2 0E 00 A6 03 80 0D 02 02 06 00 E3 4C 0D 77 06 8D 00 00 75 [15:04:46]Write i2c OK [15:04:46]MH_I2C_Read... [15:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:47]Read from MH i2c: E2 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: E2 03 00 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [15:04:47]RAPDU: 90 00 [15:04:47]wFMCommunicate OK [15:04:47]wFMCommunicate request_size=4 [15:04:47]MH_SAM_APDU [15:04:47]CAPDU: 80 0D 03 02 [15:04:47]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [15:04:47]Write i2c OK [15:04:47]MH_I2C_Read... [15:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:47]Read from MH i2c: E2 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: E2 0B 00 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: E2 0B 00 A7 03 00 41 26 16 96 7A F4 9C 7B 90 00 BE [15:04:47]RAPDU: 41 26 16 96 7A F4 9C 7B 90 00 [15:04:47]wFMCommunicate OK [15:04:47]SAM_PROTO_SignData done [15:04:47]FM_MakeSignedData done [15:04:47]CreateOFDProtocolMessage [15:04:47]wFMCommunicate request_size=4 [15:04:47]MH_SAM_APDU [15:04:47]CAPDU: 80 11 00 00 [15:04:47]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [15:04:47]Write i2c OK [15:04:47]MH_I2C_Read... [15:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:47]Read from MH i2c: E2 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: E2 17 00 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 75 [15:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:04:47]wFMCommunicate OK [15:04:47]CreateOFDProtocolMessage done [15:04:47]OFDSenderStorePacket 95448 [15:04:47]StoreOFDPacket docnum=95448 [15:04:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 AF 6E 08 01 3A D8 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 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 8E C0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 74 01 00 35 04 06 00 E3 4C 0D 77 06 8D 41 26 16 96 7A F4 9C 7B [15:04:47]CheckFolder [15:04:47]dirname=/storage/ofd_packets [15:04:47]CheckFolder done [15:04:47]ProducePacketName [15:04:47]name=ofd_packets/00095448 [15:04:47]NVStorageSaveData ofd_packets/00095448 [15:04:47]File name is /storage/ofd_packets/00095448 [15:04:47]Write 302 bytes [15:04:47]NVStorageSaveData done [15:04:47]OFDSenderStorePacket done [15:04:47]KKMCreateOFDPacket done [15:04:47]NVStorageSaveData kkm_last_timestamp [15:04:47]File name is /storage/kkm_last_timestamp [15:04:47]Write 4 bytes [15:04:47]NVStorageSaveData done [15:04:47]ExternCall_PrintAddStr [15:04:47]wPrintStart [15:04:47]Write to MH i2c: 01 00 00 A9 03 AC [15:04:47]Write i2c OK [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: 01 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: 01 07 00 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: 01 07 00 A9 03 00 80 00 00 00 FF 0F 41 [15:04:47]RasterBufferAndPrint [15:04:47]line Счет N : (1)196444 [15:04:47]line ИНН: 02508201610067 [15:04:47]line Контрольно-Кассовый Чек [15:04:47]line ПРОДАЖА [15:04:47]line ТРК (МРК, ГНК) : 13 [15:04:47]line Товар: 2710124130 [15:04:47]line SUPER 92-К-5 [15:04:47]line 10.960 * 63.90 [15:04:47]line = 700.34 [15:04:47]line НДС 12% НСП 1% [15:04:47]line > о реализуемом товаре [15:04:47]line ОКРУГЛЕНИЕ: -0.34 [15:04:47]line ИТОГО: 700.00 [15:04:47]line Внесено: 700.00 [15:04:47]line СДАЧА: 0.00 [15:04:47]line НСП 1% : 6.20 [15:04:47]line НДС 12% : 74.37 [15:04:47]line Наличными: 700.00 [15:04:47]line Безнал.: 0.00 [15:04:47]line Место: АЗС № 6 "Партнер Нефть" [15:04:47]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:04:47]line СНО: Общий режим [15:04:47]line Чек 143 13.03.2024 15:04 [15:04:47]line Смена: 328 ФФД: 1.0 [15:04:47]line ЗНМ: 0300000009 [15:04:47]line РНМ: 0000000000090555 [15:04:47]line Версия ККМ: 001 [15:04:47]line ФМ: 0000000000874811 [15:04:47]line ФД: 95448 [15:04:47]line ФПД: 249915782923917 [15:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T150446&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95448&fm=249915782923917&tin=02508201610067®Number=0000000000090555&sum=70000 [15:04:47]OFD Sender: Processing packet 95448 [packets to send 30, broken 29] [15:04:47]ProducePacketName [15:04:47]name=ofd_packets/00095448 [15:04:47]OFD Sender: To server: pG, [15:04:47]CommunicateWithHost lk.salyk.kg:30040 [15:04:47]ConnectInit lk.salyk.kg [15:04:47]written 0, free lines is 4095 [15:04:47]Connected sock=9 [15:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 01 00 00 AF 6E 08 01 3A D8 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 D0 2A 00 00 00 00 00 37 04 06 00 F6 18 00 00 00 00 13 04 06 00 92 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 8E C0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 74 01 00 35 04 06 00 E3 4C 0D 77 06 8D 41 26 16 96 7A F4 9C 7B [15:04:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 AA E2 47 00 13 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D8 74 01 00 F4 03 04 00 E1 6B F1 65 B6 04 01 00 00 01 8B EE 09 63 8F A6 CB [15:04:47]CommunicateWithHost err = 0 [15:04:47]CheckOFDResponse [15:04:47]1017 (14) - 77093643461234 [15:04:47]1041 (16) - 0000000000874811 [15:04:47]1040 (4) - 95448 [15:04:47]1012 (4) - 13.03.2024 09:03 [15:04:47]1206 (1) - 0 [15:04:47]OFD Sender: Remove packet 95448 [15:04:47]ProducePacketName [15:04:47]name=ofd_packets/00095448 [15:04:47]NVStorageDeleteData [15:04:47]Write to MH i2c: 01 00 00 D4 03 D7 [15:04:47]Write i2c OK [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: 01 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: 01 07 00 [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: 01 07 00 D4 03 00 80 00 00 00 4C 0D B7 [15:04:47]RasterBufferAndPrint [15:04:47]line [15:04:47]line [15:04:47]line [15:04:47]line [15:04:47]line [15:04:47]written 0, free lines is 3410 [15:04:47]process_action close_receipt done [15:04:47]requested_data is exist [15:04:47]produce_requested_data [15:04:47]requested_item fm.sn is exist - process it [15:04:47]wFMCommunicate request_size=4 [15:04:47]MH_SAM_APDU [15:04:47]CAPDU: 80 11 00 00 [15:04:47]Write to MH i2c: E2 08 00 DB 03 80 11 00 00 00 00 00 00 58 [15:04:47]Write i2c OK [15:04:47]MH_I2C_Read... [15:04:47]Read from MH i2c: E2 [15:04:47]MH_I2C_Read... [15:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:48]Read from MH i2c: E2 17 00 [15:04:48]MH_I2C_Read... [15:04:48]Read from MH i2c: E2 17 00 DB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A8 [15:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:04:48]wFMCommunicate OK [15:04:48]requested_item fd.num is exist - process it [15:04:48]SAM_PROTO_GetFieldsCounters [15:04:48]wFMCommunicate request_size=4 [15:04:48]MH_SAM_APDU [15:04:48]CAPDU: 80 13 00 00 [15:04:48]Write to MH i2c: E2 08 00 DC 03 80 13 00 00 00 00 00 00 5B [15:04:48]Write i2c OK [15:04:48]MH_I2C_Read... [15:04:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:48]Read from MH i2c: E2 [15:04:48]MH_I2C_Read... [15:04:48]Read from MH i2c: E2 62 00 [15:04:48]MH_I2C_Read... [15:04:48]Read from MH i2c: E2 62 00 DC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D8 74 01 00 0E 04 04 00 48 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 BB [15:04:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D8 74 01 00 0E 04 04 00 48 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 [15:04:48]wFMCommunicate OK [15:04:48]SAM_PROTO_GetFieldsCounters done [15:04:48]requested_item shift.num is exist - process it [15:04:48]requested_item shift.opened is exist - process it [15:04:48]req_shift_opened [15:04:48]FM_GetShiftState [15:04:48]SAM_PROTO_GetShiftState [15:04:48]wFMCommunicate request_size=4 [15:04:48]MH_SAM_APDU [15:04:48]CAPDU: 80 13 01 00 [15:04:48]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [15:04:48]Write i2c OK [15:04:48]MH_I2C_Read... [15:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:48]Read from MH i2c: E2 [15:04:48]MH_I2C_Read... [15:04:48]Read from MH i2c: E2 0E 00 [15:04:48]MH_I2C_Read... [15:04:48]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 42 [15:04:48]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:04:48]wFMCommunicate OK [15:04:48]SAM_PROTO_GetShiftState done [15:04:48]FM_GetShiftState done [15:04:48]req_shift_opened done [15:04:48]requested_item shift.open_date is exist - process it [15:04:48]req_shift_open_date [15:04:48]req_shift_open_date done [15:04:48]produce_requested_data done [15:04:48]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95448,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:04:48]process_action_free close_receipt [15:04:48]json_value_free [15:04:48]json_value_free done [15:04:48]process_json_proto returns [15:04:48]Send response to host [15:04:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95448,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:04:48]free response buf [15:04:48]execute_script done [15:04:48]execute_script returns [15:04:48]free content buf [15:04:48]Sock 10.Close socket [15:04:48]Sock 10.Thread stoped [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:17]accept exits with 7 [15:05:17]New connection [15:05:17]New thread 3066826084 created [15:05:17]Thread 3066969444 joined [15:05:17]Waiting for new connection... [15:05:17] Sock 7.Parse request [15:05:17]Sock 7.Check first char [15:05:17]Sock 7.First char is OK [15:05:17]request: POST /json_proto HTTP/1.0 [15:05:17]Method: POST [15:05:17]URL: /json_proto [15:05:17]Method is POST - this is cgi request [15:05:17]url: /json_proto [15:05:17]query_string will be loaded in cgi processing [15:05:17]execute_cgi json_proto POST (null) [15:05:17]execute_cgi path=json_proto method=POST [15:05:17]POST find Content-Length [15:05:17]Host: 172.17.62.67:8080 [15:05:17]Content-Length: 770 [15:05:17]Content-Type: application/json [15:05:17] [15:05:17]POST finish read [15:05:17]Found Content-Length = 770 [15:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Cash2U", "payments": [ { "type": 1, "sum" : 3000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:17]execute_script... [15:05:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 69.50, "quantity" : 43.170, "sum" : 3000.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Cash2U", "payments": [ { "type": 1, "sum" : 3000.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:17]POST & json_proto [15:05:17]process_json_proto [15:05:17]json parsed OK: [15:05:17]protocol is kg_v1.0 [15:05:17]action value=close_receipt [15:05:17]process_action close_receipt [15:05:17]cmd_close_receipt [15:05:17]MH_GetDate [15:05:17]Write to MH i2c: F0 00 00 DE 03 D0 [15:05:17]Write i2c OK [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 05 00 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 05 00 DE 03 00 AF C0 F1 65 9A [15:05:17]GetLastDocTimeStamp 1710342286 [15:05:17]current date 1710342319 [15:05:17]FM_GetShiftState [15:05:17]SAM_PROTO_GetShiftState [15:05:17]wFMCommunicate request_size=4 [15:05:17]MH_SAM_APDU [15:05:17]CAPDU: 80 13 01 00 [15:05:17]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [15:05:17]Write i2c OK [15:05:17]MH_I2C_Read... [15:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:17]Read from MH i2c: E2 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: E2 0E 00 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 44 [15:05:17]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:05:17]wFMCommunicate OK [15:05:17]SAM_PROTO_GetShiftState done [15:05:17]FM_GetShiftState done [15:05:17]opened in 1710288279 [15:05:17]opened+sec_in_day 1710374679 [15:05:17]quantity*price = 300031 [15:05:17]sum+1 = 300033 [15:05:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.32 НСП 1% : 26.55 НДС 12% : 318.62 Наличными: 0.00 Безнал.: 3000.32 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 144 13.03.2024 15:05 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Cash2U ФМ: 0000000000874811 ФД: 95449 ФПД: 9458338035725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T150519&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95449&fm=9458338035725&tin=02508201610067®Number=0000000000090555&sum=300032 [15:05:19]StoreToDocumentArchive [15:05:19]shift 328 fd 95449 [15:05:19]save to /storage/0328/doc_00095449 [15:05:19]save last doc name /storage/0328/doc_00095449 to /storage/kkm_last_doc_name [15:05:19]save OK [15:05:19]Clear old archive folders... [15:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:19]tlvbuf is 01AB7060 [15:05:19]SAM_PROTO_ClearQueue [15:05:19]wFMCommunicate request_size=4 [15:05:19]MH_SAM_APDU [15:05:19]CAPDU: 80 09 00 00 [15:05:19]Write to MH i2c: E2 08 00 EC 03 80 09 00 00 00 00 00 00 61 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [15:05:19]RAPDU: 90 00 [15:05:19]wFMCommunicate OK [15:05:19]SAM_PROTO_ClearQueue done [15:05:19]KKMCreateOFDPacket [15:05:19]OFDProtocolAddRootSTLVToBuf [15:05:19]FM_MakeSignedData [15:05:19]FM_MakeSignedData [15:05:19]SAM_PROTO_SignData [15:05:19]wFMCommunicate request_size=4 [15:05:19]MH_SAM_APDU [15:05:19]CAPDU: 80 0D 01 02 [15:05:19]Write to MH i2c: E2 08 00 ED 03 80 0D 01 02 00 00 00 00 69 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [15:05:19]RAPDU: 90 00 [15:05:19]wFMCommunicate OK [15:05:19]wFMCommunicate request_size=255 [15:05:19]MH_SAM_APDU [15:05:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 AF C0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 74 01 00 35 04 06 00 08 [15:05:19]Write to MH i2c: E2 02 01 EE 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 AF C0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 74 01 00 35 04 06 00 08 00 00 15 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [15:05:19]RAPDU: 90 00 [15:05:19]wFMCommunicate OK [15:05:19]wFMCommunicate request_size=10 [15:05:19]MH_SAM_APDU [15:05:19]CAPDU: 80 0D 02 02 05 9A 30 E0 F8 0D [15:05:19]Write to MH i2c: E2 0D 00 EF 03 80 0D 02 02 05 00 9A 30 E0 F8 0D 00 00 25 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [15:05:19]RAPDU: 90 00 [15:05:19]wFMCommunicate OK [15:05:19]wFMCommunicate request_size=4 [15:05:19]MH_SAM_APDU [15:05:19]CAPDU: 80 0D 03 02 [15:05:19]Write to MH i2c: E2 08 00 F0 03 80 0D 03 02 00 00 00 00 6E [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 0B 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 0B 00 F0 03 00 85 C6 CB 07 7E 8C 4E BB 90 00 9F [15:05:19]RAPDU: 85 C6 CB 07 7E 8C 4E BB 90 00 [15:05:19]wFMCommunicate OK [15:05:19]SAM_PROTO_SignData done [15:05:19]FM_MakeSignedData done [15:05:19]CreateOFDProtocolMessage [15:05:19]wFMCommunicate request_size=4 [15:05:19]MH_SAM_APDU [15:05:19]CAPDU: 80 11 00 00 [15:05:19]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 17 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BE [15:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:05:19]wFMCommunicate OK [15:05:19]CreateOFDProtocolMessage done [15:05:19]OFDSenderStorePacket 95449 [15:05:19]StoreOFDPacket docnum=95449 [15:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 00 30 07 01 3D 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 AF C0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 74 01 00 35 04 06 00 08 9A 30 E0 F8 0D 85 C6 CB 07 7E 8C 4E BB [15:05:19]CheckFolder [15:05:19]dirname=/storage/ofd_packets [15:05:19]CheckFolder done [15:05:19]ProducePacketName [15:05:19]name=ofd_packets/00095449 [15:05:19]NVStorageSaveData ofd_packets/00095449 [15:05:19]File name is /storage/ofd_packets/00095449 [15:05:19]Write 301 bytes [15:05:19]NVStorageSaveData done [15:05:19]OFDSenderStorePacket done [15:05:19]KKMCreateOFDPacket done [15:05:19]NVStorageSaveData kkm_last_timestamp [15:05:19]File name is /storage/kkm_last_timestamp [15:05:19]Write 4 bytes [15:05:19]NVStorageSaveData done [15:05:19]ExternCall_PrintAddStr [15:05:19]wPrintStart [15:05:19]Write to MH i2c: 01 00 00 F2 03 F5 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 07 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 07 00 F2 03 00 80 00 00 00 FF 0F 8A [15:05:19]RasterBufferAndPrint [15:05:19]line Счет N : (1)196443 [15:05:19]line ИНН: 02508201610067 [15:05:19]line Контрольно-Кассовый Чек [15:05:19]line ПРОДАЖА [15:05:19]line ТРК (МРК, ГНК) : 41 [15:05:19]line Товар: 2710124500 [15:05:19]line Аи-95-К-5 [15:05:19]line 43.170 * 69.50 [15:05:19]line = 3000.32 [15:05:19]line НДС 12% НСП 1% [15:05:19]line > о реализуемом товаре [15:05:19]line ИТОГО: 3000.32 [15:05:19]line НСП 1% : 26.55 [15:05:19]line НДС 12% : 318.62 [15:05:19]line Наличными: 0.00 [15:05:19]line Безнал.: 3000.32 [15:05:19]line Место: АЗС № 6 "Партнер Нефть" [15:05:19]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:05:19]line СНО: Общий режим [15:05:19]line Чек 144 13.03.2024 15:05 [15:05:19]line Смена: 328 ФФД: 1.0 [15:05:19]line ЗНМ: 0300000009 [15:05:19]line РНМ: 0000000000090555 [15:05:19]line Версия ККМ: 001 [15:05:19]line Платежная система: Cash2U [15:05:19]line ФМ: 0000000000874811 [15:05:19]line ФД: 95449 [15:05:19]line ФПД: 9458338035725 [15:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T150519&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95449&fm=9458338035725&tin=02508201610067®Number=0000000000090555&sum=300032 [15:05:19]OFD Sender: Processing packet 95449 [packets to send 30, broken 29] [15:05:19]ProducePacketName [15:05:19]name=ofd_packets/00095449 [15:05:19]OFD Sender: To server: pG, [15:05:19]CommunicateWithHost lk.salyk.kg:30040 [15:05:19]ConnectInit lk.salyk.kg [15:05:19]written 0, free lines is 4095 [15:05:20]Connected sock=10 [15:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 00 30 07 01 3D 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A2 A8 00 00 00 00 00 37 04 06 00 26 1B 00 00 00 00 13 04 06 00 00 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 AF C0 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 74 01 00 35 04 06 00 08 9A 30 E0 F8 0D 85 C6 CB 07 7E 8C 4E BB [15:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 65 2D 47 00 67 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 D9 74 01 00 F4 03 04 00 01 6C F1 65 B6 04 01 00 00 CC 98 B9 DB AE E2 89 0E [15:05:20]CommunicateWithHost err = 0 [15:05:20]CheckOFDResponse [15:05:20]1017 (14) - 77093643461234 [15:05:20]1041 (16) - 0000000000874811 [15:05:20]1040 (4) - 95449 [15:05:20]1012 (4) - 13.03.2024 09:04 [15:05:20]1206 (1) - 0 [15:05:20]OFD Sender: Remove packet 95449 [15:05:20]ProducePacketName [15:05:20]name=ofd_packets/00095449 [15:05:20]NVStorageDeleteData [15:05:20]Write to MH i2c: 01 00 00 1B 04 1F [15:05:20]Write i2c OK [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: 01 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: 01 07 00 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: 01 07 00 1B 04 00 80 00 00 00 77 0D 2A [15:05:20]RasterBufferAndPrint [15:05:20]line [15:05:20]line [15:05:20]line [15:05:20]line [15:05:20]line [15:05:20]written 0, free lines is 3452 [15:05:20]process_action close_receipt done [15:05:20]requested_data is exist [15:05:20]produce_requested_data [15:05:20]requested_item fm.sn is exist - process it [15:05:20]wFMCommunicate request_size=4 [15:05:20]MH_SAM_APDU [15:05:20]CAPDU: 80 11 00 00 [15:05:20]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [15:05:20]Write i2c OK [15:05:20]MH_I2C_Read... [15:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:20]Read from MH i2c: E2 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: E2 17 00 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: E2 17 00 22 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F0 [15:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:05:20]wFMCommunicate OK [15:05:20]requested_item fd.num is exist - process it [15:05:20]SAM_PROTO_GetFieldsCounters [15:05:20]wFMCommunicate request_size=4 [15:05:20]MH_SAM_APDU [15:05:20]CAPDU: 80 13 00 00 [15:05:20]Write to MH i2c: E2 08 00 23 04 80 13 00 00 00 00 00 00 A3 [15:05:20]Write i2c OK [15:05:20]MH_I2C_Read... [15:05:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:20]Read from MH i2c: E2 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: E2 62 00 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: E2 62 00 23 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D9 74 01 00 0E 04 04 00 48 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 07 [15:05:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D9 74 01 00 0E 04 04 00 48 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 [15:05:20]wFMCommunicate OK [15:05:20]SAM_PROTO_GetFieldsCounters done [15:05:20]requested_item shift.num is exist - process it [15:05:20]requested_item shift.opened is exist - process it [15:05:20]req_shift_opened [15:05:20]FM_GetShiftState [15:05:20]SAM_PROTO_GetShiftState [15:05:20]wFMCommunicate request_size=4 [15:05:20]MH_SAM_APDU [15:05:20]CAPDU: 80 13 01 00 [15:05:20]Write to MH i2c: E2 08 00 24 04 80 13 01 00 00 00 00 00 A5 [15:05:20]Write i2c OK [15:05:20]MH_I2C_Read... [15:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:20]Read from MH i2c: E2 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: E2 0E 00 [15:05:20]MH_I2C_Read... [15:05:20]Read from MH i2c: E2 0E 00 24 04 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 8A [15:05:20]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:05:20]wFMCommunicate OK [15:05:20]SAM_PROTO_GetShiftState done [15:05:20]FM_GetShiftState done [15:05:20]req_shift_opened done [15:05:20]requested_item shift.open_date is exist - process it [15:05:20]req_shift_open_date [15:05:20]req_shift_open_date done [15:05:20]produce_requested_data done [15:05:20]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95449,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:05:20]process_action_free close_receipt [15:05:20]json_value_free [15:05:20]json_value_free done [15:05:20]process_json_proto returns [15:05:20]Send response to host [15:05:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95449,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:05:20]free response buf [15:05:20]execute_script done [15:05:20]execute_script returns [15:05:20]free content buf [15:05:20]Sock 7.Close socket [15:05:20]Sock 7.Thread stoped [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]accept exits with 9 [15:06:05]New connection [15:06:05]New thread 3066969444 created [15:06:05]Thread 3066826084 joined [15:06:05]Waiting for new connection... [15:06:05] Sock 9.Parse request [15:06:05]Sock 9.Check first char [15:06:05]Sock 9.First char is OK [15:06:05]request: POST /json_proto HTTP/1.0 [15:06:05]Method: POST [15:06:05]URL: /json_proto [15:06:05]Method is POST - this is cgi request [15:06:05]url: /json_proto [15:06:05]query_string will be loaded in cgi processing [15:06:05]execute_cgi json_proto POST (null) [15:06:05]execute_cgi path=json_proto method=POST [15:06:05]POST find Content-Length [15:06:05]Host: 172.17.62.67:8080 [15:06:05]Content-Length: 1198 [15:06:05]Content-Type: application/json [15:06:05] [15:06:05]POST finish read [15:06:05]Found Content-Length = 1198 [15:06:05]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196445\u000A13.03.2024 15:00\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 28.210 x 70.90\u000A\u0418\u0422\u041E\u0413: 2000.09\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\u000A89310\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:05]execute_script... [15:06:05]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 6\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C.\u000A\u0421\u0447\u0435\u0442 N : (1)196445\u000A13.03.2024 15:00\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 28.210 x 70.90\u000A\u0418\u0422\u041E\u0413: 2000.09\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\u000A89310\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:05]POST & json_proto [15:06:05]process_json_proto [15:06:05]json parsed OK: [15:06:05]protocol is kg_v1.0 [15:06:05]action value=print_text [15:06:05]process_action print_text [15:06:05]cmd_print_text [15:06:05]ExternCall_PrintAddStr [15:06:05]wPrintStart [15:06:05]Write to MH i2c: 01 00 00 25 04 29 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 25 04 00 80 00 00 00 FF 0F BE [15:06:05]RasterBufferAndPrint [15:06:05]line *****ТОВАРНЫЙ ЧЕК***** [15:06:05]line АЗС 6 [15:06:05]line Партнер нефть [15:06:05]line 02508201610067 [15:06:05]line Кассир : Сабырбек у. М. [15:06:05]line Счет N : (1)196445 [15:06:05]line 13.03.2024 15:00 [15:06:05]line ПРОДАЖА [15:06:05]line ТРК (МРК, ГНК): 51 [15:06:05]line Вид ГСМ : 2710194210 [15:06:05]line ДТ-К-5 [15:06:05]line 28.210 x 70.90 [15:06:05]line ИТОГ: 2000.09 [15:06:05]line Тип оплаты: Талоны: Топливная Карта [15:06:05]line 89310 [15:06:05]line ______________________ [15:06:05]line (подпись) [15:06:05]written 0, free lines is 4095 [15:06:05]OFD Sender: No OFD packet to send [15:06:05]Write to MH i2c: 01 00 00 39 04 3D [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 39 04 00 80 00 00 00 63 0E 35 [15:06:05]RasterBufferAndPrint [15:06:05]line [15:06:05]line [15:06:05]line [15:06:05]line [15:06:05]line [15:06:05]written 0, free lines is 3686 [15:06:05]process_action print_text done [15:06:05]requested_data is exist [15:06:05]produce_requested_data [15:06:05]requested_item fm.sn is exist - process it [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 11 00 00 [15:06:05]Write to MH i2c: E2 08 00 40 04 80 11 00 00 00 00 00 00 BE [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 17 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 17 00 40 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 0E [15:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:06:05]wFMCommunicate OK [15:06:05]requested_item fd.num is exist - process it [15:06:05]SAM_PROTO_GetFieldsCounters [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 13 00 00 [15:06:05]Write to MH i2c: E2 08 00 41 04 80 13 00 00 00 00 00 00 C1 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:06]Read from MH i2c: E2 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 62 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 62 00 41 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D9 74 01 00 0E 04 04 00 48 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 25 [15:06: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 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 D9 74 01 00 0E 04 04 00 48 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 [15:06:06]wFMCommunicate OK [15:06:06]SAM_PROTO_GetFieldsCounters done [15:06:06]requested_item shift.num is exist - process it [15:06:06]requested_item shift.opened is exist - process it [15:06:06]req_shift_opened [15:06:06]FM_GetShiftState [15:06:06]SAM_PROTO_GetShiftState [15:06:06]wFMCommunicate request_size=4 [15:06:06]MH_SAM_APDU [15:06:06]CAPDU: 80 13 01 00 [15:06:06]Write to MH i2c: E2 08 00 42 04 80 13 01 00 00 00 00 00 C3 [15:06:06]Write i2c OK [15:06:06]MH_I2C_Read... [15:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:06]Read from MH i2c: E2 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 0E 00 [15:06:06]MH_I2C_Read... [15:06:06]Read from MH i2c: E2 0E 00 42 04 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 A8 [15:06:06]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:06:06]wFMCommunicate OK [15:06:06]SAM_PROTO_GetShiftState done [15:06:06]FM_GetShiftState done [15:06:06]req_shift_opened done [15:06:06]requested_item shift.open_date is exist - process it [15:06:06]req_shift_open_date [15:06:06]req_shift_open_date done [15:06:06]produce_requested_data done [15:06:06]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95449,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:06:06]process_action_free print_text [15:06:06]json_value_free [15:06:06]json_value_free done [15:06:06]process_json_proto returns [15:06:06]Send response to host [15:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95449,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:06:06]free response buf [15:06:06]execute_script done [15:06:06]execute_script returns [15:06:06]free content buf [15:06:06]Sock 9.Close socket [15:06:06]Sock 9.Thread stoped [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:01]accept exits with 7 [15:08:01]New connection [15:08:01]New thread 3066826084 created [15:08:01]Thread 3066969444 joined [15:08:01]Waiting for new connection... [15:08:01] Sock 7.Parse request [15:08:01]Sock 7.Check first char [15:08:01]Sock 7.First char is OK [15:08:01]request: POST /json_proto HTTP/1.0 [15:08:01]Method: POST [15:08:01]URL: /json_proto [15:08:01]Method is POST - this is cgi request [15:08:01]url: /json_proto [15:08:01]query_string will be loaded in cgi processing [15:08:01]execute_cgi json_proto POST (null) [15:08:01]execute_cgi path=json_proto method=POST [15:08:01]POST find Content-Length [15:08:01]Host: 172.17.62.67:8080 [15:08:01]Content-Length: 677 [15:08:01]Content-Type: application/json [15:08:01] [15:08:01]POST finish read [15:08:01]Found Content-Length = 677 [15:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196446", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:08:01]execute_script... [15:08: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)196446", "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" : 62.90, "quantity" : 7.950, "sum" : 500.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:08:01]POST & json_proto [15:08:01]process_json_proto [15:08:01]json parsed OK: [15:08:01]protocol is kg_v1.0 [15:08:01]action value=close_receipt [15:08:01]process_action close_receipt [15:08:01]cmd_close_receipt [15:08:01]MH_GetDate [15:08:01]Write to MH i2c: F0 00 00 43 04 36 [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: F0 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: F0 05 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: F0 05 00 43 04 00 53 C1 F1 65 A5 [15:08:01]GetLastDocTimeStamp 1710342319 [15:08:01]current date 1710342483 [15:08:01]FM_GetShiftState [15:08:01]SAM_PROTO_GetShiftState [15:08:01]wFMCommunicate request_size=4 [15:08:01]MH_SAM_APDU [15:08:01]CAPDU: 80 13 01 00 [15:08:01]Write to MH i2c: E2 08 00 44 04 80 13 01 00 00 00 00 00 C5 [15:08:01]Write i2c OK [15:08:01]MH_I2C_Read... [15:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:01]Read from MH i2c: E2 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 0E 00 [15:08:01]MH_I2C_Read... [15:08:01]Read from MH i2c: E2 0E 00 44 04 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 AA [15:08:01]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:08:01]wFMCommunicate OK [15:08:01]SAM_PROTO_GetShiftState done [15:08:01]FM_GetShiftState done [15:08:01]opened in 1710288279 [15:08:01]opened+sec_in_day 1710374679 [15:08:01]quantity*price = 50005 [15:08:01]sum+1 = 50007 [15:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 145 13.03.2024 15:08 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 ФМ: 0000000000874811 ФД: 95450 ФПД: 190900944140781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T150803&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95450&fm=190900944140781&tin=02508201610067®Number=0000000000090555&sum=50000 [15:08:03]StoreToDocumentArchive [15:08:03]shift 328 fd 95450 [15:08:03]save to /storage/0328/doc_00095450 [15:08:03]save last doc name /storage/0328/doc_00095450 to /storage/kkm_last_doc_name [15:08:03]save OK [15:08:03]Clear old archive folders... [15:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:03]tlvbuf is 01AEFE70 [15:08:03]SAM_PROTO_ClearQueue [15:08:03]wFMCommunicate request_size=4 [15:08:03]MH_SAM_APDU [15:08:03]CAPDU: 80 09 00 00 [15:08:03]Write to MH i2c: E2 08 00 51 04 80 09 00 00 00 00 00 00 C7 [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:03]Read from MH i2c: E2 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 03 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 03 00 51 04 00 90 00 C9 [15:08:03]RAPDU: 90 00 [15:08:03]wFMCommunicate OK [15:08:03]SAM_PROTO_ClearQueue done [15:08:03]KKMCreateOFDPacket [15:08:03]OFDProtocolAddRootSTLVToBuf [15:08:03]FM_MakeSignedData [15:08:03]FM_MakeSignedData [15:08:03]SAM_PROTO_SignData [15:08:03]wFMCommunicate request_size=4 [15:08:03]MH_SAM_APDU [15:08:03]CAPDU: 80 0D 01 02 [15:08:03]Write to MH i2c: E2 08 00 52 04 80 0D 01 02 00 00 00 00 CF [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:03]Read from MH i2c: E2 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 03 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [15:08:03]RAPDU: 90 00 [15:08:03]wFMCommunicate OK [15:08:03]wFMCommunicate request_size=255 [15:08:03]MH_SAM_APDU [15:08:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 91 00 00 00 F4 03 04 00 53 C1 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 74 01 00 35 04 06 00 AD [15:08:03]Write to MH i2c: E2 02 01 53 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 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 91 00 00 00 F4 03 04 00 53 C1 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 74 01 00 35 04 06 00 AD 00 00 B8 [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:03]Read from MH i2c: E2 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 03 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [15:08:03]RAPDU: 90 00 [15:08:03]wFMCommunicate OK [15:08:03]wFMCommunicate request_size=10 [15:08:03]MH_SAM_APDU [15:08:03]CAPDU: 80 0D 02 02 05 9F 96 F6 79 ED [15:08:03]Write to MH i2c: E2 0D 00 54 04 80 0D 02 02 05 00 9F 96 F6 79 ED 00 00 6D [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:03]Read from MH i2c: E2 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 03 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [15:08:03]RAPDU: 90 00 [15:08:03]wFMCommunicate OK [15:08:03]wFMCommunicate request_size=4 [15:08:03]MH_SAM_APDU [15:08:03]CAPDU: 80 0D 03 02 [15:08:03]Write to MH i2c: E2 08 00 55 04 80 0D 03 02 00 00 00 00 D4 [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:03]Read from MH i2c: E2 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 0B 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 0B 00 55 04 00 AC B7 74 E6 04 3D 9F 5E 90 00 D0 [15:08:03]RAPDU: AC B7 74 E6 04 3D 9F 5E 90 00 [15:08:03]wFMCommunicate OK [15:08:03]SAM_PROTO_SignData done [15:08:03]FM_MakeSignedData done [15:08:03]CreateOFDProtocolMessage [15:08:03]wFMCommunicate request_size=4 [15:08:03]MH_SAM_APDU [15:08:03]CAPDU: 80 11 00 00 [15:08:03]Write to MH i2c: E2 08 00 56 04 80 11 00 00 00 00 00 00 D4 [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:03]Read from MH i2c: E2 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 17 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: E2 17 00 56 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 24 [15:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:08:03]wFMCommunicate OK [15:08:03]CreateOFDProtocolMessage done [15:08:03]OFDSenderStorePacket 95450 [15:08:03]StoreOFDPacket docnum=95450 [15:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 33 BD 07 01 82 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 91 00 00 00 F4 03 04 00 53 C1 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 74 01 00 35 04 06 00 AD 9F 96 F6 79 ED AC B7 74 E6 04 3D 9F 5E [15:08:03]CheckFolder [15:08:03]dirname=/storage/ofd_packets [15:08:03]CheckFolder done [15:08:03]ProducePacketName [15:08:03]name=ofd_packets/00095450 [15:08:03]NVStorageSaveData ofd_packets/00095450 [15:08:03]File name is /storage/ofd_packets/00095450 [15:08:03]Write 301 bytes [15:08:03]NVStorageSaveData done [15:08:03]OFDSenderStorePacket done [15:08:03]KKMCreateOFDPacket done [15:08:03]NVStorageSaveData kkm_last_timestamp [15:08:03]File name is /storage/kkm_last_timestamp [15:08:03]Write 4 bytes [15:08:03]NVStorageSaveData done [15:08:03]ExternCall_PrintAddStr [15:08:03]wPrintStart [15:08:03]Write to MH i2c: 01 00 00 57 04 5B [15:08:03]Write i2c OK [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: 01 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: 01 07 00 [15:08:03]MH_I2C_Read... [15:08:03]Read from MH i2c: 01 07 00 57 04 00 80 00 00 00 FF 0F F0 [15:08:03]RasterBufferAndPrint [15:08:03]line Счет N : (1)196446 [15:08:03]line ИНН: 02508201610067 [15:08:03]line Контрольно-Кассовый Чек [15:08:03]line ПРОДАЖА [15:08:03]line ТРК (МРК, ГНК) : 32 [15:08:03]line Товар: 2710124130 [15:08:03]line Аи-92-К-5 [15:08:03]line 7.950 * 62.90 [15:08:03]line = 500.06 [15:08:03]line НДС 12% НСП 1% [15:08:03]line > о реализуемом товаре [15:08:03]line ОКРУГЛЕНИЕ: -0.06 [15:08:03]line ИТОГО: 500.00 [15:08:03]line Внесено: 500.00 [15:08:03]line СДАЧА: 0.00 [15:08:03]line НСП 1% : 4.42 [15:08:03]line НДС 12% : 53.10 [15:08:03]line Наличными: 500.00 [15:08:03]line Безнал.: 0.00 [15:08:03]line Место: АЗС № 6 "Партнер Нефть" [15:08:03]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:08:03]line СНО: Общий режим [15:08:03]line Чек 145 13.03.2024 15:08 [15:08:03]line Смена: 328 ФФД: 1.0 [15:08:03]line ЗНМ: 0300000009 [15:08:03]line РНМ: 0000000000090555 [15:08:03]line Версия ККМ: 001 [15:08:03]line ФМ: 0000000000874811 [15:08:03]line ФД: 95450 [15:08:03]line ФПД: 190900944140781 [15:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T150803&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95450&fm=190900944140781&tin=02508201610067®Number=0000000000090555&sum=50000 [15:08:03]OFD Sender: Processing packet 95450 [packets to send 30, broken 29] [15:08:03]ProducePacketName [15:08:03]name=ofd_packets/00095450 [15:08:03]OFD Sender: To server: pG, [15:08:03]CommunicateWithHost lk.salyk.kg:30040 [15:08:03]ConnectInit lk.salyk.kg [15:08:03]written 0, free lines is 4095 [15:08:04]Connected sock=10 [15:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0F 01 00 00 33 BD 07 01 82 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 1F 00 00 00 00 00 37 04 06 00 92 18 00 00 00 00 13 04 06 00 56 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 91 00 00 00 F4 03 04 00 53 C1 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 74 01 00 35 04 06 00 AD 9F 96 F6 79 ED AC B7 74 E6 04 3D 9F 5E [15:08:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 40 67 47 00 62 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DA 74 01 00 F4 03 04 00 A5 6C F1 65 B6 04 01 00 00 5A 75 83 34 45 77 63 3F [15:08:04]CommunicateWithHost err = 0 [15:08:04]CheckOFDResponse [15:08:04]1017 (14) - 77093643461234 [15:08:04]1041 (16) - 0000000000874811 [15:08:04]1040 (4) - 95450 [15:08:04]1012 (4) - 13.03.2024 09:06 [15:08:04]1206 (1) - 0 [15:08:04]OFD Sender: Remove packet 95450 [15:08:04]ProducePacketName [15:08:04]name=ofd_packets/00095450 [15:08:04]NVStorageDeleteData [15:08:04]Write to MH i2c: 01 00 00 82 04 86 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: 01 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: 01 07 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: 01 07 00 82 04 00 80 00 00 00 54 0D 6E [15:08:04]RasterBufferAndPrint [15:08:04]line [15:08:04]line [15:08:04]line [15:08:04]line [15:08:04]line [15:08:04]written 0, free lines is 3416 [15:08:04]process_action close_receipt done [15:08:04]requested_data is exist [15:08:04]produce_requested_data [15:08:04]requested_item fm.sn is exist - process it [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 11 00 00 [15:08:04]Write to MH i2c: E2 08 00 89 04 80 11 00 00 00 00 00 00 07 [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 17 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 17 00 89 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 57 [15:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:08:04]wFMCommunicate OK [15:08:04]requested_item fd.num is exist - process it [15:08:04]SAM_PROTO_GetFieldsCounters [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 13 00 00 [15:08:04]Write to MH i2c: E2 08 00 8A 04 80 13 00 00 00 00 00 00 0A [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 62 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 62 00 8A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DA 74 01 00 0E 04 04 00 48 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 72 [15:08:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DA 74 01 00 0E 04 04 00 48 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 [15:08:04]wFMCommunicate OK [15:08:04]SAM_PROTO_GetFieldsCounters done [15:08:04]requested_item shift.num is exist - process it [15:08:04]requested_item shift.opened is exist - process it [15:08:04]req_shift_opened [15:08:04]FM_GetShiftState [15:08:04]SAM_PROTO_GetShiftState [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 13 01 00 [15:08:04]Write to MH i2c: E2 08 00 8B 04 80 13 01 00 00 00 00 00 0C [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 0E 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 0E 00 8B 04 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F1 [15:08:04]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:08:04]wFMCommunicate OK [15:08:04]SAM_PROTO_GetShiftState done [15:08:04]FM_GetShiftState done [15:08:04]req_shift_opened done [15:08:04]requested_item shift.open_date is exist - process it [15:08:04]req_shift_open_date [15:08:04]req_shift_open_date done [15:08:04]produce_requested_data done [15:08:04]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95450,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:08:04]process_action_free close_receipt [15:08:04]json_value_free [15:08:04]json_value_free done [15:08:04]process_json_proto returns [15:08:04]Send response to host [15:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95450,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:08:04]free response buf [15:08:04]execute_script done [15:08:04]execute_script returns [15:08:04]free content buf [15:08:04]Sock 7.Close socket [15:08:04]Sock 7.Thread stoped [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:08]accept exits with 9 [15:11:08]New connection [15:11:08]New thread 3066969444 created [15:11:08]Thread 3066826084 joined [15:11:08]Waiting for new connection... [15:11:08] Sock 9.Parse request [15:11:08]Sock 9.Check first char [15:11:08]Sock 9.First char is OK [15:11:08]request: POST /json_proto HTTP/1.0 [15:11:08]Method: POST [15:11:08]URL: /json_proto [15:11:08]Method is POST - this is cgi request [15:11:08]url: /json_proto [15:11:08]query_string will be loaded in cgi processing [15:11:08]execute_cgi json_proto POST (null) [15:11:08]execute_cgi path=json_proto method=POST [15:11:08]POST find Content-Length [15:11:08]Host: 172.17.62.67:8080 [15:11:08]Content-Length: 813 [15:11:08]Content-Type: application/json [15:11:08] [15:11:08]POST finish read [15:11:08]Found Content-Length = 813 [15:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196447", "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" : 70.90, "quantity" : 4.660, "sum" : 330.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 330.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:08]execute_script... [15:11:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)196447", "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" : 70.90, "quantity" : 4.660, "sum" : 330.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 330.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:08]POST & json_proto [15:11:08]process_json_proto [15:11:08]json parsed OK: [15:11:08]protocol is kg_v1.0 [15:11:08]action value=close_receipt [15:11:08]process_action close_receipt [15:11:08]cmd_close_receipt [15:11:08]MH_GetDate [15:11:08]Write to MH i2c: F0 00 00 8C 04 7F [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: F0 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: F0 05 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: F0 05 00 8C 04 00 0D C2 F1 65 A9 [15:11:08]GetLastDocTimeStamp 1710342483 [15:11:08]current date 1710342669 [15:11:08]FM_GetShiftState [15:11:08]SAM_PROTO_GetShiftState [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 13 01 00 [15:11:08]Write to MH i2c: E2 08 00 8D 04 80 13 01 00 00 00 00 00 0E [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 0E 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 0E 00 8D 04 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 F3 [15:11:08]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:11:08]wFMCommunicate OK [15:11:08]SAM_PROTO_GetShiftState done [15:11:08]FM_GetShiftState done [15:11:08]opened in 1710288279 [15:11:08]opened+sec_in_day 1710374679 [15:11:08]quantity*price = 33039 [15:11:08]sum+1 = 33040 [15:11:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.39 НСП 1% : 2.92 НДС 12% : 35.09 Наличными: 0.00 Безнал.: 330.39 Место: АЗС № 6 "Партнер Нефть" Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 СНО: Общий режим Чек 146 13.03.2024 15:11 Смена: 328 ФФД: 1.0 ЗНМ: 0300000009 РНМ: 0000000000090555 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874811 ФД: 95451 ФПД: 141227198020960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T151109&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95451&fm=141227198020960&tin=02508201610067®Number=0000000000090555&sum=33039 [15:11:09]StoreToDocumentArchive [15:11:09]shift 328 fd 95451 [15:11:09]save to /storage/0328/doc_00095451 [15:11:09]save last doc name /storage/0328/doc_00095451 to /storage/kkm_last_doc_name [15:11:09]save OK [15:11:09]Clear old archive folders... [15:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:11:09]tlvbuf is 01AEFA40 [15:11:09]SAM_PROTO_ClearQueue [15:11:09]wFMCommunicate request_size=4 [15:11:09]MH_SAM_APDU [15:11:09]CAPDU: 80 09 00 00 [15:11:09]Write to MH i2c: E2 08 00 9A 04 80 09 00 00 00 00 00 00 10 [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:10]Read from MH i2c: E2 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 03 00 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [15:11:10]RAPDU: 90 00 [15:11:10]wFMCommunicate OK [15:11:10]SAM_PROTO_ClearQueue done [15:11:10]KKMCreateOFDPacket [15:11:10]OFDProtocolAddRootSTLVToBuf [15:11:10]FM_MakeSignedData [15:11:10]FM_MakeSignedData [15:11:10]SAM_PROTO_SignData [15:11:10]wFMCommunicate request_size=4 [15:11:10]MH_SAM_APDU [15:11:10]CAPDU: 80 0D 01 02 [15:11:10]Write to MH i2c: E2 08 00 9B 04 80 0D 01 02 00 00 00 00 18 [15:11:10]Write i2c OK [15:11:10]MH_I2C_Read... [15:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:10]Read from MH i2c: E2 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 03 00 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [15:11:10]RAPDU: 90 00 [15:11:10]wFMCommunicate OK [15:11:10]wFMCommunicate request_size=255 [15:11:10]MH_SAM_APDU [15:11:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 0F 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 0D C2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 74 01 00 35 04 06 00 80 72 04 F8 [15:11:10]Write to MH i2c: E2 02 01 9C 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 0F 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 0D C2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 74 01 00 35 04 06 00 80 72 04 F8 00 00 59 [15:11:10]Write i2c OK [15:11:10]MH_I2C_Read... [15:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:10]Read from MH i2c: E2 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 03 00 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 03 00 9C 04 00 90 00 14 [15:11:10]RAPDU: 90 00 [15:11:10]wFMCommunicate OK [15:11:10]wFMCommunicate request_size=7 [15:11:10]MH_SAM_APDU [15:11:10]CAPDU: 80 0D 02 02 02 7D 60 [15:11:10]Write to MH i2c: E2 0A 00 9D 04 80 0D 02 02 02 00 7D 60 00 00 FC [15:11:10]Write i2c OK [15:11:10]MH_I2C_Read... [15:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:10]Read from MH i2c: E2 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 03 00 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 03 00 9D 04 00 90 00 15 [15:11:10]RAPDU: 90 00 [15:11:10]wFMCommunicate OK [15:11:10]wFMCommunicate request_size=4 [15:11:10]MH_SAM_APDU [15:11:10]CAPDU: 80 0D 03 02 [15:11:10]Write to MH i2c: E2 08 00 9E 04 80 0D 03 02 00 00 00 00 1D [15:11:10]Write i2c OK [15:11:10]MH_I2C_Read... [15:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:10]Read from MH i2c: E2 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 0B 00 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 0B 00 9E 04 00 22 AF 9F A3 BB E2 8C D2 90 00 2C [15:11:10]RAPDU: 22 AF 9F A3 BB E2 8C D2 90 00 [15:11:10]wFMCommunicate OK [15:11:10]SAM_PROTO_SignData done [15:11:10]FM_MakeSignedData done [15:11:10]CreateOFDProtocolMessage [15:11:10]wFMCommunicate request_size=4 [15:11:10]MH_SAM_APDU [15:11:10]CAPDU: 80 11 00 00 [15:11:10]Write to MH i2c: E2 08 00 9F 04 80 11 00 00 00 00 00 00 1D [15:11:10]Write i2c OK [15:11:10]MH_I2C_Read... [15:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:10]Read from MH i2c: E2 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 17 00 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: E2 17 00 9F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 6D [15:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:11:10]wFMCommunicate OK [15:11:10]CreateOFDProtocolMessage done [15:11:10]OFDSenderStorePacket 95451 [15:11:10]StoreOFDPacket docnum=95451 [15:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 12 33 04 01 5C 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 0F 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 0D C2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 74 01 00 35 04 06 00 80 72 04 F8 7D 60 22 AF 9F A3 BB E2 8C D2 [15:11:10]CheckFolder [15:11:10]dirname=/storage/ofd_packets [15:11:10]CheckFolder done [15:11:10]ProducePacketName [15:11:10]name=ofd_packets/00095451 [15:11:10]NVStorageSaveData ofd_packets/00095451 [15:11:10]File name is /storage/ofd_packets/00095451 [15:11:10]Write 298 bytes [15:11:10]NVStorageSaveData done [15:11:10]OFDSenderStorePacket done [15:11:10]KKMCreateOFDPacket done [15:11:10]NVStorageSaveData kkm_last_timestamp [15:11:10]File name is /storage/kkm_last_timestamp [15:11:10]Write 4 bytes [15:11:10]NVStorageSaveData done [15:11:10]ExternCall_PrintAddStr [15:11:10]wPrintStart [15:11:10]Write to MH i2c: 01 00 00 A0 04 A4 [15:11:10]Write i2c OK [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: 01 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: 01 07 00 [15:11:10]MH_I2C_Read... [15:11:10]Read from MH i2c: 01 07 00 A0 04 00 80 00 00 00 FF 0F 39 [15:11:10]RasterBufferAndPrint [15:11:10]line Счет N : (1)196447 [15:11:10]line ИНН: 02508201610067 [15:11:10]line Контрольно-Кассовый Чек [15:11:10]line ПРОДАЖА [15:11:10]line ТРК (МРК, ГНК) : 51 [15:11:10]line Товар: 2710194210 [15:11:10]line ДТ-К-5 [15:11:10]line 4.660 * 70.90 [15:11:10]line = 330.39 [15:11:10]line НДС 12% НСП 1% [15:11:10]line > о реализуемом товаре [15:11:10]line ИТОГО: 330.39 [15:11:10]line НСП 1% : 2.92 [15:11:10]line НДС 12% : 35.09 [15:11:10]line Наличными: 0.00 [15:11:10]line Безнал.: 330.39 [15:11:10]line Место: АЗС № 6 "Партнер Нефть" [15:11:10]line Адрес: 720001, г. Бишкек, ул. 7 апреля 9 А, 42.859881, 74.636016 [15:11:10]line СНО: Общий режим [15:11:10]line Чек 146 13.03.2024 15:11 [15:11:10]line Смена: 328 ФФД: 1.0 [15:11:10]line ЗНМ: 0300000009 [15:11:10]line РНМ: 0000000000090555 [15:11:10]line Версия ККМ: 001 [15:11:10]line Платежная система: Бакай Банк [15:11:10]line ФМ: 0000000000874811 [15:11:10]line ФД: 95451 [15:11:10]line ФПД: 141227198020960 [15:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240313T151109&type=1&operation_type=1&fn_number=0000000000874811&fd_number=95451&fm=141227198020960&tin=02508201610067®Number=0000000000090555&sum=33039 [15:11:10]OFD Sender: Processing packet 95451 [packets to send 30, broken 29] [15:11:10]ProducePacketName [15:11:10]name=ofd_packets/00095451 [15:11:10]OFD Sender: To server: pG, [15:11:10]CommunicateWithHost lk.salyk.kg:30040 [15:11:10]ConnectInit lk.salyk.kg [15:11:10]written 0, free lines is 4095 [15:11:10]Connected sock=10 [15:11:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0C 01 00 00 12 33 04 01 5C 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 B2 1B 00 00 00 00 13 04 06 00 0F 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 0D C2 F1 65 0E 04 04 00 48 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 74 01 00 35 04 06 00 80 72 04 F8 7D 60 22 AF 9F A3 BB E2 8C D2 [15:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 B9 94 47 00 77 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DB 74 01 00 F4 03 04 00 60 6D F1 65 B6 04 01 00 00 74 93 13 19 E5 AE 65 B4 [15:11:11]CommunicateWithHost err = 0 [15:11:11]CheckOFDResponse [15:11:11]1017 (14) - 77093643461234 [15:11:11]1041 (16) - 0000000000874811 [15:11:11]1040 (4) - 95451 [15:11:11]1012 (4) - 13.03.2024 09:09 [15:11:11]1206 (1) - 0 [15:11:11]OFD Sender: Remove packet 95451 [15:11:11]ProducePacketName [15:11:11]name=ofd_packets/00095451 [15:11:11]NVStorageDeleteData [15:11:11]Write to MH i2c: 01 00 00 CA 04 CE [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: 01 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: 01 07 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: 01 07 00 CA 04 00 80 00 00 00 57 0D B9 [15:11:11]RasterBufferAndPrint [15:11:11]line [15:11:11]line [15:11:11]line [15:11:11]line [15:11:11]line [15:11:11]written 0, free lines is 3421 [15:11:11]process_action close_receipt done [15:11:11]requested_data is exist [15:11:11]produce_requested_data [15:11:11]requested_item fm.sn is exist - process it [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 11 00 00 [15:11:11]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:11]Read from MH i2c: E2 17 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 9F [15:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:11:11]wFMCommunicate OK [15:11:11]requested_item fd.num is exist - process it [15:11:11]SAM_PROTO_GetFieldsCounters [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 13 00 00 [15:11:11]Write to MH i2c: E2 08 00 D2 04 80 13 00 00 00 00 00 00 52 [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 62 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 62 00 D2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 BE [15:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 [15:11:11]wFMCommunicate OK [15:11:11]SAM_PROTO_GetFieldsCounters done [15:11:11]requested_item shift.num is exist - process it [15:11:11]requested_item shift.opened is exist - process it [15:11:11]req_shift_opened [15:11:11]FM_GetShiftState [15:11:11]SAM_PROTO_GetShiftState [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 13 01 00 [15:11:11]Write to MH i2c: E2 08 00 D3 04 80 13 01 00 00 00 00 00 54 [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:11]Read from MH i2c: E2 0E 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 0E 00 D3 04 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 39 [15:11:11]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:11:11]wFMCommunicate OK [15:11:11]SAM_PROTO_GetShiftState done [15:11:11]FM_GetShiftState done [15:11:11]req_shift_opened done [15:11:11]requested_item shift.open_date is exist - process it [15:11:11]req_shift_open_date [15:11:11]req_shift_open_date done [15:11:11]produce_requested_data done [15:11:11]produce_requested_data return {"fm.sn":"0000000000874811","fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:11:11]process_action_free close_receipt [15:11:11]json_value_free [15:11:11]json_value_free done [15:11:11]process_json_proto returns [15:11:11]Send response to host [15:11:11]OFD Sender: No OFD packet to send [15:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874811","fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:11:11]free response buf [15:11:11]execute_script done [15:11:11]execute_script returns [15:11:11]free content buf [15:11:11]Sock 9.Close socket [15:11:11]Sock 9.Thread stoped [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:45]accept exits with 7 [15:12:45]New connection [15:12:45]New thread 3066826084 created [15:12:45]Thread 3066969444 joined [15:12:45]Waiting for new connection... [15:12:45] Sock 7.Parse request [15:12:45]Sock 7.Check first char [15:12:45]Sock 7.First char is OK [15:12:45]request: POST /json_proto HTTP/1.0 [15:12:45]Method: POST [15:12:45]URL: /json_proto [15:12:45]Method is POST - this is cgi request [15:12:45]url: /json_proto [15:12:45]query_string will be loaded in cgi processing [15:12:45]execute_cgi json_proto POST (null) [15:12:45]execute_cgi path=json_proto method=POST [15:12:45]POST find Content-Length [15:12:45]Host: 172.17.62.67:8080 [15:12:45]Content-Length: 215 [15:12:45]Content-Type: application/json [15:12:45] [15:12:45]POST finish read [15:12:45]Found Content-Length = 215 [15:12:45]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:12:45]execute_script... [15:12:45]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:12:45]POST & json_proto [15:12:45]process_json_proto [15:12:45]json parsed OK: [15:12:45]protocol is kg_v1.0 [15:12:45]action value=get_value [15:12:45]process_action get_value [15:12:45]cmd_get_value [15:12:45]process_action get_value done [15:12:45]requested_data is exist [15:12:45]produce_requested_data [15:12:45]requested_item kkm.sn is exist - process it [15:12:45]requested_item kkm.ver is exist - process it [15:12:45]requested_item fm.sn is exist - process it [15:12:45]wFMCommunicate request_size=4 [15:12:45]MH_SAM_APDU [15:12:45]CAPDU: 80 11 00 00 [15:12:45]Write to MH i2c: E2 08 00 D4 04 80 11 00 00 00 00 00 00 52 [15:12:45]Write i2c OK [15:12:45]MH_I2C_Read... [15:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:45]Read from MH i2c: E2 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 17 00 [15:12:45]MH_I2C_Read... [15:12:45]Read from MH i2c: E2 17 00 D4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 A2 [15:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:12:45]wFMCommunicate OK [15:12:45]requested_item fd.num is exist - process it [15:12:45]SAM_PROTO_GetFieldsCounters [15:12:45]wFMCommunicate request_size=4 [15:12:45]MH_SAM_APDU [15:12:45]CAPDU: 80 13 00 00 [15:12:45]Write to MH i2c: E2 08 00 D5 04 80 13 00 00 00 00 00 00 55 [15:12:45]Write i2c OK [15:12:45]MH_I2C_Read... [15:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 62 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 62 00 D5 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 C1 [15:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 [15:12:46]wFMCommunicate OK [15:12:46]SAM_PROTO_GetFieldsCounters done [15:12:46]requested_item shift.num is exist - process it [15:12:46]requested_item shift.opened is exist - process it [15:12:46]req_shift_opened [15:12:46]FM_GetShiftState [15:12:46]SAM_PROTO_GetShiftState [15:12:46]wFMCommunicate request_size=4 [15:12:46]MH_SAM_APDU [15:12:46]CAPDU: 80 13 01 00 [15:12:46]Write to MH i2c: E2 08 00 D6 04 80 13 01 00 00 00 00 00 57 [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 0E 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 0E 00 D6 04 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 3C [15:12:46]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:12:46]wFMCommunicate OK [15:12:46]SAM_PROTO_GetShiftState done [15:12:46]FM_GetShiftState done [15:12:46]req_shift_opened done [15:12:46]requested_item shift.open_date is exist - process it [15:12:46]req_shift_open_date [15:12:46]req_shift_open_date done [15:12:46]produce_requested_data done [15:12:46]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:12:46]process_action_free get_value [15:12:46]json_value_free [15:12:46]json_value_free done [15:12:46]process_json_proto returns [15:12:46]Send response to host [15:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:12:46]free response buf [15:12:46]execute_script done [15:12:46]execute_script returns [15:12:46]free content buf [15:12:46]Sock 7.Close socket [15:12:46]Sock 7.Thread stoped [15:12:46]accept exits with 9 [15:12:46]New connection [15:12:46]New thread 3066969444 created [15:12:46]Thread 3066826084 joined [15:12:46]Waiting for new connection... [15:12:46] Sock 9.Parse request [15:12:46]Sock 9.Check first char [15:12:46]Sock 9.First char is OK [15:12:46]request: POST /json_proto HTTP/1.0 [15:12:46]Method: POST [15:12:46]URL: /json_proto [15:12:46]Method is POST - this is cgi request [15:12:46]url: /json_proto [15:12:46]query_string will be loaded in cgi processing [15:12:46]execute_cgi json_proto POST (null) [15:12:46]execute_cgi path=json_proto method=POST [15:12:46]POST find Content-Length [15:12:46]Host: 172.17.62.67:8080 [15:12:46]Content-Length: 331 [15:12:46]Content-Type: application/json [15:12:46] [15:12:46]POST finish read [15:12:46]Found Content-Length = 331 [15:12:46]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:12:46]execute_script... [15:12:46]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:12:46]POST & json_proto [15:12:46]process_json_proto [15:12:46]json parsed OK: [15:12:46]protocol is kg_v1.0 [15:12:46]action value=get_value [15:12:46]process_action get_value [15:12:46]cmd_get_value [15:12:46]process_action get_value done [15:12:46]requested_data is exist [15:12:46]produce_requested_data [15:12:46]requested_item fm.sale.total is exist - process it [15:12:46]SAM_PROTO_GetFMData [15:12:46]wFMCommunicate request_size=4 [15:12:46]MH_SAM_APDU [15:12:46]CAPDU: 80 13 03 00 [15:12:46]Write to MH i2c: E2 08 00 D7 04 80 13 03 00 00 00 00 00 5A [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:46]OFD Sender: No OFD packet to send [15:12:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:12:46]Read from MH i2c: E2 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 FD 00 [15:12:46]MH_I2C_Read... [15:12:46]Read from MH i2c: E2 FD 00 D7 04 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 A6 [15:12:46]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:12:46]wFMCommunicate OK [15:12:46]wFMCommunicate request_size=4 [15:12:46]MH_SAM_APDU [15:12:46]CAPDU: 80 17 00 00 [15:12:46]Write to MH i2c: E2 08 00 D8 04 80 17 00 00 00 00 00 00 5C [15:12:46]Write i2c OK [15:12:46]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 FD 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 FD 00 D8 04 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 88 [15:12:47]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:12:47]wFMCommunicate OK [15:12:47]wFMCommunicate request_size=4 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 17 00 00 [15:12:47]Write to MH i2c: E2 08 00 D9 04 80 17 00 00 00 00 00 00 5D [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 FD 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 FD 00 D9 04 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 35 [15:12:47]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:12:47]wFMCommunicate OK [15:12:47]wFMCommunicate request_size=4 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 17 00 00 [15:12:47]Write to MH i2c: E2 08 00 DA 04 80 17 00 00 00 00 00 00 5E [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 FD 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 FD 00 DA 04 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 D6 [15:12:47]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:12:47]wFMCommunicate OK [15:12:47]wFMCommunicate request_size=4 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 17 00 00 [15:12:47]Write to MH i2c: E2 08 00 DB 04 80 17 00 00 00 00 00 00 5F [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:12:47]Read from MH i2c: E2 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 E5 00 [15:12:47]MH_I2C_Read... [15:12:47]Read from MH i2c: E2 E5 00 DB 04 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 43 [15:12:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:12:47]wFMCommunicate OK [15:12:47]SAM_PROTO_GetFMData done [15:12:47]requested_item fm.sale_refund.total is exist - process it [15:12:47]requested_item fm.buy.total is exist - process it [15:12:47]requested_item shift.sale.total is exist - process it [15:12:47]SAM_PROTO_GetShiftData [15:12:47]wFMCommunicate request_size=4 [15:12:47]MH_SAM_APDU [15:12:47]CAPDU: 80 13 02 00 [15:12:47]Write to MH i2c: E2 08 00 DC 04 80 13 02 00 00 00 00 00 5E [15:12:47]Write i2c OK [15:12:47]MH_I2C_Read... [15:12:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:12:48]Read from MH i2c: E2 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 FD 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 FD 00 DC 04 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 BC [15:12:48]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:12:48]wFMCommunicate OK [15:12:48]wFMCommunicate request_size=4 [15:12:48]MH_SAM_APDU [15:12:48]CAPDU: 80 17 00 00 [15:12:48]Write to MH i2c: E2 08 00 DD 04 80 17 00 00 00 00 00 00 61 [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:48]Read from MH i2c: E2 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 FD 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 FD 00 DD 04 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 79 [15:12:48]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:12:48]wFMCommunicate OK [15:12:48]wFMCommunicate request_size=4 [15:12:48]MH_SAM_APDU [15:12:48]CAPDU: 80 17 00 00 [15:12:48]Write to MH i2c: E2 08 00 DE 04 80 17 00 00 00 00 00 00 62 [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:48]Read from MH i2c: E2 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 FD 00 [15:12:48]MH_I2C_Read... [15:12:48]Read from MH i2c: E2 FD 00 DE 04 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 8E [15:12:48]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:12:48]wFMCommunicate OK [15:12:48]wFMCommunicate request_size=4 [15:12:48]MH_SAM_APDU [15:12:48]CAPDU: 80 17 00 00 [15:12:48]Write to MH i2c: E2 08 00 DF 04 80 17 00 00 00 00 00 00 63 [15:12:48]Write i2c OK [15:12:48]MH_I2C_Read... [15:12:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:49]Read from MH i2c: E2 [15:12:49]MH_I2C_Read... [15:12:49]Read from MH i2c: E2 FD 00 [15:12:49]MH_I2C_Read... [15:12:49]Read from MH i2c: E2 FD 00 DF 04 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 DB [15:12:49]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:12:49]wFMCommunicate OK [15:12:49]wFMCommunicate request_size=4 [15:12:49]MH_SAM_APDU [15:12:49]CAPDU: 80 17 00 00 [15:12:49]Write to MH i2c: E2 08 00 E0 04 80 17 00 00 00 00 00 00 64 [15:12:49]Write i2c OK [15:12:49]MH_I2C_Read... [15:12:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:12:49]Read from MH i2c: E2 [15:12:49]MH_I2C_Read... [15:12:49]Read from MH i2c: E2 D7 00 [15:12:49]MH_I2C_Read... [15:12:49]Read from MH i2c: E2 D7 00 E0 04 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 47 [15:12:49]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:12:49]wFMCommunicate OK [15:12:49]SAM_PROTO_GetShiftData done [15:12:49]requested_item shift.sale.total_cash is exist - process it [15:12:49]requested_item shift.sale_refund.total is exist - process it [15:12:49]requested_item shift.sale_refund.total_cash is exist - process it [15:12:49]requested_item shift.buy.total is exist - process it [15:12:49]requested_item shift.buy.total_cash is exist - process it [15:12:49]produce_requested_data done [15:12:49]produce_requested_data return {"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:12:49]process_action_free get_value [15:12:49]json_value_free [15:12:49]json_value_free done [15:12:49]process_json_proto returns [15:12:49]Send response to host [15:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:12:49]free response buf [15:12:49]execute_script done [15:12:49]execute_script returns [15:12:49]free content buf [15:12:49]Sock 9.Close socket [15:12:49]Sock 9.Thread stoped [15:12:49]accept exits with 7 [15:12:49]New connection [15:12:49]New thread 3066826084 created [15:12:49]Thread 3066969444 joined [15:12:49]Waiting for new connection... [15:12:49] Sock 7.Parse request [15:12:49]Sock 7.Check first char [15:12:49]Sock 7.First char is OK [15:12:49]request: POST /json_proto HTTP/1.0 [15:12:49]Method: POST [15:12:49]URL: /json_proto [15:12:49]Method is POST - this is cgi request [15:12:49]url: /json_proto [15:12:49]query_string will be loaded in cgi processing [15:12:49]execute_cgi json_proto POST (null) [15:12:49]execute_cgi path=json_proto method=POST [15:12:49]POST find Content-Length [15:12:49]Host: 172.17.62.67:8080 [15:12:49]Content-Length: 331 [15:12:49]Content-Type: application/json [15:12:49] [15:12:49]POST finish read [15:12:49]Found Content-Length = 331 [15:12: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" ] } } [15:12:49]execute_script... [15:12: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" ] } } [15:12:49]POST & json_proto [15:12:49]process_json_proto [15:12:49]json parsed OK: [15:12:49]protocol is kg_v1.0 [15:12:49]action value=get_value [15:12:49]process_action get_value [15:12:49]cmd_get_value [15:12:49]process_action get_value done [15:12:49]requested_data is exist [15:12:49]produce_requested_data [15:12:49]requested_item fm.sale.total is exist - process it [15:12:49]SAM_PROTO_GetFMData [15:12:49]wFMCommunicate request_size=4 [15:12:49]MH_SAM_APDU [15:12:49]CAPDU: 80 13 03 00 [15:12:49]Write to MH i2c: E2 08 00 E1 04 80 13 03 00 00 00 00 00 64 [15:12:49]Write i2c OK [15:12:49]MH_I2C_Read... [15:12:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:12:50]Read from MH i2c: E2 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 FD 00 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 FD 00 E1 04 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 B0 [15:12:50]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:12:50]wFMCommunicate OK [15:12:50]wFMCommunicate request_size=4 [15:12:50]MH_SAM_APDU [15:12:50]CAPDU: 80 17 00 00 [15:12:50]Write to MH i2c: E2 08 00 E2 04 80 17 00 00 00 00 00 00 66 [15:12:50]Write i2c OK [15:12:50]MH_I2C_Read... [15:12:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:50]Read from MH i2c: E2 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 FD 00 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 FD 00 E2 04 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 92 [15:12:50]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:12:50]wFMCommunicate OK [15:12:50]wFMCommunicate request_size=4 [15:12:50]MH_SAM_APDU [15:12:50]CAPDU: 80 17 00 00 [15:12:50]Write to MH i2c: E2 08 00 E3 04 80 17 00 00 00 00 00 00 67 [15:12:50]Write i2c OK [15:12:50]MH_I2C_Read... [15:12:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:50]Read from MH i2c: E2 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 FD 00 [15:12:50]MH_I2C_Read... [15:12:50]Read from MH i2c: E2 FD 00 E3 04 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 3F [15:12:50]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:12:50]wFMCommunicate OK [15:12:50]wFMCommunicate request_size=4 [15:12:50]MH_SAM_APDU [15:12:50]CAPDU: 80 17 00 00 [15:12:50]Write to MH i2c: E2 08 00 E4 04 80 17 00 00 00 00 00 00 68 [15:12:50]Write i2c OK [15:12:50]MH_I2C_Read... [15:12:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:51]Read from MH i2c: E2 [15:12:51]MH_I2C_Read... [15:12:51]Read from MH i2c: E2 FD 00 [15:12:51]MH_I2C_Read... [15:12:51]Read from MH i2c: E2 FD 00 E4 04 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 E0 [15:12:51]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:12:51]wFMCommunicate OK [15:12:51]wFMCommunicate request_size=4 [15:12:51]MH_SAM_APDU [15:12:51]CAPDU: 80 17 00 00 [15:12:51]Write to MH i2c: E2 08 00 E5 04 80 17 00 00 00 00 00 00 69 [15:12:51]Write i2c OK [15:12:51]MH_I2C_Read... [15:12:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:12:51]Read from MH i2c: E2 [15:12:51]MH_I2C_Read... [15:12:51]Read from MH i2c: E2 E5 00 [15:12:51]MH_I2C_Read... [15:12:51]Read from MH i2c: E2 E5 00 E5 04 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:12:51]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:12:51]wFMCommunicate OK [15:12:51]SAM_PROTO_GetFMData done [15:12:51]requested_item fm.sale_refund.total is exist - process it [15:12:51]requested_item fm.buy.total is exist - process it [15:12:51]requested_item shift.sale.total is exist - process it [15:12:51]SAM_PROTO_GetShiftData [15:12:51]wFMCommunicate request_size=4 [15:12:51]MH_SAM_APDU [15:12:51]CAPDU: 80 13 02 00 [15:12:51]Write to MH i2c: E2 08 00 E6 04 80 13 02 00 00 00 00 00 68 [15:12:51]Write i2c OK [15:12:51]MH_I2C_Read... [15:12:51]OFD Sender: No OFD packet to send [15:12:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:12:52]Read from MH i2c: E2 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: E2 FD 00 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: E2 FD 00 E6 04 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C6 [15:12:52]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:12:52]wFMCommunicate OK [15:12:52]wFMCommunicate request_size=4 [15:12:52]MH_SAM_APDU [15:12:52]CAPDU: 80 17 00 00 [15:12:52]Write to MH i2c: E2 08 00 E7 04 80 17 00 00 00 00 00 00 6B [15:12:52]Write i2c OK [15:12:52]MH_I2C_Read... [15:12:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:52]Read from MH i2c: E2 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: E2 FD 00 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: E2 FD 00 E7 04 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 83 [15:12:52]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:12:52]wFMCommunicate OK [15:12:52]wFMCommunicate request_size=4 [15:12:52]MH_SAM_APDU [15:12:52]CAPDU: 80 17 00 00 [15:12:52]Write to MH i2c: E2 08 00 E8 04 80 17 00 00 00 00 00 00 6C [15:12:52]Write i2c OK [15:12:52]MH_I2C_Read... [15:12:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:52]Read from MH i2c: E2 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: E2 FD 00 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: E2 FD 00 E8 04 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 98 [15:12:52]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:12:52]wFMCommunicate OK [15:12:52]wFMCommunicate request_size=4 [15:12:52]MH_SAM_APDU [15:12:52]CAPDU: 80 17 00 00 [15:12:52]Write to MH i2c: E2 08 00 E9 04 80 17 00 00 00 00 00 00 6D [15:12:52]Write i2c OK [15:12:52]MH_I2C_Read... [15:12:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:53]Read from MH i2c: E2 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 FD 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 FD 00 E9 04 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 E5 [15:12:53]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:12:53]wFMCommunicate OK [15:12:53]wFMCommunicate request_size=4 [15:12:53]MH_SAM_APDU [15:12:53]CAPDU: 80 17 00 00 [15:12:53]Write to MH i2c: E2 08 00 EA 04 80 17 00 00 00 00 00 00 6E [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:12:53]Read from MH i2c: E2 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 D7 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 D7 00 EA 04 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [15:12:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:12:53]wFMCommunicate OK [15:12:53]SAM_PROTO_GetShiftData done [15:12:53]requested_item shift.sale.total_cash is exist - process it [15:12:53]requested_item shift.sale_refund.total is exist - process it [15:12:53]requested_item shift.sale_refund.total_cash is exist - process it [15:12:53]requested_item shift.buy.total is exist - process it [15:12:53]requested_item shift.buy.total_cash is exist - process it [15:12:53]produce_requested_data done [15:12:53]produce_requested_data return {"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:12:53]process_action_free get_value [15:12:53]json_value_free [15:12:53]json_value_free done [15:12:53]process_json_proto returns [15:12:53]Send response to host [15:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:12:53]free response buf [15:12:53]execute_script done [15:12:53]execute_script returns [15:12:53]free content buf [15:12:53]Sock 7.Close socket [15:12:53]Sock 7.Thread stoped [15:12:53]accept exits with 9 [15:12:53]New connection [15:12:53]New thread 3066969444 created [15:12:53]Thread 3066826084 joined [15:12:53]Waiting for new connection... [15:12:53] Sock 9.Parse request [15:12:53]Sock 9.Check first char [15:12:53]Sock 9.First char is OK [15:12:53]request: POST /json_proto HTTP/1.0 [15:12:53]Method: POST [15:12:53]URL: /json_proto [15:12:53]Method is POST - this is cgi request [15:12:53]url: /json_proto [15:12:53]query_string will be loaded in cgi processing [15:12:53]execute_cgi json_proto POST (null) [15:12:53]execute_cgi path=json_proto method=POST [15:12:53]POST find Content-Length [15:12:53]Host: 172.17.62.67:8080 [15:12:53]Content-Length: 264 [15:12:53]Content-Type: application/json [15:12:53] [15:12:53]POST finish read [15:12:53]Found Content-Length = 264 [15:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:53]execute_script... [15:12:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:53]POST & json_proto [15:12:53]process_json_proto [15:12:53]json parsed OK: [15:12:53]protocol is kg_v1.0 [15:12:53]action value=x_report [15:12:53]process_action x_report [15:12:53]cmd_x_report [15:12:53]MH_GetDate [15:12:53]Write to MH i2c: F0 00 00 EB 04 DE [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 05 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 05 00 EB 04 00 76 C2 F1 65 71 [15:12:53]GetLastDocTimeStamp 1710342669 [15:12:53]current date 1710342774 [15:12:53]FM_GetShiftState [15:12:53]SAM_PROTO_GetShiftState [15:12:53]wFMCommunicate request_size=4 [15:12:53]MH_SAM_APDU [15:12:53]CAPDU: 80 13 01 00 [15:12:53]Write to MH i2c: E2 08 00 EC 04 80 13 01 00 00 00 00 00 6D [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:53]Read from MH i2c: E2 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 0E 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 0E 00 EC 04 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 52 [15:12:53]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:12:53]wFMCommunicate OK [15:12:53]SAM_PROTO_GetShiftState done [15:12:53]FM_GetShiftState done [15:12:53]KKMCreateXReportDocument [15:12:53]Load OK [15:12:53]Malloc new data [15:12:53]MH_GetDate [15:12:53]Write to MH i2c: F0 00 00 ED 04 E0 [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 05 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: F0 05 00 ED 04 00 76 C2 F1 65 73 [15:12:53]Malloc new data [15:12:53]Malloc new data [15:12:53]wFMCommunicate request_size=4 [15:12:53]MH_SAM_APDU [15:12:53]CAPDU: 80 11 00 00 [15:12:53]Write to MH i2c: E2 08 00 EE 04 80 11 00 00 00 00 00 00 6C [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:53]Read from MH i2c: E2 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 17 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 17 00 EE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 BC [15:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:12:53]wFMCommunicate OK [15:12:53]SAM_PROTO_GetFieldsCounters [15:12:53]wFMCommunicate request_size=4 [15:12:53]MH_SAM_APDU [15:12:53]CAPDU: 80 13 00 00 [15:12:53]Write to MH i2c: E2 08 00 EF 04 80 13 00 00 00 00 00 00 6F [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:53]Read from MH i2c: E2 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 62 00 [15:12:53]MH_I2C_Read... [15:12:53]Read from MH i2c: E2 62 00 EF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 DB [15:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 [15:12:53]wFMCommunicate OK [15:12:53]SAM_PROTO_GetFieldsCounters done [15:12:53]Malloc new data [15:12:53]Malloc new data [15:12:53]Malloc new data [15:12:53]KKMCreateXReportDocument OK [15:12:53]KKMSetXReportData OK [15:12:53]KKMPrepareXReportFMData [15:12:53]SAM_PROTO_GetShiftData [15:12:53]wFMCommunicate request_size=4 [15:12:53]MH_SAM_APDU [15:12:53]CAPDU: 80 13 02 00 [15:12:53]Write to MH i2c: E2 08 00 F0 04 80 13 02 00 00 00 00 00 72 [15:12:53]Write i2c OK [15:12:53]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 FD 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 FD 00 F0 04 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D0 [15:12:54]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:12:54]wFMCommunicate OK [15:12:54]wFMCommunicate request_size=4 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 17 00 00 [15:12:54]Write to MH i2c: E2 08 00 F1 04 80 17 00 00 00 00 00 00 75 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 FD 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 FD 00 F1 04 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 8D [15:12:54]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:12:54]wFMCommunicate OK [15:12:54]wFMCommunicate request_size=4 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 17 00 00 [15:12:54]Write to MH i2c: E2 08 00 F2 04 80 17 00 00 00 00 00 00 76 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:55]Read from MH i2c: E2 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 FD 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 FD 00 F2 04 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 A2 [15:12:55]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:12:55]wFMCommunicate OK [15:12:55]wFMCommunicate request_size=4 [15:12:55]MH_SAM_APDU [15:12:55]CAPDU: 80 17 00 00 [15:12:55]Write to MH i2c: E2 08 00 F3 04 80 17 00 00 00 00 00 00 77 [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:55]Read from MH i2c: E2 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 FD 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: E2 FD 00 F3 04 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 EF [15:12:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:12:55]wFMCommunicate OK [15:12:55]wFMCommunicate request_size=4 [15:12:55]MH_SAM_APDU [15:12:55]CAPDU: 80 17 00 00 [15:12:55]Write to MH i2c: E2 08 00 F4 04 80 17 00 00 00 00 00 00 78 [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:12:56]Read from MH i2c: E2 [15:12:56]MH_I2C_Read... [15:12:56]Read from MH i2c: E2 D7 00 [15:12:56]MH_I2C_Read... [15:12:56]Read from MH i2c: E2 D7 00 F4 04 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [15:12:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:12:56]wFMCommunicate OK [15:12:56]SAM_PROTO_GetShiftData done [15:12:56]1194 (1206) - счетчики итогов смены [15:12:56] 1134 (4) - 146 - количество чеков со всеми признаками расчетов [15:12:56] 1129 (156) - счетчики операций «приход» [15:12:56] 1135 (4) - 140 - количество чеков по признаку расчетов [15:12:56] 1201 (3) - 113329.62 - общая итоговая сумма в чеках [15:12:56] 1136 (3) - 82771.00 - итоговая сумма в чеках наличными [15:12:56] 1138 (3) - 30558.62 - итоговая сумма в чеках безналичными [15:12:56] 1024 (123) - суммы налогов [15:12:56] 1006 (9) - суммы НДС [15:12:56] 1010 (1) - 0% - код ставки НДС [15:12:56] 1011 (0) - 0.00 - сумма НДС по ставке [15:12:56] 1006 (12) - суммы НДС [15:12:56] 1010 (1) - 12% - код ставки НДС [15:12:56] 1011 (3) - 12036.84 - сумма НДС по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 0% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (12) - суммы НСП [15:12:56] 1014 (1) - 1% - код ставки НСП [15:12:56] 1015 (3) - 1002.91 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 2% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 3% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 5% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 0,50% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 1,50% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1130 (152) - счетчики операций «возврат прихода» [15:12:56] 1135 (4) - 6 - количество чеков по признаку расчетов [15:12:56] 1201 (3) - 9345.00 - общая итоговая сумма в чеках [15:12:56] 1136 (3) - 9345.00 - итоговая сумма в чеках наличными [15:12:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:12:56] 1024 (122) - суммы налогов [15:12:56] 1006 (9) - суммы НДС [15:12:56] 1010 (1) - 0% - код ставки НДС [15:12:56] 1011 (0) - 0.00 - сумма НДС по ставке [15:12:56] 1006 (12) - суммы НДС [15:12:56] 1010 (1) - 12% - код ставки НДС [15:12:56] 1011 (3) - 992.47 - сумма НДС по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 0% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (11) - суммы НСП [15:12:56] 1014 (1) - 1% - код ставки НСП [15:12:56] 1015 (2) - 82.70 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 2% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 3% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 5% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 0,50% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 1,50% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1131 (141) - счетчики операций «расход» [15:12:56] 1135 (4) - 0 - количество чеков по признаку расчетов [15:12:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:12:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:12:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:12:56] 1024 (117) - суммы налогов [15:12:56] 1006 (9) - суммы НДС [15:12:56] 1010 (1) - 0% - код ставки НДС [15:12:56] 1011 (0) - 0.00 - сумма НДС по ставке [15:12:56] 1006 (9) - суммы НДС [15:12:56] 1010 (1) - 12% - код ставки НДС [15:12:56] 1011 (0) - 0.00 - сумма НДС по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 0% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 1% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 2% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 3% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 5% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 0,50% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 1,50% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1132 (141) - счетчики операций «возврат расхода» [15:12:56] 1135 (4) - 0 - количество чеков по признаку расчетов [15:12:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:12:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:12:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:12:56] 1024 (117) - суммы налогов [15:12:56] 1006 (9) - суммы НДС [15:12:56] 1010 (1) - 0% - код ставки НДС [15:12:56] 1011 (0) - 0.00 - сумма НДС по ставке [15:12:56] 1006 (9) - суммы НДС [15:12:56] 1010 (1) - 12% - код ставки НДС [15:12:56] 1011 (0) - 0.00 - сумма НДС по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 0% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 1% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 2% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 3% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 5% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 0,50% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1007 (9) - суммы НСП [15:12:56] 1014 (1) - 1,50% - код ставки НСП [15:12:56] 1015 (0) - 0.00 - сумма НСП по ставке [15:12:56] 1133 (588) - - счетчики коррекции - не используются [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1194 (04AA) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1134 (046E) [15:12:56]Malloc new data [15:12:56]Processing tag 1129 (0469) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1135 (046F) [15:12:56]Malloc new data [15:12:56]Processing tag 1201 (04B1) [15:12:56]Malloc new data [15:12:56]Processing tag 1136 (0470) [15:12:56]Malloc new data [15:12:56]Processing tag 1138 (0472) [15:12:56]Malloc new data [15:12:56]Processing tag 1024 (0400) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1006 (03EE) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1010 (03F2) [15:12:56]Malloc new data [15:12:56]Processing tag 1011 (03F3) [15:12:56]Malloc new data [15:12:56]SetTLVBufToDocument err=0 [15:12:56]Processing tag 1006 (03EE) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1010 (03F2) [15:12:56]Malloc new data [15:12:56]Processing tag 1011 (03F3) [15:12:56]Malloc new data [15:12:56]SetTLVBufToDocument err=0 [15:12:56]Processing tag 1007 (03EF) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1014 (03F6) [15:12:56]Malloc new data [15:12:56]Processing tag 1015 (03F7) [15:12:56]Malloc new data [15:12:56]SetTLVBufToDocument err=0 [15:12:56]Processing tag 1007 (03EF) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1014 (03F6) [15:12:56]Malloc new data [15:12:56]Processing tag 1015 (03F7) [15:12:56]Malloc new data [15:12:56]SetTLVBufToDocument err=0 [15:12:56]Processing tag 1007 (03EF) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1014 (03F6) [15:12:56]Malloc new data [15:12:56]Processing tag 1015 (03F7) [15:12:56]Malloc new data [15:12:56]SetTLVBufToDocument err=0 [15:12:56]Processing tag 1007 (03EF) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1014 (03F6) [15:12:56]Malloc new data [15:12:56]Processing tag 1015 (03F7) [15:12:56]Malloc new data [15:12:56]SetTLVBufToDocument err=0 [15:12:56]Processing tag 1007 (03EF) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1014 (03F6) [15:12:56]Malloc new data [15:12:56]Processing tag 1015 (03F7) [15:12:56]Malloc new data [15:12:56]SetTLVBufToDocument err=0 [15:12:56]Processing tag 1007 (03EF) [15:12:56]Load OK [15:12:56]SetTLVBufToDocument [15:12:56]Processing tag 1014 (03F6) [15:12:56]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1130 (046A) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1135 (046F) [15:12:57]Malloc new data [15:12:57]Processing tag 1201 (04B1) [15:12:57]Malloc new data [15:12:57]Processing tag 1136 (0470) [15:12:57]Malloc new data [15:12:57]Processing tag 1138 (0472) [15:12:57]Malloc new data [15:12:57]Processing tag 1024 (0400) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1006 (03EE) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1010 (03F2) [15:12:57]Malloc new data [15:12:57]Processing tag 1011 (03F3) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1006 (03EE) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1010 (03F2) [15:12:57]Malloc new data [15:12:57]Processing tag 1011 (03F3) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]OFD Sender: No OFD packet to send [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1131 (046B) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1135 (046F) [15:12:57]Malloc new data [15:12:57]Processing tag 1201 (04B1) [15:12:57]Malloc new data [15:12:57]Processing tag 1136 (0470) [15:12:57]Malloc new data [15:12:57]Processing tag 1138 (0472) [15:12:57]Malloc new data [15:12:57]Processing tag 1024 (0400) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1006 (03EE) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1010 (03F2) [15:12:57]Malloc new data [15:12:57]Processing tag 1011 (03F3) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1006 (03EE) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1010 (03F2) [15:12:57]Malloc new data [15:12:57]Processing tag 1011 (03F3) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1132 (046C) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1135 (046F) [15:12:57]Malloc new data [15:12:57]Processing tag 1201 (04B1) [15:12:57]Malloc new data [15:12:57]Processing tag 1136 (0470) [15:12:57]Malloc new data [15:12:57]Processing tag 1138 (0472) [15:12:57]Malloc new data [15:12:57]Processing tag 1024 (0400) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1006 (03EE) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1010 (03F2) [15:12:57]Malloc new data [15:12:57]Processing tag 1011 (03F3) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1006 (03EE) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1010 (03F2) [15:12:57]Malloc new data [15:12:57]Processing tag 1011 (03F3) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1007 (03EF) [15:12:57]Load OK [15:12:57]SetTLVBufToDocument [15:12:57]Processing tag 1014 (03F6) [15:12:57]Malloc new data [15:12:57]Processing tag 1015 (03F7) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Processing tag 1133 (046D) [15:12:57]Malloc new data [15:12:57]SetTLVBufToDocument err=0 [15:12:57]SetTLVBufToDocument err=0 [15:12:57]Malloc new data [15:12:57]SAM_PROTO_GetFMData [15:12:57]wFMCommunicate request_size=4 [15:12:57]MH_SAM_APDU [15:12:57]CAPDU: 80 13 03 00 [15:12:57]Write to MH i2c: E2 08 00 F5 04 80 13 03 00 00 00 00 00 78 [15:12:57]Write i2c OK [15:12:57]MH_I2C_Read... [15:12:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:12:57]Read from MH i2c: E2 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: E2 FD 00 [15:12:57]MH_I2C_Read... [15:12:57]Read from MH i2c: E2 FD 00 F5 04 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 C4 [15:12:57]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:12:57]wFMCommunicate OK [15:12:57]wFMCommunicate request_size=4 [15:12:57]MH_SAM_APDU [15:12:57]CAPDU: 80 17 00 00 [15:12:57]Write to MH i2c: E2 08 00 F6 04 80 17 00 00 00 00 00 00 7A [15:12:57]Write i2c OK [15:12:57]MH_I2C_Read... [15:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:58]Read from MH i2c: E2 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 FD 00 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 FD 00 F6 04 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 A6 [15:12:58]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:12:58]wFMCommunicate OK [15:12:58]wFMCommunicate request_size=4 [15:12:58]MH_SAM_APDU [15:12:58]CAPDU: 80 17 00 00 [15:12:58]Write to MH i2c: E2 08 00 F7 04 80 17 00 00 00 00 00 00 7B [15:12:58]Write i2c OK [15:12:58]MH_I2C_Read... [15:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:58]Read from MH i2c: E2 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 FD 00 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 FD 00 F7 04 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 53 [15:12:58]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:12:58]wFMCommunicate OK [15:12:58]wFMCommunicate request_size=4 [15:12:58]MH_SAM_APDU [15:12:58]CAPDU: 80 17 00 00 [15:12:58]Write to MH i2c: E2 08 00 F8 04 80 17 00 00 00 00 00 00 7C [15:12:58]Write i2c OK [15:12:58]MH_I2C_Read... [15:12:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:12:59]Read from MH i2c: E2 [15:12:59]MH_I2C_Read... [15:12:59]Read from MH i2c: E2 FD 00 [15:12:59]MH_I2C_Read... [15:12:59]Read from MH i2c: E2 FD 00 F8 04 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 F4 [15:12:59]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:12:59]wFMCommunicate OK [15:12:59]wFMCommunicate request_size=4 [15:12:59]MH_SAM_APDU [15:12:59]CAPDU: 80 17 00 00 [15:12:59]Write to MH i2c: E2 08 00 F9 04 80 17 00 00 00 00 00 00 7D [15:12:59]Write i2c OK [15:12:59]MH_I2C_Read... [15:12:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:12:59]Read from MH i2c: E2 [15:12:59]MH_I2C_Read... [15:12:59]Read from MH i2c: E2 E5 00 [15:12:59]MH_I2C_Read... [15:12:59]Read from MH i2c: E2 E5 00 F9 04 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 61 [15:12:59]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:12:59]wFMCommunicate OK [15:12:59]SAM_PROTO_GetFMData done [15:12:59]FM_GetFMData:85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 [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 26 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 26 00 01 00 00 03 01 00 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 57 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF E3 [00:00:11]Possible old version of MH firmware - no need to switch from boot [00:00:11]Model is 3 [00:00:11]MH firmware is 1 [00:00:11]MH boot firmware is 0 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 02 00 41 00 40 00 FF FF 5C [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 02 00 00 D8 [00:00:11]Write to MH i2c: D5 00 00 03 00 D7 [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 03 00 00 D8 [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 04 00 F3 [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 05 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 05 00 04 00 00 B0 C2 F1 65 C0 [15:13:52]Current date/time: 13.03.2024 15:13 [15:13:52]FM_Init [15:13:52]wFMConnect [15:13:52]MH_SAM_On [15:13:52]Write to MH i2c: E0 00 00 05 00 E4 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_init finished! [15:13:52]*** atr: [15:13:52]*** 0F 3B D5 18 FF 81 91 FE [15:13:52]*** 1F C3 80 73 C8 21 10 0A [15:13:52]*** 00 00 00 00 00 00 00 00 [15:13:52]*** 00 00 00 00 00 00 00 00 [15:13:52]*** 00 00 00 00 00 00 00 00 [15:13:52]*** 00 00 00 00 00 00 00 00 [15:13:52]*** 00 00 00 00 00 00 00 00 [15:13:52]*** 00 00 00 00 00 00 00 00 [15:13:52]Read from MH i2c: E0 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E0 10 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E0 10 00 05 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 03 [15:13:52]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:13:52]wFMCommunicate request_size=10 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:13:52]Write to MH i2c: E2 0D 00 06 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B0 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 06 00 00 90 00 7A [15:13:52]RAPDU: 90 00 [15:13:52]wFMCommunicate OK [15:13:52]wFMCommunicate request_size=4 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 11 00 00 [15:13:52]Write to MH i2c: E2 08 00 07 00 80 11 00 00 00 00 00 00 81 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 17 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 17 00 07 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D1 [15:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:13:52]wFMCommunicate OK [15:13:52]Detected FM SN is 0000000000874811 [15:13:52]Stored FM SN is 0000000000874811 [15:13:52]wFMCommunicate request_size=9 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 16 00 00 04 32 7F 00 00 [15:13:52]Write to MH i2c: E2 0C 00 08 00 80 16 00 00 04 00 32 7F 00 00 00 00 40 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 08 00 00 90 00 7C [15:13:52]RAPDU: 90 00 [15:13:52]wFMCommunicate OK [15:13:52]FM PIN OK [15:13:52]wFMCommunicate request_size=8 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 14 04 00 03 02 00 01 [15:13:52]Write to MH i2c: E2 0B 00 09 00 80 14 04 00 03 00 02 00 01 00 00 93 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:13:52]RAPDU: 90 00 [15:13:52]wFMCommunicate OK [15:13:52]wFMCommunicate request_size=13 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:13:52]Write to MH i2c: E2 10 00 0A 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B8 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [15:13:52]RAPDU: 90 00 [15:13:52]wFMCommunicate OK [15:13:52]wFMCommunicate request_size=4 [15:13:52]MH_SAM_APDU [15:13:52]CAPDU: 80 11 00 00 [15:13:52]Write to MH i2c: E2 08 00 0B 00 80 11 00 00 00 00 00 00 85 [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:52]Read from MH i2c: E2 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 17 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: E2 17 00 0B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D5 [15:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:13:52]wFMCommunicate OK [15:13:52]DocumentArchiveInit [15:13:52]Start Httpd... [15:13:52]Httpd thread 3067145572 created [15:13:52]Write to MH i2c: 01 00 00 0C 00 0C [15:13:52]Write i2c OK [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 07 00 [15:13:52]MH_I2C_Read... [15:13:52]Read from MH i2c: 01 07 00 0C 00 00 80 00 00 00 FF 0F A1 [15:13:52]MH Int Process started [15:13:52]Allocated Socket 8 [15:13:52]Bind OK [15:13:52]Listen OK [15:13:52]httpd running on port 8080 [15:13:52]Waiting for new connection... [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:00]accept exits with 9 [15:14:00]New connection [15:14:00]New thread 3066858852 created [15:14:00]Waiting for new connection... [15:14:00] Sock 9.Parse request [15:14:00]Sock 9.Check first char [15:14:00]Sock 9.First char is OK [15:14:00]request: POST /json_proto HTTP/1.0 [15:14:00]Method: POST [15:14:00]URL: /json_proto [15:14:00]Method is POST - this is cgi request [15:14:00]url: /json_proto [15:14:00]query_string will be loaded in cgi processing [15:14:00]execute_cgi json_proto POST (null) [15:14:00]execute_cgi path=json_proto method=POST [15:14:00]POST find Content-Length [15:14:00]Host: 172.17.62.67:8080 [15:14:00]Content-Length: 215 [15:14:00]Content-Type: application/json [15:14:00] [15:14:00]POST finish read [15:14:00]Found Content-Length = 215 [15:14:00]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:14:00]execute_script... [15:14:00]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:14:00]POST & json_proto [15:14:00]process_json_proto [15:14:00]json parsed OK: [15:14:00]protocol is kg_v1.0 [15:14:00]action value=get_value [15:14:00]process_action get_value [15:14:00]cmd_get_value [15:14:00]process_action get_value done [15:14:00]requested_data is exist [15:14:00]produce_requested_data [15:14:00]requested_item kkm.sn is exist - process it [15:14:00]requested_item kkm.ver is exist - process it [15:14:00]requested_item fm.sn is exist - process it [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 11 00 00 [15:14:00]Write to MH i2c: E2 08 00 0D 00 80 11 00 00 00 00 00 00 87 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 17 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 17 00 0D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 D7 [15:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:14:00]wFMCommunicate OK [15:14:00]requested_item fd.num is exist - process it [15:14:00]SAM_PROTO_GetFieldsCounters [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 13 00 00 [15:14:00]Write to MH i2c: E2 08 00 0E 00 80 13 00 00 00 00 00 00 8A [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 62 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 62 00 0E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 F6 [15:14:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_GetFieldsCounters done [15:14:00]requested_item shift.num is exist - process it [15:14:00]requested_item shift.opened is exist - process it [15:14:00]req_shift_opened [15:14:00]FM_GetShiftState [15:14:00]SAM_PROTO_GetShiftState [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 13 01 00 [15:14:00]Write to MH i2c: E2 08 00 0F 00 80 13 01 00 00 00 00 00 8C [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0E 00 0F 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 71 [15:14:00]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_GetShiftState done [15:14:00]FM_GetShiftState done [15:14:00]req_shift_opened done [15:14:00]requested_item shift.open_date is exist - process it [15:14:00]req_shift_open_date [15:14:00]req_shift_open_date done [15:14:00]produce_requested_data done [15:14:00]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:14:00]process_action_free get_value [15:14:00]json_value_free [15:14:00]json_value_free done [15:14:00]process_json_proto returns [15:14:00]Send response to host [15:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:14:00]free response buf [15:14:00]execute_script done [15:14:00]execute_script returns [15:14:00]free content buf [15:14:00]Sock 9.Close socket [15:14:00]Sock 9.Thread stoped [15:14:00]accept exits with 6 [15:14:00]New connection [15:14:00]New thread 3066715492 created [15:14:00]Thread 3066858852 joined [15:14:00]Waiting for new connection... [15:14:00] Sock 6.Parse request [15:14:00]Sock 6.Check first char [15:14:00]Sock 6.First char is OK [15:14:00]request: POST /json_proto HTTP/1.0 [15:14:00]Method: POST [15:14:00]URL: /json_proto [15:14:00]Method is POST - this is cgi request [15:14:00]url: /json_proto [15:14:00]query_string will be loaded in cgi processing [15:14:00]execute_cgi json_proto POST (null) [15:14:00]execute_cgi path=json_proto method=POST [15:14:00]POST find Content-Length [15:14:00]Host: 172.17.62.67:8080 [15:14:00]Content-Length: 331 [15:14:00]Content-Type: application/json [15:14:00] [15:14:00]POST finish read [15:14:00]Found Content-Length = 331 [15:14: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:14:00]execute_script... [15:14: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:14:00]POST & json_proto [15:14:00]process_json_proto [15:14:00]json parsed OK: [15:14:00]protocol is kg_v1.0 [15:14:00]action value=get_value [15:14:00]process_action get_value [15:14:00]cmd_get_value [15:14:00]process_action get_value done [15:14:00]requested_data is exist [15:14:00]produce_requested_data [15:14:00]requested_item fm.sale.total is exist - process it [15:14:00]SAM_PROTO_GetFMData [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 13 03 00 [15:14:00]Write to MH i2c: E2 08 00 10 00 80 13 03 00 00 00 00 00 8F [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 10 00 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 DB [15:14:01]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:14:01]wFMCommunicate OK [15:14:01]wFMCommunicate request_size=4 [15:14:01]MH_SAM_APDU [15:14:01]CAPDU: 80 17 00 00 [15:14:01]Write to MH i2c: E2 08 00 11 00 80 17 00 00 00 00 00 00 91 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 11 00 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 BD [15:14:01]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:14:01]wFMCommunicate OK [15:14:01]wFMCommunicate request_size=4 [15:14:01]MH_SAM_APDU [15:14:01]CAPDU: 80 17 00 00 [15:14:01]Write to MH i2c: E2 08 00 12 00 80 17 00 00 00 00 00 00 92 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 12 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 6A [15:14:01]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:14:01]wFMCommunicate OK [15:14:01]wFMCommunicate request_size=4 [15:14:01]MH_SAM_APDU [15:14:01]CAPDU: 80 17 00 00 [15:14:01]Write to MH i2c: E2 08 00 13 00 80 17 00 00 00 00 00 00 93 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:01]Read from MH i2c: E2 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: E2 FD 00 13 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 0B [15:14:01]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:14:01]wFMCommunicate OK [15:14:01]wFMCommunicate request_size=4 [15:14:01]MH_SAM_APDU [15:14:01]CAPDU: 80 17 00 00 [15:14:01]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 E5 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 E5 00 14 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 78 [15:14:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_GetFMData done [15:14:02]requested_item fm.sale_refund.total is exist - process it [15:14:02]requested_item fm.buy.total is exist - process it [15:14:02]requested_item shift.sale.total is exist - process it [15:14:02]SAM_PROTO_GetShiftData [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 13 02 00 [15:14:02]Write to MH i2c: E2 08 00 15 00 80 13 02 00 00 00 00 00 93 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 FD 00 [15:14:02]MH_I2C_Read... [15:14:02]OFD Sender: No OFD packet to send [15:14:02]Read from MH i2c: E2 FD 00 15 00 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F1 [15:14:02]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:14:02]wFMCommunicate OK [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 17 00 00 [15:14:02]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 FD 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 FD 00 16 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 AE [15:14:02]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:14:02]wFMCommunicate OK [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 17 00 00 [15:14:02]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 FD 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 FD 00 17 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 C3 [15:14:03]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:14:03]wFMCommunicate OK [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 17 00 00 [15:14:03]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 FD 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 FD 00 18 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 10 [15:14:03]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:14:03]wFMCommunicate OK [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 17 00 00 [15:14:03]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 D7 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 D7 00 19 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:14:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:14:03]wFMCommunicate OK [15:14:03]SAM_PROTO_GetShiftData done [15:14:03]requested_item shift.sale.total_cash is exist - process it [15:14:03]requested_item shift.sale_refund.total is exist - process it [15:14:03]requested_item shift.sale_refund.total_cash is exist - process it [15:14:03]requested_item shift.buy.total is exist - process it [15:14:03]requested_item shift.buy.total_cash is exist - process it [15:14:03]produce_requested_data done [15:14:03]produce_requested_data return {"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:14:03]process_action_free get_value [15:14:03]json_value_free [15:14:03]json_value_free done [15:14:03]process_json_proto returns [15:14:03]Send response to host [15:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:14:03]free response buf [15:14:03]execute_script done [15:14:03]execute_script returns [15:14:03]free content buf [15:14:03]Sock 6.Close socket [15:14:03]Sock 6.Thread stoped [15:14:03]accept exits with 9 [15:14:03]New connection [15:14:03]New thread 3066858852 created [15:14:03]Thread 3066715492 joined [15:14:03]Waiting for new connection... [15:14:03] Sock 9.Parse request [15:14:03]Sock 9.Check first char [15:14:03]Sock 9.First char is OK [15:14:03]request: POST /json_proto HTTP/1.0 [15:14:03]Method: POST [15:14:03]URL: /json_proto [15:14:03]Method is POST - this is cgi request [15:14:03]url: /json_proto [15:14:03]query_string will be loaded in cgi processing [15:14:03]execute_cgi json_proto POST (null) [15:14:03]execute_cgi path=json_proto method=POST [15:14:03]POST find Content-Length [15:14:03]Host: 172.17.62.67:8080 [15:14:03]Content-Length: 331 [15:14:03]Content-Type: application/json [15:14:03] [15:14:03]POST finish read [15:14:03]Found Content-Length = 331 [15:14:03]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:14:03]execute_script... [15:14:03]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:14:03]POST & json_proto [15:14:03]process_json_proto [15:14:03]json parsed OK: [15:14:03]protocol is kg_v1.0 [15:14:03]action value=get_value [15:14:03]process_action get_value [15:14:03]cmd_get_value [15:14:03]process_action get_value done [15:14:03]requested_data is exist [15:14:03]produce_requested_data [15:14:03]requested_item fm.sale.total is exist - process it [15:14:03]SAM_PROTO_GetFMData [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 13 03 00 [15:14:03]Write to MH i2c: E2 08 00 1A 00 80 13 03 00 00 00 00 00 99 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 FD 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 FD 00 1A 00 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 E5 [15:14:04]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:14:04]wFMCommunicate OK [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 17 00 00 [15:14:04]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 FD 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 FD 00 1B 00 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 C7 [15:14:04]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:14:04]wFMCommunicate OK [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 17 00 00 [15:14:04]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 FD 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 FD 00 1C 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 74 [15:14:04]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:14:04]wFMCommunicate OK [15:14:04]wFMCommunicate request_size=4 [15:14:04]MH_SAM_APDU [15:14:04]CAPDU: 80 17 00 00 [15:14:04]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:05]Read from MH i2c: E2 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 FD 00 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 FD 00 1D 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 15 [15:14:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:14:05]wFMCommunicate OK [15:14:05]wFMCommunicate request_size=4 [15:14:05]MH_SAM_APDU [15:14:05]CAPDU: 80 17 00 00 [15:14:05]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [15:14:05]Write i2c OK [15:14:05]MH_I2C_Read... [15:14:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:14:05]Read from MH i2c: E2 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 E5 00 [15:14:05]MH_I2C_Read... [15:14:05]Read from MH i2c: E2 E5 00 1E 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [15:14:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:14:05]wFMCommunicate OK [15:14:05]SAM_PROTO_GetFMData done [15:14:05]requested_item fm.sale_refund.total is exist - process it [15:14:05]requested_item fm.buy.total is exist - process it [15:14:05]requested_item shift.sale.total is exist - process it [15:14:05]SAM_PROTO_GetShiftData [15:14:05]wFMCommunicate request_size=4 [15:14:05]MH_SAM_APDU [15:14:05]CAPDU: 80 13 02 00 [15:14:05]Write to MH i2c: E2 08 00 1F 00 80 13 02 00 00 00 00 00 9D [15:14:05]Write i2c OK [15:14:05]MH_I2C_Read... [15:14:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:14:06]Read from MH i2c: E2 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 FD 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 FD 00 1F 00 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FB [15:14:06]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:14:06]wFMCommunicate OK [15:14:06]wFMCommunicate request_size=4 [15:14:06]MH_SAM_APDU [15:14:06]CAPDU: 80 17 00 00 [15:14:06]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:06]Read from MH i2c: E2 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 FD 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 FD 00 20 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 B8 [15:14:06]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:14:06]wFMCommunicate OK [15:14:06]wFMCommunicate request_size=4 [15:14:06]MH_SAM_APDU [15:14:06]CAPDU: 80 17 00 00 [15:14:06]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [15:14:06]Write i2c OK [15:14:06]MH_I2C_Read... [15:14:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:06]Read from MH i2c: E2 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 FD 00 [15:14:06]MH_I2C_Read... [15:14:06]Read from MH i2c: E2 FD 00 21 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 CD [15:14:06]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 17 00 00 [15:14:07]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 FD 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 FD 00 22 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 1A [15:14:07]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:14:07]wFMCommunicate OK [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 17 00 00 [15:14:07]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]OFD Sender: No OFD packet to send [15:14:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 D7 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 D7 00 23 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 86 [15:14:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:14:07]wFMCommunicate OK [15:14:07]SAM_PROTO_GetShiftData done [15:14:07]requested_item shift.sale.total_cash is exist - process it [15:14:07]requested_item shift.sale_refund.total is exist - process it [15:14:07]requested_item shift.sale_refund.total_cash is exist - process it [15:14:07]requested_item shift.buy.total is exist - process it [15:14:07]requested_item shift.buy.total_cash is exist - process it [15:14:07]produce_requested_data done [15:14:07]produce_requested_data return {"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:14:07]process_action_free get_value [15:14:07]json_value_free [15:14:07]json_value_free done [15:14:07]process_json_proto returns [15:14:07]Send response to host [15:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:14:07]free response buf [15:14:07]execute_script done [15:14:07]execute_script returns [15:14:07]free content buf [15:14:07]Sock 9.Close socket [15:14:07]Sock 9.Thread stoped [15:14:07]accept exits with 6 [15:14:07]New connection [15:14:07]New thread 3066715492 created [15:14:07]Thread 3066858852 joined [15:14:07]Waiting for new connection... [15:14:07] Sock 6.Parse request [15:14:07]Sock 6.Check first char [15:14:07]Sock 6.First char is OK [15:14:07]request: POST /json_proto HTTP/1.0 [15:14:07]Method: POST [15:14:07]URL: /json_proto [15:14:07]Method is POST - this is cgi request [15:14:07]url: /json_proto [15:14:07]query_string will be loaded in cgi processing [15:14:07]execute_cgi json_proto POST (null) [15:14:07]execute_cgi path=json_proto method=POST [15:14:07]POST find Content-Length [15:14:07]Host: 172.17.62.67:8080 [15:14:07]Content-Length: 264 [15:14:07]Content-Type: application/json [15:14:07] [15:14:07]POST finish read [15:14:07]Found Content-Length = 264 [15:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:07]execute_script... [15:14:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:07]POST & json_proto [15:14:07]process_json_proto [15:14:07]json parsed OK: [15:14:07]protocol is kg_v1.0 [15:14:07]action value=x_report [15:14:07]process_action x_report [15:14:07]cmd_x_report [15:14:07]MH_GetDate [15:14:07]Write to MH i2c: F0 00 00 24 00 13 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: F0 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: F0 05 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: F0 05 00 24 00 00 C0 C2 F1 65 F0 [15:14:07]GetLastDocTimeStamp 1710342669 [15:14:07]current date 1710342848 [15:14:07]FM_GetShiftState [15:14:07]SAM_PROTO_GetShiftState [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 13 01 00 [15:14:07]Write to MH i2c: E2 08 00 25 00 80 13 01 00 00 00 00 00 A2 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 0E 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 0E 00 25 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 87 [15:14:07]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:14:07]wFMCommunicate OK [15:14:07]SAM_PROTO_GetShiftState done [15:14:07]FM_GetShiftState done [15:14:07]KKMCreateXReportDocument [15:14:07]Load OK [15:14:07]Malloc new data [15:14:07]MH_GetDate [15:14:07]Write to MH i2c: F0 00 00 26 00 15 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: F0 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: F0 05 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: F0 05 00 26 00 00 C0 C2 F1 65 F2 [15:14:07]Malloc new data [15:14:07]Malloc new data [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 11 00 00 [15:14:07]Write to MH i2c: E2 08 00 27 00 80 11 00 00 00 00 00 00 A1 [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:08]Read from MH i2c: E2 17 00 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: E2 17 00 27 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 F1 [15:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:14:08]wFMCommunicate OK [15:14:08]SAM_PROTO_GetFieldsCounters [15:14:08]wFMCommunicate request_size=4 [15:14:08]MH_SAM_APDU [15:14:08]CAPDU: 80 13 00 00 [15:14:08]Write to MH i2c: E2 08 00 28 00 80 13 00 00 00 00 00 00 A4 [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:08]Read from MH i2c: E2 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: E2 62 00 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: E2 62 00 28 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 10 [15:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 [15:14:08]wFMCommunicate OK [15:14:08]SAM_PROTO_GetFieldsCounters done [15:14:08]Malloc new data [15:14:08]Malloc new data [15:14:08]Malloc new data [15:14:08]KKMCreateXReportDocument OK [15:14:08]KKMSetXReportData OK [15:14:08]KKMPrepareXReportFMData [15:14:08]SAM_PROTO_GetShiftData [15:14:08]wFMCommunicate request_size=4 [15:14:08]MH_SAM_APDU [15:14:08]CAPDU: 80 13 02 00 [15:14:08]Write to MH i2c: E2 08 00 29 00 80 13 02 00 00 00 00 00 A7 [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:14:08]Read from MH i2c: E2 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: E2 FD 00 [15:14:08]MH_I2C_Read... [15:14:08]Read from MH i2c: E2 FD 00 29 00 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 05 [15:14:08]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:14:08]wFMCommunicate OK [15:14:08]wFMCommunicate request_size=4 [15:14:08]MH_SAM_APDU [15:14:08]CAPDU: 80 17 00 00 [15:14:08]Write to MH i2c: E2 08 00 2A 00 80 17 00 00 00 00 00 00 AA [15:14:08]Write i2c OK [15:14:08]MH_I2C_Read... [15:14:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 FD 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 FD 00 2A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 C2 [15:14:09]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:14:09]wFMCommunicate OK [15:14:09]wFMCommunicate request_size=4 [15:14:09]MH_SAM_APDU [15:14:09]CAPDU: 80 17 00 00 [15:14:09]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [15:14:09]Write i2c OK [15:14:09]MH_I2C_Read... [15:14:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 FD 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 FD 00 2B 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 D7 [15:14:09]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:14:09]wFMCommunicate OK [15:14:09]wFMCommunicate request_size=4 [15:14:09]MH_SAM_APDU [15:14:09]CAPDU: 80 17 00 00 [15:14:09]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [15:14:09]Write i2c OK [15:14:09]MH_I2C_Read... [15:14:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:09]Read from MH i2c: E2 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 FD 00 [15:14:09]MH_I2C_Read... [15:14:09]Read from MH i2c: E2 FD 00 2C 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 24 [15:14:10]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:14:10]wFMCommunicate OK [15:14:10]wFMCommunicate request_size=4 [15:14:10]MH_SAM_APDU [15:14:10]CAPDU: 80 17 00 00 [15:14:10]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [15:14:10]Write i2c OK [15:14:10]MH_I2C_Read... [15:14:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:14:10]Read from MH i2c: E2 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 D7 00 [15:14:10]MH_I2C_Read... [15:14:10]Read from MH i2c: E2 D7 00 2D 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 90 [15:14:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:14:10]wFMCommunicate OK [15:14:10]SAM_PROTO_GetShiftData done [15:14:10]1194 (1206) - счетчики итогов смены [15:14:10] 1134 (4) - 146 - количество чеков со всеми признаками расчетов [15:14:10] 1129 (156) - счетчики операций «приход» [15:14:10] 1135 (4) - 140 - количество чеков по признаку расчетов [15:14:10] 1201 (3) - 113329.62 - общая итоговая сумма в чеках [15:14:10] 1136 (3) - 82771.00 - итоговая сумма в чеках наличными [15:14:10] 1138 (3) - 30558.62 - итоговая сумма в чеках безналичными [15:14:10] 1024 (123) - суммы налогов [15:14:10] 1006 (9) - суммы НДС [15:14:10] 1010 (1) - 0% - код ставки НДС [15:14:10] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:10] 1006 (12) - суммы НДС [15:14:10] 1010 (1) - 12% - код ставки НДС [15:14:10] 1011 (3) - 12036.84 - сумма НДС по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 0% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (12) - суммы НСП [15:14:10] 1014 (1) - 1% - код ставки НСП [15:14:10] 1015 (3) - 1002.91 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 2% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 3% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 5% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 0,50% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 1,50% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1130 (152) - счетчики операций «возврат прихода» [15:14:10] 1135 (4) - 6 - количество чеков по признаку расчетов [15:14:10] 1201 (3) - 9345.00 - общая итоговая сумма в чеках [15:14:10] 1136 (3) - 9345.00 - итоговая сумма в чеках наличными [15:14:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:10] 1024 (122) - суммы налогов [15:14:10] 1006 (9) - суммы НДС [15:14:10] 1010 (1) - 0% - код ставки НДС [15:14:10] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:10] 1006 (12) - суммы НДС [15:14:10] 1010 (1) - 12% - код ставки НДС [15:14:10] 1011 (3) - 992.47 - сумма НДС по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 0% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (11) - суммы НСП [15:14:10] 1014 (1) - 1% - код ставки НСП [15:14:10] 1015 (2) - 82.70 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 2% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 3% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 5% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 0,50% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 1,50% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1131 (141) - счетчики операций «расход» [15:14:10] 1135 (4) - 0 - количество чеков по признаку расчетов [15:14:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:14:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:14:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:10] 1024 (117) - суммы налогов [15:14:10] 1006 (9) - суммы НДС [15:14:10] 1010 (1) - 0% - код ставки НДС [15:14:10] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:10] 1006 (9) - суммы НДС [15:14:10] 1010 (1) - 12% - код ставки НДС [15:14:10] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 0% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 1% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 2% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 3% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 5% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 0,50% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 1,50% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1132 (141) - счетчики операций «возврат расхода» [15:14:10] 1135 (4) - 0 - количество чеков по признаку расчетов [15:14:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:14:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:14:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:10] 1024 (117) - суммы налогов [15:14:10] 1006 (9) - суммы НДС [15:14:10] 1010 (1) - 0% - код ставки НДС [15:14:10] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:10] 1006 (9) - суммы НДС [15:14:10] 1010 (1) - 12% - код ставки НДС [15:14:10] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 0% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 1% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 2% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 3% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 5% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:10] 1014 (1) - 0,50% - код ставки НСП [15:14:10] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:10] 1007 (9) - суммы НСП [15:14:11] 1014 (1) - 1,50% - код ставки НСП [15:14:11] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:11] 1133 (588) - - счетчики коррекции - не используются [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1194 (04AA) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1134 (046E) [15:14:11]Malloc new data [15:14:11]Processing tag 1129 (0469) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1135 (046F) [15:14:11]Malloc new data [15:14:11]Processing tag 1201 (04B1) [15:14:11]Malloc new data [15:14:11]Processing tag 1136 (0470) [15:14:11]Malloc new data [15:14:11]Processing tag 1138 (0472) [15:14:11]Malloc new data [15:14:11]Processing tag 1024 (0400) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1006 (03EE) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1010 (03F2) [15:14:11]Malloc new data [15:14:11]Processing tag 1011 (03F3) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1006 (03EE) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1010 (03F2) [15:14:11]Malloc new data [15:14:11]Processing tag 1011 (03F3) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1130 (046A) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1135 (046F) [15:14:11]Malloc new data [15:14:11]Processing tag 1201 (04B1) [15:14:11]Malloc new data [15:14:11]Processing tag 1136 (0470) [15:14:11]Malloc new data [15:14:11]Processing tag 1138 (0472) [15:14:11]Malloc new data [15:14:11]Processing tag 1024 (0400) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1006 (03EE) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1010 (03F2) [15:14:11]Malloc new data [15:14:11]Processing tag 1011 (03F3) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1006 (03EE) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1010 (03F2) [15:14:11]Malloc new data [15:14:11]Processing tag 1011 (03F3) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1131 (046B) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1135 (046F) [15:14:11]Malloc new data [15:14:11]Processing tag 1201 (04B1) [15:14:11]Malloc new data [15:14:11]Processing tag 1136 (0470) [15:14:11]Malloc new data [15:14:11]Processing tag 1138 (0472) [15:14:11]Malloc new data [15:14:11]Processing tag 1024 (0400) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1006 (03EE) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1010 (03F2) [15:14:11]Malloc new data [15:14:11]Processing tag 1011 (03F3) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1006 (03EE) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1010 (03F2) [15:14:11]Malloc new data [15:14:11]Processing tag 1011 (03F3) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1132 (046C) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1135 (046F) [15:14:11]Malloc new data [15:14:11]Processing tag 1201 (04B1) [15:14:11]Malloc new data [15:14:11]Processing tag 1136 (0470) [15:14:11]Malloc new data [15:14:11]Processing tag 1138 (0472) [15:14:11]Malloc new data [15:14:11]Processing tag 1024 (0400) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1006 (03EE) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1010 (03F2) [15:14:11]Malloc new data [15:14:11]Processing tag 1011 (03F3) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1006 (03EE) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1010 (03F2) [15:14:11]Malloc new data [15:14:11]Processing tag 1011 (03F3) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1007 (03EF) [15:14:11]Load OK [15:14:11]SetTLVBufToDocument [15:14:11]Processing tag 1014 (03F6) [15:14:11]Malloc new data [15:14:11]Processing tag 1015 (03F7) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Processing tag 1133 (046D) [15:14:11]Malloc new data [15:14:11]SetTLVBufToDocument err=0 [15:14:11]SetTLVBufToDocument err=0 [15:14:11]Malloc new data [15:14:11]SAM_PROTO_GetFMData [15:14:11]wFMCommunicate request_size=4 [15:14:11]MH_SAM_APDU [15:14:11]CAPDU: 80 13 03 00 [15:14:11]Write to MH i2c: E2 08 00 2E 00 80 13 03 00 00 00 00 00 AD [15:14:11]Write i2c OK [15:14:11]MH_I2C_Read... [15:14:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:14:12]Read from MH i2c: E2 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 FD 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 FD 00 2E 00 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 F9 [15:14:12]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:14:12]wFMCommunicate OK [15:14:12]wFMCommunicate request_size=4 [15:14:12]MH_SAM_APDU [15:14:12]CAPDU: 80 17 00 00 [15:14:12]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:12]Read from MH i2c: E2 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 FD 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 FD 00 2F 00 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 DB [15:14:12]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 OFD Sender: No OFD packet to send [15:14:12]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:14:12]wFMCommunicate OK [15:14:12]wFMCommunicate request_size=4 [15:14:12]MH_SAM_APDU [15:14:12]CAPDU: 80 17 00 00 [15:14:12]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 FD 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 FD 00 30 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 88 [15:14:13]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:14:13]wFMCommunicate OK [15:14:13]wFMCommunicate request_size=4 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 17 00 00 [15:14:13]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 FD 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 FD 00 31 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 29 [15:14:13]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:14:13]wFMCommunicate OK [15:14:13]wFMCommunicate request_size=4 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 17 00 00 [15:14:13]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 E5 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 E5 00 32 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 96 [15:14:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:14:14]wFMCommunicate OK [15:14:14]SAM_PROTO_GetFMData done [15:14:14]FM_GetFMData:85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 [15:14:14]oper:6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 [15:14:14]total:E5 46 85 B1 01 [15:14:14]Malloc new data [15:14:14]oper:6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [15:14:15]total:94 7C 09 22 [15:14:15]Malloc new data [15:14:15]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 [15:14:15]total: [15:14:15]Malloc new data [15:14:15]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 [15:14:15]total: [15:14:15]Malloc new data [15:14:15]KKMPrepareXReportFMData err=0 [15:14:15]Х отчет ИНН: 02508201610067 Кассир: Сабырбек у. М. 13.03.2024 15:14 Смена: 266 РНМ: 0000000000090555 ЗНМ: 0300000009 СНО: Общий режим Всего чеков: 146 ИТОГИ ПРИХОД Чеков: 140 Общий итог: 113329.62 Итого наличными: 82771.00 Итого безнал.: 30558.62 НДС 0% : 0.00 НДС 12% : 12036.84 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1002.91 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 9345.00 Итого наличными: 9345.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 992.47 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 82.70 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 73426.00 НС Приход: 72732689.65 НС Возвр.Прихода: 5710470.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874811 [15:14:15]StoreToDocumentArchive [15:14:15]MH_GetDate [15:14:15]Write to MH i2c: F0 00 00 33 00 22 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: F0 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: F0 05 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: F0 05 00 33 00 00 C8 C2 F1 65 07 [15:14:15]shift 266 fd 1710342856 [15:14:15]Create dir for shift 0266 [15:14:15]save to /storage/0266/doc_1710342856 [15:14:15]save last doc name /storage/0266/doc_1710342856 to /storage/kkm_last_doc_name [15:14:15]save OK [15:14:15]Clear old archive folders... [15:14:15]NVStorageSaveData kkm_last_timestamp [15:14:15]File name is /storage/kkm_last_timestamp [15:14:15]Write 4 bytes [15:14:15]NVStorageSaveData done [15:14:15]ExternCall_PrintAddStr [15:14:15]wPrintStart [15:14:15]Write to MH i2c: 01 00 00 34 00 34 [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 07 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: 01 07 00 34 00 00 80 00 00 00 FF 0F C9 [15:14:15]RasterBufferAndPrint [15:14:15]line Х отчет [15:14:15]line ИНН: 02508201610067 [15:14:15]line Кассир: Сабырбек у. М. [15:14:15]line 13.03.2024 15:14 [15:14:15]line Смена: 266 [15:14:15]line РНМ: 0000000000090555 [15:14:15]line ЗНМ: 0300000009 [15:14:15]line СНО: Общий режим [15:14:15]line Всего чеков: 146 [15:14:15]line ИТОГИ ПРИХОД [15:14:15]line Чеков: 140 [15:14:15]line Общий итог: 113329.62 [15:14:15]line Итого наличными: 82771.00 [15:14:15]line Итого безнал.: 30558.62 [15:14:15]line НДС 0% : 0.00 [15:14:15]line НДС 12% : 12036.84 [15:14:15]line НСП 0% : 0.00 [15:14:15]line НСП 1,50% : 0.00 [15:14:15]line НСП 0,50% : 0.00 [15:14:15]line НСП 5% : 0.00 [15:14:15]line НСП 3% : 0.00 [15:14:15]line НСП 2% : 0.00 [15:14:15]line НСП 1% : 1002.91 [15:14:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [15:14:15]line Чеков: 6 [15:14:15]line Общий итог: 9345.00 [15:14:15]line Итого наличными: 9345.00 [15:14:15]line Итого безнал.: 0.00 [15:14:15]line НДС 0% : 0.00 [15:14:15]line НДС 12% : 992.47 [15:14:15]line НСП 0% : 0.00 [15:14:15]line НСП 1,50% : 0.00 [15:14:15]line НСП 0,50% : 0.00 [15:14:15]line НСП 5% : 0.00 [15:14:15]line НСП 3% : 0.00 [15:14:15]line НСП 2% : 0.00 [15:14:15]line НСП 1% : 82.70 [15:14:15]line ИТОГИ РАСХОД [15:14:15]line Чеков: 0 [15:14:15]line Общий итог: 0.00 [15:14:15]line Итого наличными: 0.00 [15:14:15]line Итого безнал.: 0.00 [15:14:15]line НДС 0% : 0.00 [15:14:15]line НДС 12% : 0.00 [15:14:15]line НСП 0% : 0.00 [15:14:15]line НСП 1,50% : 0.00 [15:14:15]line НСП 0,50% : 0.00 [15:14:15]line НСП 5% : 0.00 [15:14:15]line НСП 3% : 0.00 [15:14:15]line НСП 2% : 0.00 [15:14:15]line НСП 1% : 0.00 [15:14:15]line ИТОГИ ВОЗВРАТ РАСХОДА [15:14:15]line Чеков: 0 [15:14:15]line Общий итог: 0.00 [15:14:15]line Итого наличными: 0.00 [15:14:15]line Итого безнал.: 0.00 [15:14:15]line НДС 0% : 0.00 [15:14:15]line НДС 12% : 0.00 [15:14:15]line НСП 0% : 0.00 [15:14:15]line НСП 1,50% : 0.00 [15:14:15]line НСП 0,50% : 0.00 [15:14:15]line НСП 5% : 0.00 [15:14:15]line НСП 3% : 0.00 [15:14:15]line НСП 2% : 0.00 [15:14:15]line НСП 1% : 0.00 [15:14:15]line Сумма внесений: 0.00 [15:14:15]line Сумма выплат: 0.00 [15:14:15]line Нал. в кассе: 73426.00 [15:14:15]line НС Приход: 72732689.65 [15:14:15]line НС Возвр.Прихода: 5710470.60 [15:14:15]line НС Расход: 0.00 [15:14:15]line НС Возвр.Расхода: 0.00 [15:14:15]line ФМ: 0000000000874811 [15:14:15]written 0, free lines is 4095 [15:14:16]Write to MH i2c: 01 00 00 7F 00 7F [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 07 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: 01 07 00 7F 00 00 80 00 00 00 6E 0B 7F [15:14:16]RasterBufferAndPrint [15:14:16]line [15:14:16]line [15:14:16]line [15:14:16]line [15:14:16]line [15:14:16]written 0, free lines is 2960 [15:14:16]process_action x_report done [15:14:16]requested_data is exist [15:14:16]produce_requested_data [15:14:16]requested_item fd.num is exist - process it [15:14:16]SAM_PROTO_GetFieldsCounters [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 13 00 00 [15:14:16]Write to MH i2c: E2 08 00 86 00 80 13 00 00 00 00 00 00 02 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 62 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 62 00 86 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 6E [15:14:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 [15:14:16]wFMCommunicate OK [15:14:16]SAM_PROTO_GetFieldsCounters done [15:14:16]requested_item shift.num is exist - process it [15:14:16]requested_item shift.opened is exist - process it [15:14:16]req_shift_opened [15:14:16]FM_GetShiftState [15:14:16]SAM_PROTO_GetShiftState [15:14:16]wFMCommunicate request_size=4 [15:14:16]MH_SAM_APDU [15:14:16]CAPDU: 80 13 01 00 [15:14:16]Write to MH i2c: E2 08 00 87 00 80 13 01 00 00 00 00 00 04 [15:14:16]Write i2c OK [15:14:16]MH_I2C_Read... [15:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:16]Read from MH i2c: E2 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0E 00 [15:14:16]MH_I2C_Read... [15:14:16]Read from MH i2c: E2 0E 00 87 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 E9 [15:14:16]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:14:16]wFMCommunicate OK [15:14:16]SAM_PROTO_GetShiftState done [15:14:16]FM_GetShiftState done [15:14:16]req_shift_opened done [15:14:16]requested_item shift.open_date is exist - process it [15:14:16]req_shift_open_date [15:14:16]req_shift_open_date done [15:14:16]produce_requested_data done [15:14:16]produce_requested_data return {"fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:14:16]process_action_free x_report [15:14:16]json_value_free [15:14:16]json_value_free done [15:14:16]process_json_proto returns [15:14:16]Send response to host [15:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:14:16]free response buf [15:14:16]execute_script done [15:14:16]execute_script returns [15:14:16]free content buf [15:14:16]Sock 6.Close socket [15:14:16]Sock 6.Thread stoped [15:14:17]OFD Sender: No OFD packet to send [15:14:21]accept exits with 9 [15:14:21]New connection [15:14:21]New thread 3066858852 created [15:14:21]Thread 3066715492 joined [15:14:21]Waiting for new connection... [15:14:21] Sock 9.Parse request [15:14:21]Sock 9.Check first char [15:14:21]Sock 9.First char is OK [15:14:21]request: POST /json_proto HTTP/1.0 [15:14:21]Method: POST [15:14:21]URL: /json_proto [15:14:21]Method is POST - this is cgi request [15:14:21]url: /json_proto [15:14:21]query_string will be loaded in cgi processing [15:14:21]execute_cgi json_proto POST (null) [15:14:21]execute_cgi path=json_proto method=POST [15:14:21]POST find Content-Length [15:14:21]Host: 172.17.62.67:8080 [15:14:21]Content-Length: 215 [15:14:21]Content-Type: application/json [15:14:21] [15:14:21]POST finish read [15:14:21]Found Content-Length = 215 [15:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:21]execute_script... [15:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:21]POST & json_proto [15:14:21]process_json_proto [15:14:21]json parsed OK: [15:14:21]protocol is kg_v1.0 [15:14:21]action value=get_value [15:14:21]process_action get_value [15:14:21]cmd_get_value [15:14:21]process_action get_value done [15:14:21]requested_data is exist [15:14:21]produce_requested_data [15:14:21]requested_item kkm.sn is exist - process it [15:14:21]requested_item kkm.ver is exist - process it [15:14:21]requested_item fm.sn is exist - process it [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 11 00 00 [15:14:21]Write to MH i2c: E2 08 00 88 00 80 11 00 00 00 00 00 00 02 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 17 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 17 00 88 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 52 [15:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:14:21]wFMCommunicate OK [15:14:21]requested_item fd.num is exist - process it [15:14:21]SAM_PROTO_GetFieldsCounters [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 00 00 [15:14:21]Write to MH i2c: E2 08 00 89 00 80 13 00 00 00 00 00 00 05 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 62 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 62 00 89 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 71 [15:14:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DB 74 01 00 0E 04 04 00 48 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 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetFieldsCounters done [15:14:21]requested_item shift.num is exist - process it [15:14:21]requested_item shift.opened is exist - process it [15:14:21]req_shift_opened [15:14:21]FM_GetShiftState [15:14:21]SAM_PROTO_GetShiftState [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 01 00 [15:14:21]Write to MH i2c: E2 08 00 8A 00 80 13 01 00 00 00 00 00 07 [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:21]Read from MH i2c: E2 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 [15:14:21]MH_I2C_Read... [15:14:21]Read from MH i2c: E2 0E 00 8A 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 EC [15:14:21]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:14:21]wFMCommunicate OK [15:14:21]SAM_PROTO_GetShiftState done [15:14:21]FM_GetShiftState done [15:14:21]req_shift_opened done [15:14:21]requested_item shift.open_date is exist - process it [15:14:21]req_shift_open_date [15:14:21]req_shift_open_date done [15:14:21]produce_requested_data done [15:14:21]produce_requested_data return {"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279} [15:14:21]process_action_free get_value [15:14:21]json_value_free [15:14:21]json_value_free done [15:14:21]process_json_proto returns [15:14:21]Send response to host [15:14:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000009","kkm.ver":"001","fm.sn":"0000000000874811","fd.num":95451,"shift.num":328,"shift.opened":1,"shift.open_date":1710288279}}} [15:14:21]free response buf [15:14:21]execute_script done [15:14:21]execute_script returns [15:14:21]free content buf [15:14:21]Sock 9.Close socket [15:14:21]Sock 9.Thread stoped [15:14:21]accept exits with 7 [15:14:21]New connection [15:14:21]New thread 3066715492 created [15:14:21]Thread 3066858852 joined [15:14:21]Waiting for new connection... [15:14:21] Sock 7.Parse request [15:14:21]Sock 7.Check first char [15:14:21]Sock 7.First char is OK [15:14:21]request: POST /json_proto HTTP/1.0 [15:14:21]Method: POST [15:14:21]URL: /json_proto [15:14:21]Method is POST - this is cgi request [15:14:21]url: /json_proto [15:14:21]query_string will be loaded in cgi processing [15:14:21]execute_cgi json_proto POST (null) [15:14:21]execute_cgi path=json_proto method=POST [15:14:21]POST find Content-Length [15:14:21]Host: 172.17.62.67:8080 [15:14:21]Content-Length: 331 [15:14:21]Content-Type: application/json [15:14:21] [15:14:21]POST finish read [15:14:21]Found Content-Length = 331 [15:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:14:21]execute_script... [15:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:14:21]POST & json_proto [15:14:21]process_json_proto [15:14:21]json parsed OK: [15:14:21]protocol is kg_v1.0 [15:14:21]action value=get_value [15:14:21]process_action get_value [15:14:21]cmd_get_value [15:14:21]process_action get_value done [15:14:21]requested_data is exist [15:14:21]produce_requested_data [15:14:21]requested_item fm.sale.total is exist - process it [15:14:21]SAM_PROTO_GetFMData [15:14:21]wFMCommunicate request_size=4 [15:14:21]MH_SAM_APDU [15:14:21]CAPDU: 80 13 03 00 [15:14:21]Write to MH i2c: E2 08 00 8B 00 80 13 03 00 00 00 00 00 0A [15:14:21]Write i2c OK [15:14:21]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 FD 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 FD 00 8B 00 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 56 [15:14:22]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:14:22]wFMCommunicate OK [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 17 00 00 [15:14:22]Write to MH i2c: E2 08 00 8C 00 80 17 00 00 00 00 00 00 0C [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 FD 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 FD 00 8C 00 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 38 [15:14:22]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [15:14:23]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:14:23]wFMCommunicate OK [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 17 00 00 [15:14:23]Write to MH i2c: E2 08 00 8D 00 80 17 00 00 00 00 00 00 0D [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:23]E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 FD 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 FD 00 8D 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 E5 [15:14:23]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:14:23]wFMCommunicate OK [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 17 00 00 [15:14:23]Write to MH i2c: E2 08 00 8E 00 80 17 00 00 00 00 00 00 0E [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 FD 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 FD 00 8E 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 86 [15:14:24]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 17 00 00 [15:14:24]Write to MH i2c: E2 08 00 8F 00 80 17 00 00 00 00 00 00 0F [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 E5 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 E5 00 8F 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F3 [15:14:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:14:24]wFMCommunicate OK [15:14:24]SAM_PROTO_GetFMData done [15:14:24]requested_item fm.sale_refund.total is exist - process it [15:14:24]requested_item fm.buy.total is exist - process it [15:14:24]requested_item shift.sale.total is exist - process it [15:14:24]SAM_PROTO_GetShiftData [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 13 02 00 [15:14:24]Write to MH i2c: E2 08 00 90 00 80 13 02 00 00 00 00 00 0E [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:14:25]Read from MH i2c: E2 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: E2 FD 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: E2 FD 00 90 00 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6C [15:14:25]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:14:25]wFMCommunicate OK [15:14:25]wFMCommunicate request_size=4 [15:14:25]MH_SAM_APDU [15:14:25]CAPDU: 80 17 00 00 [15:14:25]Write to MH i2c: E2 08 00 91 00 80 17 00 00 00 00 00 00 11 [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:25]Read from MH i2c: E2 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: E2 FD 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: E2 FD 00 91 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 29 [15:14:25]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:14:26]wFMCommunicate OK [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 17 00 00 [15:14:26]Write to MH i2c: E2 08 00 92 00 80 17 00 00 00 00 00 00 12 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 FD 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 FD 00 92 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 3E [15:14:26]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:14:26]wFMCommunicate OK [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 17 00 00 [15:14:26]Write to MH i2c: E2 08 00 93 00 80 17 00 00 00 00 00 00 13 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 FD 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 FD 00 93 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 8B [15:14:27]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:14:27]wFMCommunicate OK [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 17 00 00 [15:14:27]Write to MH i2c: E2 08 00 94 00 80 17 00 00 00 00 00 00 14 [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:14:27]Read from MH i2c: E2 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 D7 00 [15:14:27]MH_I2C_Read... [15:14:27]Read from MH i2c: E2 D7 00 94 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F7 [15:14:27]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:14:27]wFMCommunicate OK [15:14:27]SAM_PROTO_GetShiftData done [15:14:27]requested_item shift.sale.total_cash is exist - process it [15:14:27]requested_item shift.sale_refund.total is exist - process it [15:14:27]requested_item shift.sale_refund.total_cash is exist - process it [15:14:27]requested_item shift.buy.total is exist - process it [15:14:27]requested_item shift.buy.total_cash is exist - process it [15:14:27]produce_requested_data done [15:14:27]produce_requested_data return {"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:14:27]process_action_free get_value [15:14:27]json_value_free [15:14:27]json_value_free done [15:14:27]process_json_proto returns [15:14:27]Send response to host [15:14:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:14:27]free response buf [15:14:27]execute_script done [15:14:27]execute_script returns [15:14:27]free content buf [15:14:27]Sock 7.Close socket [15:14:27]Sock 7.Thread stoped [15:14:27]accept exits with 9 [15:14:27]New connection [15:14:27]New thread 3066858852 created [15:14:27]Thread 3066715492 joined [15:14:27]Waiting for new connection... [15:14:27] Sock 9.Parse request [15:14:27]Sock 9.Check first char [15:14:27]Sock 9.First char is OK [15:14:27]request: POST /json_proto HTTP/1.0 [15:14:27]Method: POST [15:14:27]URL: /json_proto [15:14:27]Method is POST - this is cgi request [15:14:27]url: /json_proto [15:14:27]query_string will be loaded in cgi processing [15:14:27]execute_cgi json_proto POST (null) [15:14:27]execute_cgi path=json_proto method=POST [15:14:27]POST find Content-Length [15:14:27]Host: 172.17.62.67:8080 [15:14:27]Content-Length: 331 [15:14:27]Content-Type: application/json [15:14:27] [15:14:27]POST finish read [15:14:27]Found Content-Length = 331 [15:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:14:27]execute_script... [15:14:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:14:27]POST & json_proto [15:14:27]process_json_proto [15:14:27]json parsed OK: [15:14:27]protocol is kg_v1.0 [15:14:27]action value=get_value [15:14:27]process_action get_value [15:14:27]cmd_get_value [15:14:27]process_action get_value done [15:14:27]requested_data is exist [15:14:27]produce_requested_data [15:14:27]requested_item fm.sale.total is exist - process it [15:14:27]SAM_PROTO_GetFMData [15:14:27]wFMCommunicate request_size=4 [15:14:27]MH_SAM_APDU [15:14:27]CAPDU: 80 13 03 00 [15:14:27]Write to MH i2c: E2 08 00 95 00 80 13 03 00 00 00 00 00 14 [15:14:27]Write i2c OK [15:14:27]MH_I2C_Read... [15:14:28]OFD Sender: No OFD packet to send [15:14:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:14:28]Read from MH i2c: E2 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: E2 FD 00 [15:14:28]MH_I2C_Read... [15:14:28]Read from MH i2c: E2 FD 00 95 00 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 60 [15:14:28]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:14:28]wFMCommunicate OK [15:14:28]wFMCommunicate request_size=4 [15:14:28]MH_SAM_APDU [15:14:28]CAPDU: 80 17 00 00 [15:14:28]Write to MH i2c: E2 08 00 96 00 80 17 00 00 00 00 00 00 16 [15:14:28]Write i2c OK [15:14:28]MH_I2C_Read... [15:14:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:29]Read from MH i2c: E2 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 FD 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 FD 00 96 00 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 42 [15:14:29]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:14:29]wFMCommunicate OK [15:14:29]wFMCommunicate request_size=4 [15:14:29]MH_SAM_APDU [15:14:29]CAPDU: 80 17 00 00 [15:14:29]Write to MH i2c: E2 08 00 97 00 80 17 00 00 00 00 00 00 17 [15:14:29]Write i2c OK [15:14:29]MH_I2C_Read... [15:14:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:29]Read from MH i2c: E2 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 FD 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 FD 00 97 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 EF [15:14:29]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:14:29]wFMCommunicate OK [15:14:29]wFMCommunicate request_size=4 [15:14:29]MH_SAM_APDU [15:14:29]CAPDU: 80 17 00 00 [15:14:29]Write to MH i2c: E2 08 00 98 00 80 17 00 00 00 00 00 00 18 [15:14:29]Write i2c OK [15:14:29]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 FD 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 FD 00 98 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 90 [15:14:30]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 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:14:30]wFMCommunicate OK [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 17 00 00 [15:14:30]Write to MH i2c: E2 08 00 99 00 80 17 00 00 00 00 00 00 19 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 E5 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 E5 00 99 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FD [15:14:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:14:31]wFMCommunicate OK [15:14:31]SAM_PROTO_GetFMData done [15:14:31]requested_item fm.sale_refund.total is exist - process it [15:14:31]requested_item fm.buy.total is exist - process it [15:14:31]requested_item shift.sale.total is exist - process it [15:14:31]SAM_PROTO_GetShiftData [15:14:31]wFMCommunicate request_size=4 [15:14:31]MH_SAM_APDU [15:14:31]CAPDU: 80 13 02 00 [15:14:31]Write to MH i2c: E2 08 00 9A 00 80 13 02 00 00 00 00 00 18 [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:14:31]Read from MH i2c: E2 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 FD 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: E2 FD 00 9A 00 00 BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 76 [15:14:31]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:14:31]wFMCommunicate OK [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 17 00 00 [15:14:32]Write to MH i2c: E2 08 00 9B 00 80 17 00 00 00 00 00 00 1B [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:32]E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 FD 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 FD 00 9B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 33 [15:14:32]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [15:14:32]wFMCommunicate OK [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 17 00 00 [15:14:32]Write to MH i2c: E2 08 00 9C 00 80 17 00 00 00 00 00 00 1C [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:32]Read from MH i2c: E2 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 FD 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: E2 FD 00 9C 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 48 [15:14:33]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 OFD Sender: No OFD packet to send [15:14:33]00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [15:14:33]wFMCommunicate OK [15:14:33]wFMCommunicate request_size=4 [15:14:33]MH_SAM_APDU [15:14:33]CAPDU: 80 17 00 00 [15:14:33]Write to MH i2c: E2 08 00 9D 00 80 17 00 00 00 00 00 00 1D [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 FD 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 FD 00 9D 00 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 95 [15:14:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [15:14:33]wFMCommunicate OK [15:14:33]wFMCommunicate request_size=4 [15:14:33]MH_SAM_APDU [15:14:33]CAPDU: 80 17 00 00 [15:14:34]Write to MH i2c: E2 08 00 9E 00 80 17 00 00 00 00 00 00 1E [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 D7 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 D7 00 9E 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 01 [15:14:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:14:34]wFMCommunicate OK [15:14:34]SAM_PROTO_GetShiftData done [15:14:34]requested_item shift.sale.total_cash is exist - process it [15:14:34]requested_item shift.sale_refund.total is exist - process it [15:14:34]requested_item shift.sale_refund.total_cash is exist - process it [15:14:34]requested_item shift.buy.total is exist - process it [15:14:34]requested_item shift.buy.total_cash is exist - process it [15:14:34]produce_requested_data done [15:14:34]produce_requested_data return {"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:14:34]process_action_free get_value [15:14:34]json_value_free [15:14:34]json_value_free done [15:14:34]process_json_proto returns [15:14:34]Send response to host [15:14:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":72732689.65,"fm.sale_refund.total":5710470.60,"fm.buy.total":0.00,"shift.sale.total":113329.62,"shift.sale.total_cash":82771.00,"shift.sale_refund.total":9345.00,"shift.sale_refund.total_cash":9345.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:14:34]free response buf [15:14:34]execute_script done [15:14:34]execute_script returns [15:14:34]free content buf [15:14:34]Sock 9.Close socket [15:14:34]Sock 9.Thread stoped [15:14:34]accept exits with 7 [15:14:34]New connection [15:14:34]New thread 3066715492 created [15:14:34]Thread 3066858852 joined [15:14:34]Waiting for new connection... [15:14:34] Sock 7.Parse request [15:14:34]Sock 7.Check first char [15:14:34]Sock 7.First char is OK [15:14:34]request: POST /json_proto HTTP/1.0 [15:14:34]Method: POST [15:14:34]URL: /json_proto [15:14:34]Method is POST - this is cgi request [15:14:34]url: /json_proto [15:14:34]query_string will be loaded in cgi processing [15:14:34]execute_cgi json_proto POST (null) [15:14:34]execute_cgi path=json_proto method=POST [15:14:34]POST find Content-Length [15:14:34]Host: 172.17.62.67:8080 [15:14:34]Content-Length: 267 [15:14:34]Content-Type: application/json [15:14:34] [15:14:34]POST finish read [15:14:34]Found Content-Length = 267 [15:14:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:34]execute_script... [15:14:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0431\u0435\u043A \u0443. \u041C." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:34]POST & json_proto [15:14:34]process_json_proto [15:14:34]json parsed OK: [15:14:34]protocol is kg_v1.0 [15:14:34]action value=close_shift [15:14:34]process_action close_shift [15:14:34]cmd_close_shift [15:14:34]MH_GetDate [15:14:34]Write to MH i2c: F0 00 00 9F 00 8E [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: F0 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: F0 05 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: F0 05 00 9F 00 00 DB C2 F1 65 86 [15:14:34]GetLastDocTimeStamp 1710342848 [15:14:34]current date 1710342875 [15:14:34]FM_GetShiftState [15:14:34]SAM_PROTO_GetShiftState [15:14:34]wFMCommunicate request_size=4 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 13 01 00 [15:14:34]Write to MH i2c: E2 08 00 A0 00 80 13 01 00 00 00 00 00 1D [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 0E 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 0E 00 A0 00 00 09 00 01 97 ED F0 65 00 00 00 00 90 00 02 [15:14:34]RAPDU: 09 00 01 97 ED F0 65 00 00 00 00 90 00 [15:14:34]wFMCommunicate OK [15:14:34]SAM_PROTO_GetShiftState done [15:14:34]FM_GetShiftState done [15:14:34]KKMCreateCloseShiftDocument [15:14:34]Load OK [15:14:34]Malloc new data [15:14:34]MH_GetDate [15:14:34]Write to MH i2c: F0 00 00 A1 00 90 [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: F0 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: F0 05 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: F0 05 00 A1 00 00 DB C2 F1 65 88 [15:14:34]Malloc new data [15:14:34]Malloc new data [15:14:34]Malloc new data [15:14:34]Malloc new data [15:14:34]KKMCreateCloseShiftDocument OK [15:14:34]KKMSetCloseShiftData OK [15:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=74 [15:14:34]tlvbuf is 00F70290 [15:14:34]KKMLoadAndSignCloseShiftData [15:14:34]SAM_PROTO_ProcessDocument [15:14:34]wFMCommunicate request_size=9 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 15 01 00 04 05 00 4A 00 [15:14:34]Write to MH i2c: E2 0C 00 A2 00 80 15 01 00 04 00 05 00 4A 00 00 00 78 [15:14:34]Write i2c OK [15:14:34]MH_I2C_Read... [15:14:34]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [15:14:34]Read from MH i2c: E2 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 [15:14:34]MH_I2C_Read... [15:14:34]Read from MH i2c: E2 03 00 A2 00 00 90 00 16 [15:14:34]RAPDU: 90 00 [15:14:34]wFMCommunicate OK [15:14:34]wFMCommunicate request_size=23 [15:14:34]MH_SAM_APDU [15:14:34]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [15:14:34]Write to MH i2c: E2 1A 00 A3 00 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 18 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 03 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 03 00 A3 00 00 90 00 17 [15:14:35]RAPDU: 90 00 [15:14:35]wFMCommunicate OK [15:14:35]wFMCommunicate request_size=33 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E [15:14:35]Write to MH i2c: E2 24 00 A4 00 80 15 02 00 1C 00 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E 00 00 7F [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 03 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 03 00 A4 00 00 90 00 18 [15:14:35]RAPDU: 90 00 [15:14:35]wFMCommunicate OK [15:14:35]wFMCommunicate request_size=13 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 15 02 00 08 F4 03 04 00 DB C2 F1 65 [15:14:35]Write to MH i2c: E2 10 00 A5 00 80 15 02 00 08 00 F4 03 04 00 DB C2 F1 65 00 00 23 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 03 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 03 00 A5 00 00 90 00 19 [15:14:35]RAPDU: 90 00 [15:14:35]wFMCommunicate OK [15:14:35]wFMCommunicate request_size=25 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 [15:14:35]Write to MH i2c: E2 1C 00 A6 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 00 00 87 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 03 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 03 00 A6 00 00 90 00 1A [15:14:35]RAPDU: 90 00 [15:14:35]wFMCommunicate OK [15:14:35]wFMCommunicate request_size=4 [15:14:35]MH_SAM_APDU [15:14:35]CAPDU: 80 15 03 00 [15:14:35]Write to MH i2c: E2 08 00 A7 00 80 15 03 00 00 00 00 00 28 [15:14:35]Write i2c OK [15:14:35]MH_I2C_Read... [15:14:35]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [15:14:35]Read from MH i2c: E2 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 FD 00 [15:14:35]MH_I2C_Read... [15:14:35]Read from MH i2c: E2 FD 00 A7 00 00 FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 74 01 00 0E 04 04 00 48 01 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 94 00 00 00 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 90 00 66 [15:14:36]RAPDU: FD 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 74 01 00 0E 04 04 00 48 01 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 94 00 00 00 AA 04 B6 04 6E 04 04 00 92 00 00 00 69 04 9C 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 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 E4 5D 12 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 C3 87 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 90 00 [15:14:36]wFMCommunicate OK [15:14:36]SAM_PROTO_ProcessDocument answer len = 1277 [15:14:36]SAM_PROTO_ProcessDocument remain to read = 1029 [15:14:36]wFMCommunicate request_size=4 [15:14:36]MH_SAM_APDU [15:14:36]CAPDU: 80 17 00 00 [15:14:36]Write to MH i2c: E2 08 00 A8 00 80 17 00 00 00 00 00 00 28 [15:14:36]Write i2c OK [15:14:36]MH_I2C_Read... [15:14:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:36]Read from MH i2c: E2 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 FD 00 [15:14:36]MH_I2C_Read... [15:14:36]Read from MH i2c: E2 FD 00 A8 00 00 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 5A [15:14:36]RAPDU: 70 04 03 00 64 42 0E 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [15:14:37]wFMCommunicate OK [15:14:37]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:14:37]SAM_PROTO_ProcessDocument remain to read = 779 [15:14:37]wFMCommunicate request_size=4 [15:14:37]MH_SAM_APDU [15:14:37]CAPDU: 80 17 00 00 [15:14:37]Write to MH i2c: E2 08 00 A9 00 80 17 00 00 00 00 00 00 29 [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:37]Read from MH i2c: E2 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: E2 FD 00 [15:14:37]MH_I2C_Read... [15:14:37]Read from MH i2c: E2 FD 00 A9 00 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 90 00 8F [15:14:37]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 90 00 [15:14:37]wFMCommunicate OK [15:14:37]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:14:37]SAM_PROTO_ProcessDocument remain to read = 529 [15:14:37]wFMCommunicate request_size=4 [15:14:37]MH_SAM_APDU [15:14:37]CAPDU: 80 17 00 00 [15:14:37]Write to MH i2c: E2 08 00 AA 00 80 17 00 00 00 00 00 00 2A [15:14:37]Write i2c OK [15:14:37]MH_I2C_Read... [15:14:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:37]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 FD 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 FD 00 AA 00 00 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 90 00 39 [15:14:38]RAPDU: 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 OFD Sender: No OFD packet to send [15:14:38]00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 90 00 [15:14:38]wFMCommunicate OK [15:14:38]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:14:38]SAM_PROTO_ProcessDocument remain to read = 279 [15:14:38]wFMCommunicate request_size=4 [15:14:38]MH_SAM_APDU [15:14:38]CAPDU: 80 17 00 00 [15:14:38]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [15:14:38]Write i2c OK [15:14:38]MH_I2C_Read... [15:14:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:38]Read from MH i2c: E2 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 FD 00 [15:14:38]MH_I2C_Read... [15:14:38]Read from MH i2c: E2 FD 00 AB 00 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 69 [15:14:38]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [15:14:39]wFMCommunicate OK [15:14:39]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [15:14:39]SAM_PROTO_ProcessDocument remain to read = 29 [15:14:39]wFMCommunicate request_size=4 [15:14:39]MH_SAM_APDU [15:14:39]CAPDU: 80 17 00 00 [15:14:39]Write to MH i2c: E2 08 00 AC 00 80 17 00 00 00 00 00 00 2C [15:14:39]Write i2c OK [15:14:39]MH_I2C_Read... [15:14:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 29! [15:14:39]Read from MH i2c: E2 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 20 00 [15:14:39]MH_I2C_Read... [15:14:39]Read from MH i2c: E2 20 00 AC 00 00 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 64 C8 82 B9 CF BE 90 00 64 [15:14:39]RAPDU: 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 64 C8 82 B9 CF BE 90 00 [15:14:39]wFMCommunicate OK [15:14:39]SAM_PROTO_ProcessDocument received (without SW) 29 bytes [15:14:39]SAM_PROTO_ProcessDocument done [15:14:39]1209 (1) - 1.0 - номер версии ФФД [15:14:39]1041 (16) - 0000000000874811 - номер ФМ [15:14:39]1040 (4) - 95452 - номер ФД [15:14:39]1038 (4) - 328 - номер смены [15:14:39]1118 (4) - 146 - количество кассовых чеков за смену [15:14:39]1111 (4) - 148 - общее количество ФД за смену [15:14:39]1194 (1206) - счетчики итогов смены [15:14:39] 1134 (4) - 146 - количество чеков со всеми признаками расчетов [15:14:39] 1129 (156) - счетчики операций «приход» [15:14:39] 1135 (4) - 140 - количество чеков по признаку расчетов [15:14:39] 1201 (3) - 113329.62 - общая итоговая сумма в чеках [15:14:39] 1136 (3) - 82771.00 - итоговая сумма в чеках наличными [15:14:39] 1138 (3) - 30558.62 - итоговая сумма в чеках безналичными [15:14:39] 1024 (123) - суммы налогов [15:14:39] 1006 (9) - суммы НДС [15:14:39] 1010 (1) - 0% - код ставки НДС [15:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:39] 1006 (12) - суммы НДС [15:14:39] 1010 (1) - 12% - код ставки НДС [15:14:39] 1011 (3) - 12036.84 - сумма НДС по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 0% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (12) - суммы НСП [15:14:39] 1014 (1) - 1% - код ставки НСП [15:14:39] 1015 (3) - 1002.91 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 2% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 3% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 5% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 0,50% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 1,50% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1130 (152) - счетчики операций «возврат прихода» [15:14:39] 1135 (4) - 6 - количество чеков по признаку расчетов [15:14:39] 1201 (3) - 9345.00 - общая итоговая сумма в чеках [15:14:39] 1136 (3) - 9345.00 - итоговая сумма в чеках наличными [15:14:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:39] 1024 (122) - суммы налогов [15:14:39] 1006 (9) - суммы НДС [15:14:39] 1010 (1) - 0% - код ставки НДС [15:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:39] 1006 (12) - суммы НДС [15:14:39] 1010 (1) - 12% - код ставки НДС [15:14:39] 1011 (3) - 992.47 - сумма НДС по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 0% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (11) - суммы НСП [15:14:39] 1014 (1) - 1% - код ставки НСП [15:14:39] 1015 (2) - 82.70 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 2% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 3% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 5% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 0,50% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 1,50% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1131 (141) - счетчики операций «расход» [15:14:39] 1135 (4) - 0 - количество чеков по признаку расчетов [15:14:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:14:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:14:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:39] 1024 (117) - суммы налогов [15:14:39] 1006 (9) - суммы НДС [15:14:39] 1010 (1) - 0% - код ставки НДС [15:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:39] 1006 (9) - суммы НДС [15:14:39] 1010 (1) - 12% - код ставки НДС [15:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 0% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 1% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 2% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 3% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 5% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 0,50% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 1,50% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1132 (141) - счетчики операций «возврат расхода» [15:14:39] 1135 (4) - 0 - количество чеков по признаку расчетов [15:14:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [15:14:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [15:14:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [15:14:39] 1024 (117) - суммы налогов [15:14:39] 1006 (9) - суммы НДС [15:14:39] 1010 (1) - 0% - код ставки НДС [15:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:39] 1006 (9) - суммы НДС [15:14:39] 1010 (1) - 12% - код ставки НДС [15:14:39] 1011 (0) - 0.00 - сумма НДС по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 0% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 1% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 2% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 3% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 5% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 0,50% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1007 (9) - суммы НСП [15:14:39] 1014 (1) - 1,50% - код ставки НСП [15:14:39] 1015 (0) - 0.00 - сумма НСП по ставке [15:14:39] 1133 (588) - - счетчики коррекции - не используются [15:14:39]1077 (6) - 110812349452222 - ФПД [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1209 (04B9) [15:14:39]Malloc new data [15:14:39]Processing tag 1041 (0411) [15:14:39]Processing tag 1040 (0410) [15:14:39]Malloc new data [15:14:39]Processing tag 1038 (040E) [15:14:39]Malloc new data [15:14:39]Processing tag 1118 (045E) [15:14:39]Malloc new data [15:14:39]Processing tag 1111 (0457) [15:14:39]Malloc new data [15:14:39]Processing tag 1194 (04AA) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1134 (046E) [15:14:39]Malloc new data [15:14:39]Processing tag 1129 (0469) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1135 (046F) [15:14:39]Malloc new data [15:14:39]Processing tag 1201 (04B1) [15:14:39]Malloc new data [15:14:39]Processing tag 1136 (0470) [15:14:39]Malloc new data [15:14:39]Processing tag 1138 (0472) [15:14:39]Malloc new data [15:14:39]Processing tag 1024 (0400) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1006 (03EE) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1010 (03F2) [15:14:39]Malloc new data [15:14:39]Processing tag 1011 (03F3) [15:14:39]Malloc new data [15:14:39]SetTLVBufToDocument err=0 [15:14:39]Processing tag 1006 (03EE) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1010 (03F2) [15:14:39]Malloc new data [15:14:39]Processing tag 1011 (03F3) [15:14:39]Malloc new data [15:14:39]SetTLVBufToDocument err=0 [15:14:39]Processing tag 1007 (03EF) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1014 (03F6) [15:14:39]Malloc new data [15:14:39]Processing tag 1015 (03F7) [15:14:39]Malloc new data [15:14:39]SetTLVBufToDocument err=0 [15:14:39]Processing tag 1007 (03EF) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1014 (03F6) [15:14:39]Malloc new data [15:14:39]Processing tag 1015 (03F7) [15:14:39]Malloc new data [15:14:39]SetTLVBufToDocument err=0 [15:14:39]Processing tag 1007 (03EF) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1014 (03F6) [15:14:39]Malloc new data [15:14:39]Processing tag 1015 (03F7) [15:14:39]Malloc new data [15:14:39]SetTLVBufToDocument err=0 [15:14:39]Processing tag 1007 (03EF) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1014 (03F6) [15:14:39]Malloc new data [15:14:39]Processing tag 1015 (03F7) [15:14:39]Malloc new data [15:14:39]SetTLVBufToDocument err=0 [15:14:39]Processing tag 1007 (03EF) [15:14:39]Load OK [15:14:39]SetTLVBufToDocument [15:14:39]Processing tag 1014 (03F6) [15:14:39]Malloc new data [15:14:39]Processing tag 1015 (03F7) [15:14:39]Malloc new data [15:14:39]SetTLVBufToDocument err=0 [15:14:39]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]SetTLVBufToDocument err=0 [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1130 (046A) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1135 (046F) [15:14:40]Malloc new data [15:14:40]Processing tag 1201 (04B1) [15:14:40]Malloc new data [15:14:40]Processing tag 1136 (0470) [15:14:40]Malloc new data [15:14:40]Processing tag 1138 (0472) [15:14:40]Malloc new data [15:14:40]Processing tag 1024 (0400) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1006 (03EE) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1010 (03F2) [15:14:40]Malloc new data [15:14:40]Processing tag 1011 (03F3) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1006 (03EE) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1010 (03F2) [15:14:40]Malloc new data [15:14:40]Processing tag 1011 (03F3) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]SetTLVBufToDocument err=0 [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1131 (046B) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1135 (046F) [15:14:40]Malloc new data [15:14:40]Processing tag 1201 (04B1) [15:14:40]Malloc new data [15:14:40]Processing tag 1136 (0470) [15:14:40]Malloc new data [15:14:40]Processing tag 1138 (0472) [15:14:40]Malloc new data [15:14:40]Processing tag 1024 (0400) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1006 (03EE) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1010 (03F2) [15:14:40]Malloc new data [15:14:40]Processing tag 1011 (03F3) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1006 (03EE) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1010 (03F2) [15:14:40]Malloc new data [15:14:40]Processing tag 1011 (03F3) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]SetTLVBufToDocument err=0 [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1132 (046C) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1135 (046F) [15:14:40]Malloc new data [15:14:40]Processing tag 1201 (04B1) [15:14:40]Malloc new data [15:14:40]Processing tag 1136 (0470) [15:14:40]Malloc new data [15:14:40]Processing tag 1138 (0472) [15:14:40]Malloc new data [15:14:40]Processing tag 1024 (0400) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1006 (03EE) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1010 (03F2) [15:14:40]Malloc new data [15:14:40]Processing tag 1011 (03F3) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1006 (03EE) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1010 (03F2) [15:14:40]Malloc new data [15:14:40]Processing tag 1011 (03F3) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1007 (03EF) [15:14:40]Load OK [15:14:40]SetTLVBufToDocument [15:14:40]Processing tag 1014 (03F6) [15:14:40]Malloc new data [15:14:40]Processing tag 1015 (03F7) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]SetTLVBufToDocument err=0 [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1133 (046D) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Processing tag 1077 (0435) [15:14:40]Malloc new data [15:14:40]SetTLVBufToDocument err=0 [15:14:40]Malloc new data [15:14:40]SAM_PROTO_GetFMData [15:14:40]wFMCommunicate request_size=4 [15:14:40]MH_SAM_APDU [15:14:40]CAPDU: 80 13 03 00 [15:14:40]Write to MH i2c: E2 08 00 AD 00 80 13 03 00 00 00 00 00 2C [15:14:40]Write i2c OK [15:14:40]MH_I2C_Read... [15:14:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:14:41]Read from MH i2c: E2 [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: E2 FD 00 [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: E2 FD 00 AD 00 00 C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 78 [15:14:41]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 46 72 01 00 69 04 A3 00 6F 04 04 00 63 65 01 00 B1 04 05 00 E5 46 85 B1 01 70 04 05 00 24 53 39 5D 01 72 04 04 00 C1 F3 4B 54 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 70 C3 0C 2E 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 0F 4F D6 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 9F 00 6F 04 04 00 E3 0C 00 00 B1 04 04 00 94 7C 09 22 70 04 04 00 C0 51 08 22 72 04 03 00 D4 2A 01 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B1 79 9D 03 90 00 [15:14:41]wFMCommunicate OK [15:14:41]wFMCommunicate request_size=4 [15:14:41]MH_SAM_APDU [15:14:41]CAPDU: 80 17 00 00 [15:14:41]Write to MH i2c: E2 08 00 AE 00 80 17 00 00 00 00 00 00 2E [15:14:41]Write i2c OK [15:14:41]MH_I2C_Read... [15:14:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:41]Read from MH i2c: E2 [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: E2 FD 00 [15:14:41]MH_I2C_Read... [15:14:41]Read from MH i2c: E2 FD 00 AE 00 00 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 5A [15:14:42]RAPDU: 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 C5 1E 4D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 90 00 [15:14:42]wFMCommunicate OK [15:14:42]wFMCommunicate request_size=4 [15:14:42]MH_SAM_APDU [15:14:42]CAPDU: 80 17 00 00 [15:14:42]Write to MH i2c: E2 08 00 AF 00 80 17 00 00 00 00 00 00 2F [15:14:42]Write i2c OK [15:14:42]MH_I2C_Read... [15:14:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:42]Read from MH i2c: E2 [15:14:42]MH_I2C_Read... [15:14:42]Read from MH i2c: E2 FD 00 [15:14:42]MH_I2C_Read... [15:14:42]Read from MH i2c: E2 FD 00 AF 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 07 [15:14:42]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 [15:14:43]wFMCommunicate OK [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 17 00 00 [15:14:43]Write to MH i2c: E2 08 00 B0 00 80 17 00 00 00 00 00 00 30 [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:14:43]Read from MH i2c: E2 [15:14:43]MH_I2C_Read... [15:14:43]OFD Sender: No OFD packet to send [15:14:43]Read from MH i2c: E2 FD 00 [15:14:43]MH_I2C_Read... [15:14:43]Read from MH i2c: E2 FD 00 B0 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 A8 [15:14:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 90 00 [15:14:43]wFMCommunicate OK [15:14:43]wFMCommunicate request_size=4 [15:14:43]MH_SAM_APDU [15:14:43]CAPDU: 80 17 00 00 [15:14:43]Write to MH i2c: E2 08 00 B1 00 80 17 00 00 00 00 00 00 31 [15:14:43]Write i2c OK [15:14:43]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 E5 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 E5 00 B1 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:14:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:14:44]wFMCommunicate OK [15:14:44]SAM_PROTO_GetFMData done [15:14:44]Malloc new data [15:14:44]Malloc new data [15:14:44]Malloc new data [15:14:44]Malloc new data [15:14:44]KKMLoadAndSignCloseShiftData err=0 [15:14:44]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сабырбек у. М. 13.03.2024 15:14 Смена: 328 РНМ: 0000000000090555 ЗНМ: 0300000009 СНО: Общий режим Чеков за смену: 146 ФД за смену: 148 Всего чеков: 146 ИТОГИ ПРИХОД Чеков: 140 Общий итог: 113329.62 Итого наличными: 82771.00 Итого безнал.: 30558.62 НДС 0% : 0.00 НДС 12% : 12036.84 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1002.91 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 6 Общий итог: 9345.00 Итого наличными: 9345.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 992.47 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 82.70 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 73426.00 НС Приход: 72732689.65 НС Возвр.Прихода: 5710470.60 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 95452 ФМ: 0000000000874811 ФПД: 110812349452222 [15:14:44]StoreToDocumentArchive [15:14:44]shift 328 fd 95452 [15:14:44]Create dir for shift 0328 [15:14:44]save to /storage/0328/doc_00095452 [15:14:44]save last doc name /storage/0328/doc_00095452 to /storage/kkm_last_doc_name [15:14:44]save OK [15:14:44]Clear old archive folders... [15:14:44]Remove dir /storage/0266 [15:14:44]opendir ok [15:14:44]file . [15:14:44]file .. [15:14:44]file doc_1710342856 [15:14:44]remove file /storage/0266/doc_1710342856 [15:14:44]remove dir /storage/0266 [15:14:44]NVStorageSaveData kkm_registers [15:14:44]File name is /storage/kkm_registers [15:14:44]Write 24 bytes [15:14:44]NVStorageSaveData done [15:14:44]NVStorageSaveData kkm_registers [15:14:44]File name is /storage/kkm_registers [15:14:44]Write 24 bytes [15:14:44]NVStorageSaveData done [15:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=1390 [15:14:44]tlvbuf is 01052000 [15:14:44]SAM_PROTO_ClearQueue [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 09 00 00 [15:14:44]Write to MH i2c: E2 08 00 B2 00 80 09 00 00 00 00 00 00 24 [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [15:14:44]RAPDU: 90 00 [15:14:44]wFMCommunicate OK [15:14:44]SAM_PROTO_ClearQueue done [15:14:44]KKMCreateOFDPacket [15:14:44]OFDProtocolAddRootSTLVToBuf [15:14:44]FM_MakeSignedData [15:14:44]FM_MakeSignedData [15:14:44]SAM_PROTO_SignData [15:14:44]wFMCommunicate request_size=4 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 0D 01 02 [15:14:44]Write to MH i2c: E2 08 00 B3 00 80 0D 01 02 00 00 00 00 2C [15:14:44]Write i2c OK [15:14:44]MH_I2C_Read... [15:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:44]Read from MH i2c: E2 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 [15:14:44]MH_I2C_Read... [15:14:44]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [15:14:44]RAPDU: 90 00 [15:14:44]wFMCommunicate OK [15:14:44]wFMCommunicate request_size=255 [15:14:44]MH_SAM_APDU [15:14:44]CAPDU: 80 0D 02 02 FA 05 00 6E 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E F4 03 04 00 DB C2 F1 65 0E 04 04 00 48 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 92 00 00 00 57 04 04 00 94 00 00 00 AA 04 DD 04 6E 04 04 00 92 00 00 00 69 04 A3 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 5D 12 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 [15:14:45]Write to MH i2c: E2 02 01 B4 00 80 0D 02 02 FA 00 05 00 6E 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E F4 03 04 00 DB C2 F1 65 0E 04 04 00 48 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 92 00 00 00 57 04 04 00 94 00 00 00 AA 04 DD 04 6E 04 04 00 92 00 00 00 69 04 A3 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 5D 12 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 00 7D [15:14:45]Write i2c OK [15:14:45]MH_I2C_Read... [15:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:45]Read from MH i2c: E2 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 03 00 [15:14:45]MH_I2C_Read... [15:14:45]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [15:14:45]RAPDU: 90 00 [15:14:45]wFMCommunicate OK [15:14:45]wFMCommunicate request_size=255 [15:14:45]MH_SAM_APDU [15:14:45]CAPDU: 80 0D 02 02 FA 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C3 87 01 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 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 [15:14:45]Write to MH i2c: E2 02 01 B5 00 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 0C 00 F6 03 01 00 01 F7 03 03 00 C3 87 01 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 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 00 00 10 [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:46]Read from MH i2c: E2 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 [15:14:46]MH_I2C_Read... [15:14:46]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [15:14:46]RAPDU: 90 00 [15:14:46]wFMCommunicate OK [15:14:46]wFMCommunicate request_size=255 [15:14:46]MH_SAM_APDU [15:14:46]CAPDU: 80 0D 02 02 FA 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 [15:14:46]Write to MH i2c: E2 02 01 B6 00 80 0D 02 02 FA 00 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 00 00 FC [15:14:46]Write i2c OK [15:14:46]MH_I2C_Read... [15:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:47]Read from MH i2c: E2 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 03 00 [15:14:47]MH_I2C_Read... [15:14:47]Read from MH i2c: E2 03 00 B6 00 00 90 00 2A [15:14:47]RAPDU: 90 00 [15:14:47]wFMCommunicate OK [15:14:47]wFMCommunicate request_size=255 [15:14:47]MH_SAM_APDU [15:14:47]CAPDU: 80 0D 02 02 FA 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 [15:14:47]Write to MH i2c: E2 02 01 B7 00 80 0D 02 02 FA 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 00 F7 [15:14:47]Write i2c OK [15:14:47]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [15:14:48]RAPDU: 90 00 [15:14:48]wFMCommunicate OK [15:14:48]wFMCommunicate request_size=255 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 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 [15:14:48]Write to MH i2c: E2 02 01 B8 00 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 OFD Sender: No OFD packet to send [15:14:48]01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 C2 [15:14:48]Write i2c OK [15:14:48]MH_I2C_Read... [15:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:48]Read from MH i2c: E2 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 [15:14:48]MH_I2C_Read... [15:14:48]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [15:14:48]RAPDU: 90 00 [15:14:48]wFMCommunicate OK [15:14:48]wFMCommunicate request_size=149 [15:14:48]MH_SAM_APDU [15:14:48]CAPDU: 80 0D 02 02 90 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DC 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 64 C8 82 B9 CF BE [15:14:49]Write to MH i2c: E2 98 00 B9 00 80 0D 02 02 90 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 10 04 04 00 DC 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 64 C8 82 B9 CF BE 00 00 B6 [15:14:49]Write i2c OK [15:14:49]MH_I2C_Read... [15:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:49]Read from MH i2c: E2 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: E2 03 00 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: E2 03 00 B9 00 00 90 00 2D [15:14:49]RAPDU: 90 00 [15:14:49]wFMCommunicate OK [15:14:49]wFMCommunicate request_size=4 [15:14:49]MH_SAM_APDU [15:14:49]CAPDU: 80 0D 03 02 [15:14:49]Write to MH i2c: E2 08 00 BA 00 80 0D 03 02 00 00 00 00 35 [15:14:49]Write i2c OK [15:14:49]MH_I2C_Read... [15:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:49]Read from MH i2c: E2 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: E2 0B 00 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: E2 0B 00 BA 00 00 A9 65 E3 EE E3 54 21 83 90 00 F0 [15:14:49]RAPDU: A9 65 E3 EE E3 54 21 83 90 00 [15:14:49]wFMCommunicate OK [15:14:49]SAM_PROTO_SignData done [15:14:49]FM_MakeSignedData done [15:14:49]CreateOFDProtocolMessage [15:14:49]wFMCommunicate request_size=4 [15:14:49]MH_SAM_APDU [15:14:49]CAPDU: 80 11 00 00 [15:14:49]Write to MH i2c: E2 08 00 BB 00 80 11 00 00 00 00 00 00 35 [15:14:49]Write i2c OK [15:14:49]MH_I2C_Read... [15:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:49]Read from MH i2c: E2 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: E2 17 00 [15:14:49]MH_I2C_Read... [15:14:49]Read from MH i2c: E2 17 00 BB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 85 [15:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 90 00 [15:14:49]wFMCommunicate OK [15:14:49]CreateOFDProtocolMessage done [15:14:49]OFDSenderStorePacket 95452 [15:14:49]StoreOFDPacket docnum=95452 [15:14:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 82 05 00 00 0E CF 7A 05 13 EB 5A 05 01 00 05 00 6E 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9C 2E F4 03 04 00 DB C2 F1 65 0E 04 04 00 48 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 92 00 00 00 57 04 04 00 94 00 00 00 AA 04 DD 04 6E 04 04 00 92 00 00 00 69 04 A3 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 5D 12 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C3 87 01 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 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 DC 74 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 35 04 06 00 64 C8 82 B9 CF BE A9 65 E3 EE E3 54 21 83 [15:14:50]CheckFolder [15:14:50]dirname=/storage/ofd_packets [15:14:50]CheckFolder done [15:14:50]ProducePacketName [15:14:50]name=ofd_packets/00095452 [15:14:50]NVStorageSaveData ofd_packets/00095452 [15:14:50]File name is /storage/ofd_packets/00095452 [15:14:50]Write 1440 bytes [15:14:50]NVStorageSaveData done [15:14:50]OFDSenderStorePacket done [15:14:50]KKMCreateOFDPacket done [15:14:50]NVStorageSaveData kkm_last_timestamp [15:14:50]File name is /storage/kkm_last_timestamp [15:14:50]Write 4 bytes [15:14:50]NVStorageSaveData done [15:14:50]ExternCall_PrintAddStr [15:14:50]wPrintStart [15:14:50]Write to MH i2c: 01 00 00 BC 00 BC [15:14:50]Write i2c OK [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: 01 [15:14:50]MH_I2C_Read... [15:14:50]Read from MH i2c: 01 07 00 [15:14:50]MH_I2C_Read... [15:14:50]OFD Sender: Processing packet 95452 [packets to send 30, broken 29] [15:14:50]ProducePacketName [15:14:50]name=ofd_packets/00095452 [15:14:50]OFD Sender: To server: pG, [15:14:50]CommunicateWithHost lk.salyk.kg:30040 [15:14:50]ConnectInit lk.salyk.kg [15:14:50]Read from MH i2c: 01 07 00 BC 00 00 80 00 00 00 FF 0F 51 [15:14:50]RasterBufferAndPrint [15:14:50]line Отчет о закрытии смены [15:14:50]line ФФД: 1.0 [15:14:50]line ИНН: 02508201610067 [15:14:50]line Кассир: Сабырбек у. М. [15:14:50]line 13.03.2024 15:14 [15:14:50]line Смена: 328 [15:14:50]line РНМ: 0000000000090555 [15:14:50]line ЗНМ: 0300000009 [15:14:50]line СНО: Общий режим [15:14:50]line Чеков за смену: 146 [15:14:50]line ФД за смену: 148 [15:14:50]line Всего чеков: 146 [15:14:50]line ИТОГИ ПРИХОД [15:14:50]line Чеков: 140 [15:14:50]line Общий итог: 113329.62 [15:14:50]line Итого наличными: 82771.00 [15:14:50]line Итого безнал.: 30558.62 [15:14:50]line НДС 0% : 0.00 [15:14:50]line НДС 12% : 12036.84 [15:14:50]line НСП 0% : 0.00 [15:14:50]line НСП 1,50% : 0.00 [15:14:50]line НСП 0,50% : 0.00 [15:14:50]line НСП 5% : 0.00 [15:14:50]line НСП 3% : 0.00 [15:14:50]line НСП 2% : 0.00 [15:14:50]line НСП 1% : 1002.91 [15:14:50]line ИТОГИ ВОЗВРАТ ПРИХОДА [15:14:50]line Чеков: 6 [15:14:50]line Общий итог: 9345.00 [15:14:50]line Итого наличными: 9345.00 [15:14:50]line Итого безнал.: 0.00 [15:14:50]line НДС 0% : 0.00 [15:14:50]line НДС 12% : 992.47 [15:14:50]line НСП 0% : 0.00 [15:14:50]line НСП 1,50% : 0.00 [15:14:50]line НСП 0,50% : 0.00 [15:14:50]line НСП 5% : 0.00 [15:14:50]line НСП 3% : 0.00 [15:14:50]line НСП 2% : 0.00 [15:14:50]line НСП 1% : 82.70 [15:14:50]line ИТОГИ РАСХОД [15:14:50]line Чеков: 0 [15:14:50]line Общий итог: 0.00 [15:14:50]line Итого наличными: 0.00 [15:14:50]line Итого безнал.: 0.00 [15:14:50]line НДС 0% : 0.00 [15:14:50]line НДС 12% : 0.00 [15:14:50]line НСП 0% : 0.00 [15:14:50]line НСП 1,50% : 0.00 [15:14:50]line НСП 0,50% : 0.00 [15:14:50]line НСП 5% : 0.00 [15:14:50]line НСП 3% : 0.00 [15:14:50]line НСП 2% : 0.00 [15:14:50]line НСП 1% : 0.00 [15:14:50]line ИТОГИ ВОЗВРАТ РАСХОДА [15:14:50]line Чеков: 0 [15:14:50]line Общий итог: 0.00 [15:14:50]line Итого наличными: 0.00 [15:14:50]line Итого безнал.: 0.00 [15:14:50]line НДС 0% : 0.00 [15:14:50]line НДС 12% : 0.00 [15:14:50]line НСП 0% : 0.00 [15:14:50]line НСП 1,50% : 0.00 [15:14:50]line НСП 0,50% : 0.00 [15:14:50]line НСП 5% : 0.00 [15:14:50]line НСП 3% : 0.00 [15:14:50]line НСП 2% : 0.00 [15:14:50]Connected sock=10 [15:14:50]line НСП 1% : 0.00 [15:14:50]Data to sent: line Сумма внесений: 0.00 [15:14:50]87 line Сумма выплат: 0.00 [15:14:50]95 line Нал. в кассе: 73426.00 [15:14:50]F6 line НС Приход: 72732689.65 [15:14:50]70 line НС Возвр.Прихода: 5710470.60 [15:14:50]47 line НС Расход: 0.00 [15:14:50]2C line НС Возвр.Расхода: 0.00 [15:14:50]01 line ФД: 95452 [15:14:50]line ФМ: 0000000000874811 [15:14:50]line ФПД: 110812349452222 [15:14:50]00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 82 05 00 00 0E CF 7A 05 13 EB 5A 05 01 00 05 00 6E 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 18 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B1 D0 B5 D0 BA 20 D1 written 0, free lines is 4095 [15:14:50]83 2E 20 D0 9C 2E F4 03 04 00 DB C2 F1 65 0E 04 04 00 48 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 5E 04 04 00 92 00 00 00 57 04 04 00 94 00 00 00 AA 04 DD 04 6E 04 04 00 92 00 00 00 69 04 A3 00 6F 04 04 00 8C 00 00 00 B1 04 03 00 62 ED AC 70 04 03 00 6C 4C 7E 72 04 03 00 F6 A0 2E 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 5D 12 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C3 87 01 6A 04 A0 00 6F 04 04 00 06 00 00 00 B1 04 03 00 64 42 0E 70 04 03 00 64 42 0E 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AF 83 01 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4E 20 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 Write to MH i2c: 01 01 00 00 04 00 F7 0C 03 01 01 00 0D [15:14:51]Write i2c OK [15:14:51]MH_I2C_Read... [15:14:51]00 EF 03 0A 00 Read from MH i2c: F6 01 03 [15:14:51]01 MH_I2C_Read... [15:14:51]00 03 F7 Read from MH i2c: 03 01 01 07 00 00 00 [15:14:51]EF MH_I2C_Read... [15:14:51]03 0A 00 F6 03 01 00 Read from MH i2c: 02 01 F7 07 03 00 01 0C 00 00 EF 03 0A 00 F6 03 01 00 01 F7 01 03 00 01 80 00 00 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 00 B1 7F 04 0B 01 1E 00 [15:14:51]00 70 04 01 00 00 72 04 01 00 00 RasterBufferAndPrint [15:14:51]00 line [15:14:51]04 line [15:14:51]7E line [15:14:51]00 line [15:14:51]EE 03 0A 00 F2 03 01 00 00 F3 03 line [15:14:51]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 written 0, free lines is 3194 [15:14:51]00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 process_action close_shift done [15:14:51]04 requested_data is exist [15:14:51]00 produce_requested_data [15:14:51]00 requested_item fd.num is exist - process it [15:14:51]00 04 75 00 EE 03 09 00 F2 03 01 SAM_PROTO_GetFieldsCounters [15:14:51]00 wFMCommunicate request_size=4 [15:14:51]00 MH_SAM_APDU [15:14:51]F3 CAPDU: 03 80 00 13 00 00 EE 00 03 [15:14:51]09 Write to MH i2c: 00 E2 F2 08 03 00 01 13 00 01 01 80 F3 13 03 00 00 00 00 00 EF 00 03 00 09 00 00 90 F6 [15:14:51]03 Write i2c OK [15:14:51]01 MH_I2C_Read... [15:14:51]00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:52]00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 Read from MH i2c: 00 E2 03 [15:14:52]F7 MH_I2C_Read... [15:14:52]03 Read from MH i2c: 00 E2 00 62 EF 00 03 [15:14:52]09 MH_I2C_Read... [15:14:52]00 F6 Read from MH i2c: 03 E2 01 62 00 00 04 13 F7 01 03 00 00 5D 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 00 01 B9 00 04 06 01 F7 00 03 00 00 7A 04 8D 00 6F 04 04 00 01 00 11 00 04 00 10 00 00 B1 04 00 00 70 04 00 00 72 04 30 00 30 00 30 00 30 04 30 75 00 EE 03 09 00 F2 03 01 00 00 30 F3 30 30 03 30 00 30 00 38 EE 37 03 34 09 38 00 31 F2 31 03 0D 01 04 00 10 01 00 F3 03 00 00 EF 03 09 00 F6 03 01 30 00 30 00 30 F7 30 03 30 00 00 EF 03 09 00 F6 03 01 00 01 30 F7 30 03 30 00 30 00 30 30 39 30 35 35 35 10 04 04 00 DC 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 92 EF 00 03 00 09 00 00 5E F6 04 04 00 92 00 00 00 57 04 04 00 03 94 01 00 00 00 02 00 F7 19 03 04 00 04 00 00 EF 00 03 00 09 00 00 00 F6 90 03 00 FE [15:14:52]RAPDU: 5D 00 B9 04 01 00 01 01 11 00 04 03 10 F7 00 03 30 00 30 00 30 EF 30 03 30 09 30 00 30 F6 30 03 30 01 30 00 38 04 37 F7 34 03 38 00 31 31 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 35 35 35 10 04 04 00 DC 74 01 00 0E 04 04 00 48 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 00 EF 90 03 00 09 [15:14:52]00 wFMCommunicate OK [15:14:52]F6 SAM_PROTO_GetFieldsCounters done [15:14:52]03 requested_item shift.num is exist - process it [15:14:52]01 requested_item shift.opened is exist - process it [15:14:52]00 req_shift_opened [15:14:52]05 FM_GetShiftState [15:14:52]F7 SAM_PROTO_GetShiftState [15:14:52]03 wFMCommunicate request_size=4 [15:14:52]00 MH_SAM_APDU [15:14:52]00 CAPDU: 80 13 01 00 [15:14:52]Write to MH i2c: E2 08 00 14 01 80 13 01 00 00 00 00 00 92 [15:14:52]EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:52]6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE Write i2c OK [15:14:52]03 MH_I2C_Read... [15:14:52]09 Read from MH i2c: 00 E2 F2 [15:14:52]03 MH_I2C_Read... [15:14:52]01 00 00 F3 03 00 00 Read from MH i2c: EE E2 03 0E 09 00 00 [15:14:52]F2 03 01 00 01 F3 03 00 00 EF MH_I2C_Read... [15:14:52]03 Read from MH i2c: 09 E2 00 0E F6 00 03 01 00 00 F7 03 00 00 EF 03 14 09 01 00 00 F6 09 03 00 01 00 01 F7 03 00 00 EF 03 09 00 00 00 F6 00 03 00 01 00 00 02 F7 03 00 00 EF 03 09 00 00 F6 00 03 00 01 00 00 90 03 F7 03 00 00 EF 03 09 00 F6 00 03 9D 01 [15:14:53]00 RAPDU: 04 09 F7 03 00 00 EF 03 09 00 F6 03 00 01 00 00 00 05 00 F7 00 03 00 00 EF 03 09 00 F6 03 01 00 00 00 06 00 F7 00 03 00 00 00 10 04 04 00 DC 74 01 00 90 11 00 04 [15:14:53]10 wFMCommunicate OK [15:14:53]00 SAM_PROTO_GetShiftState done [15:14:53]30 30 30 30 30 30 30 30 30 30 FM_GetShiftState done [15:14:53]38 req_shift_opened done [15:14:53]37 requested_item shift.open_date is exist - process it [15:14:53]34 req_shift_open_date [15:14:53]38 FM_GetShiftState [15:14:53]31 SAM_PROTO_GetShiftState [15:14:53]31 wFMCommunicate request_size=4 [15:14:53]35 MH_SAM_APDU [15:14:53]04 CAPDU: 80 13 01 00 [15:14:53]Write to MH i2c: E2 08 00 15 06 01 00 80 64 13 C8 01 82 00 00 00 00 00 93 [15:14:53]B9 CF BE A9 65 E3 EE E3 54 21 83 [15:14:53]Write i2c OK [15:14:53]MH_I2C_Read... [15:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:53]Read from MH i2c: E2 [15:14:53]MH_I2C_Read... [15:14:53]Read from MH i2c: E2 0E 00 [15:14:53]MH_I2C_Read... [15:14:53]Read from MH i2c: E2 0E 00 15 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9E [15:14:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [15:14:53]wFMCommunicate OK [15:14:53]SAM_PROTO_GetShiftState done [15:14:53]FM_GetShiftState done [15:14:53]req_shift_open_date done [15:14:53]produce_requested_data done [15:14:53]produce_requested_data return {"fd.num":95452,"shift.num":328,"shift.opened":0,"shift.open_date":0} [15:14:53]process_action_free close_shift [15:14:53]json_value_free [15:14:53]json_value_free done [15:14:53]process_json_proto returns [15:14:53]Send response to host [15:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":95452,"shift.num":328,"shift.opened":0,"shift.open_date":0}}} [15:14:53]free response buf [15:14:53]execute_script done [15:14:53]execute_script returns [15:14:53]free content buf [15:14:53]Sock 7.Close socket [15:14:53]Sock 7.Thread stoped [15:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 4F 00 00 00 21 0C 47 00 C4 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 31 31 10 04 04 00 DC 74 01 00 F4 03 04 00 3E 6E F1 65 B6 04 01 00 00 E4 43 12 30 9E 72 3E B7 [15:14:53]CommunicateWithHost err = 0 [15:14:53]CheckOFDResponse [15:14:53]1017 (14) - 77093643461234 [15:14:53]1041 (16) - 0000000000874811 [15:14:53]1040 (4) - 95452 [15:14:53]1012 (4) - 13.03.2024 09:13 [15:14:53]1206 (1) - 0 [15:14:53]OFD Sender: Remove packet 95452 [15:14:53]ProducePacketName [15:14:53]name=ofd_packets/00095452 [15:14:53]NVStorageDeleteData [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:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send